Android Question out of memory using BLE and jMQTT

engvidal

Member
Licensed User
Longtime User
Hi

I am using the BLE example, with some modifications, and it runs OK.

Based in the "B4A-MQTTCanvas.zip", that also runs Ok, I am trying to insert the mqtt functions, inside the BLE example, at "state changes" sub, but I get this error when the debugger starts:

Logger connected to: motorola Moto G (5S) Plus
--------- beginning of system
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
java.lang.OutOfMemoryError: Failed to allocate a 184560016 byte allocation with 25165824 free bytes and 124MB until OOM, max allowed footprint 96179368, growth limit 201326592......................


Full error message attached (outOfMemory.txt) and ZIP of project

Thanks
 

Attachments

  • outOfMemory.txt
    5.6 KB · Views: 109
  • BLE_Mqtt.zip
    9.1 KB · Views: 119
Top