Astream - Buffer size limit

alvinmb

Member
Licensed User
I'm using an Astream to read data from a bluetooth credit card reader and I get the following error in the log file. Does the Astream have a buffer size limit and if so what is it?


short form

java.lang.OutOfMemoryError: array size too large

Full Log

LogCat connected to: 3733E796534100EC
--------- beginning of /dev/log/main


--------- beginning of /dev/log/system


** Activity (main) Create, isFirst = true **


** Activity (main) Resume **
BT Disconnect
BT Connect


** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **


** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
** Activity (main) Pause, UserClosed = true **
Installing file.
PackageAdded: package:anywheresoftware.b4a.samples.bluetooth
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
MAGTEK-B0F2BC3...j:00:06:66:48:F0:6D
connected: true
** Activity (main) Pause, UserClosed = false **
** Activity (chatactivity) Create, isFirst = true **
** Activity (chatactivity) Resume **
Connected to B4A-Bridge (Wifi)
java.lang.OutOfMemoryError: array size too large
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:168)
at java.lang.Thread.run(Thread.java:1019)
** Activity (chatactivity) Pause, UserClosed = true **
** Activity (main) Resume **
Installing file.


PackageAdded: package:anywheresoftware.b4a.samples.bluetooth


** Activity (main) Create, isFirst = true **


** Activity (main) Resume **


MAGTEK-B0F2BC3...j:00:06:66:48:F0:6D


connected: false


java.io.IOException: Service discovery failed


Connected to B4A-Bridge (Wifi)


** Activity (main) Pause, UserClosed = false **


** Activity (main) Resume **


MAGTEK-B0F2BC3...j:00:06:66:48:F0:6D


connected: true


** Activity (main) Pause, UserClosed = false **


** Activity (chatactivity) Create, isFirst = true **


** Activity (chatactivity) Resume **


java.lang.OutOfMemoryError: array size too large


at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:168)
at java.lang.Thread.run(Thread.java:1019)
** Activity (chatactivity) Pause, UserClosed = true **


** Activity (main) Resume **
 
Top