Android Question Failed to get GED Log Buf, err(0)

labcold

Member
Licensed User
Longtime User
Hi I have been using B4A/B4J/B4R for a number of years now without any problems on a wide range of devices - your software is brilliant btw!
I now have this error when trying to develop a new app for the LEMFO LEM5 & LEM6 SMART watch devices running Android 5.1.

To demonstrate - if I use the most basic of code (listed below) which should just give me a couple of log entries I only get the following and no Log entries show
Logger connected to: watch LEM5
--------- beginning of main
Failed to get GED Log Buf, err(0)
!!! It is not under singleton mode, U can't use it. !!!

If I run this on my Android 4 tablet or Samsung S7 it works.
Logger connected to: Jlinksz K107
--------- beginning of main
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
Failed to get GED Log Buf, err(0)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
App Start
** Activity (main) Resume **
App Resume

I am running V8.30 and using the normal wifi debugger. everything else seems to work correctly on the devices (WYSIWYG editor, B4A bridge).

I have a quite complex app that I need to debug and without the logs its really difficult to follow the connectivity and internal state, so I am hoping you can help resolve this....

B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private Label1 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout")    '<--- layout has just one label
    Log("App Start")
End Sub

Sub Activity_Resume
    Log("App Resume")
    Label1.Text="Resume"
End Sub

Sub Activity_Pause (UserClosed As Boolean)
    Log("App Pause")
    Label1.Text="Pause"
End Sub
 

labcold

Member
Licensed User
Longtime User
Many thanks for trying to help - truly appreciated!

I tried a variety of settings but none made any difference until I changed the Logger Buffer Size to 1M. It had previously been set at 256K.
Now I get the Log messages through.

Maybe this is a device specific thing or is there a minimum requirement for this to work?

Anyway I'm up and running so thank you - please keep B4X getting better - its such a brilliant suite of products - makes my life so much easier
Harry
 
Upvote 0
Top