Bug? Logs in B4A 6.0 stop working if messagelength > 4000?

KMatle

Expert
Licensed User
Longtime User
Mentioned this in V6.0 (I've never seen this before) with B4A bridge v2.14

If I log a message >4000 chars the log stops (= no log is shown after that but the app is still running). The message comes from Job.GetString (it's a long JSON). Additionally B4A-Bridge is crashing after some test rounds (just ends) when I use "restart". It occurs on my Marshmallow and Lollipop device.


B4X:
** Activity (main) Pause, UserClosed = false **
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (login) Create, isFirst = true **
** Activity (login) Resume **
[{"cmail":"xxxxxx","cpw":"yyyyyyyyy"}]
** Service (httputils2service) Create **
** Service (httputils2service) Start **
Back from Job:Login
Response from server: LoginSuccessful:11
** Activity (login) Pause, UserClosed = true **
** Activity (ordermenu) Create, isFirst = true **
** Activity (ordermenu) Resume **
** Activity (ordermenu) Pause, UserClosed = false **
** Activity (showitems) Create, isFirst = true **
[{"wm":"WM","maxprice":99999999}]
** Activity (showitems) Resume **
Back from Job:ShowItems
Message longer than Log limit (4000). Message was truncated.

If I comment the line where I log the job's response or truncate it to 1000, all is working. The bridge, too.
 

DonManfred

Expert
Licensed User
Longtime User
i suggest to write the result to a file instead of putting all into log.
But i´ll recheck here if the problem here does occur too
 

KMatle

Expert
Licensed User
Longtime User
This is not a bug. It is related to a limit in Android log system. It was always like this.

This was not the point :) It was about that no other log entry shows up AFTER that.

Anyway. I can't reproduce it now but... 1-2 times a day when I'm debugging, no log shows up (pressing "connect" will connect, but no log entries show). It must be something about "restart" program vs. stop & start, the bridge and Android 6.
 
Top