What does this log mean? "Fatal signal 11 (SIGSEGV) at 0x00000094 (code=1)"

bsnqt

Active Member
Licensed User
Longtime User
Hi Erel,

I got this error message in the filtered log:

B4X:
Fatal signal 11 (SIGSEGV) at 0x00000094 (code=1)

Googling gives me something like this:

B4X:
15:58:54    ERROR -  F/libc    (  838): Fatal signal 11 (SIGSEGV) at 0x00000094 (code=1)
15:58:54    ERROR -  This usually indicates the B2G process has crashed

What does it mean "B2G process"? Actually why did I get this error log?

Thank you very much.

Best
bsnqt
 

bsnqt

Active Member
Licensed User
Longtime User
Are you sure that this error is related to your app? The filtered logs doesn't hide "critical" level messages.

Did your app crash?

Actually I got a very strange problem, but not sure if my application did crash or not. I will have to go to very details with hope that other members can benefit from this topic / discussion.

Background:

- My app has one Activity, one Code module and one Service (SMS intent with broadcastreceiver).

- If I run it using / thru B4A debug or Release, the application can start successfully (I can intercept SMS and other functions work well). Being running "completely" like this, I checked and see it consumes around 9 - 13Mb (on Galaxy Note II). The reason why I did check app consumed memory is because of the Problem I describe below.

Problem:

- If I switch off the phone and power it on again, my app is expected to restart automatically (set StartAtBoot = True), and in reality it does restart with its notification icon normally. However, now I cannot intercept SMS anymore. Checked the logs, I don't see my Main Activity created complety. Checked the Running Task list, however, I still can see that my app is there, but now it consumes only 3 - 5Mb. This gives me a guess that only the Service is running (without Main activity)!!!

- Checked the filter log I can see there is an error as described in my previous post, but having spent 3 days I cannot find out the cause. But I discovered that if I run my app again "manually" (by clicking on its icon in the app drawer), it comes back to work perfectly.

My (temporary) Solution:

- So I guessed that when auto restaring, my app is running only with its Service, but without the Main activity. As a solution, I work around it by adding "StartActivity(Main)" in the Sub Service_Create.

- My problem (with the work around above) can be solved "artificially", but I never know why it happened.

Codes:

My Main activity (I simplified for easier reading):

B4X:
Sub Activity_Create(FirstTime As Boolean)

   Activity.LoadLayout("Layout1")

   '// Loading the Settings
   If FirstTime Then   
      SettingsManager.Initialize ' It is a Map
      If File.Exists(File.DirInternal,"Settings.txt") = True Then
         Manager = File.ReadMap(File.DirInternal, "Settings.txt")
      Else
         SetDefaults
      End If
      Update_Settings("SMS")
      StartService(Interceptor)
   
   End If
   
      '// The codes for setting the layout of Views are here      
      '//Load the Sub that will call the panel with login password 
      Load_Password
            
End Sub

And My Service (again, it is simplified):

B4X:
Sub Service_Create

   If ContactsMap.IsInitialized = False Then
      
      ContactsMap.Initialize
      BlockersMap.Initialize
      Codes.GetBlockMap    '// Codes is my Code Module
      Codes.GetContactMap
      Codes.Reset_Notification(False)
      Broadcast.Initialize("BroadcastReceiver")
      ClearList.Initialize
      Timer1.Initialize("Timer1", 1000) ' 1000 = 1 second
      OS.Initialize("")   '// OS is OperatingSystem
      
   End If   
   
   Timer1.Enabled = False
   Service.StartForeground(123456, n1)
   StartActivity(Main) '<-- I added this as a workaround, and my app can be autostarted and work well now.
   
End Sub

Please let me know if you need me to post also the unfiltered log related to this error message.

Thank you very much.

Rgds, bsnqt
 
Last edited:
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I had this error show up in logs a few times, no idea what it means though
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
I had this error show up in logs a few times, no idea what it means though

Yes I do have it also few times a day (not very frequently), especially when I restart the phone. It might be caused by some bad sectors in the phone memory when the phone is allocating the memory sectors to starting apps? (It is just my guess). I don't know too.
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
Below is the unfilter text that shows right after the error log.

B4X:
Turning on JNI app bug workarounds for target SDK version 9...
** Activity (main) Pause, UserClosed = true **
Unknown binder error code. 0xfffffff7
Fatal signal 11 (SIGSEGV) at 0x00000094 (code=1)
ptrace attach failed: Operation not permitted
Start proc se.brokenbrain.drawer for broadcast se.brokenbrain.drawer/.AppReceiver: pid=8359 uid=10035 gids={1015}
Process adcvn.smsblocker(pid 8140) has died.
WIN DEATH: Window{42242318 adcvn.smsblocker/adcvn.smsblocker.main paused=false}
<ConfigWindowMatch:2078>: Format RGBA_8888.
/dev/pmem: Allocated buffer base:0x426c8000 size:3768320 offset:22941696 fd:62
Turning on JNI app bug workarounds for target SDK version 4...
/dev/pmem: Mapped buffer base:0x5dd78000 size:26710016 offset:22941696 fd:29
Got RemoteException sending setActive(false) notification to pid 8140 uid 10044
DexOpt: access denied from Lorg/slf4j/LoggerFactory; to field Lorg/slf4j/impl/StaticLoggerBinder;.SINGLETON
VFY: unable to resolve static field 6105 (SINGLETON) in Lorg/slf4j/impl/StaticLoggerBinder;
VFY: replacing opcode 0x62 at 0x0006
DexOpt: access denied from Lorg/slf4j/LoggerFactory; to field Lorg/slf4j/impl/StaticLoggerBinder;.SINGLETON
VFY: unable to resolve static field 6105 (SINGLETON) in Lorg/slf4j/impl/StaticLoggerBinder;
VFY: replacing opcode 0x62 at 0x001d
Received broadcast: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:adcvn.smsblocker flg=0x10000010 cmp=se.brokenbrain.drawer/.AppReceiver (has extras) }
glEndTilingQCOM: 0x502
/dev/pmem: Allocated buffer base:0x426c8000 size:3768320 offset:26710016 fd:65
AppInstallTrackerService stopping
/dev/pmem: Mapped buffer base:0x61739000 size:30478336 offset:26710016 fd:32
<CreateImage:893>: Android Image
<GetImageAttributes:1102>: RGBA_8888
/dev/pmem: Freeing buffer base:0x4326b000 size:3768320 offset:12201984 fd:35
/dev/pmem: Freeing buffer base:0x44af2000 size:3768320 offset:37920768 fd:47
/dev/pmem: Freeing buffer base:0x427ff000 size:3768320 offset:1273856 fd:38

smsblocker is the name of my test project.

It was saying that my app's process actually died and I have still a doubt it is related to this error log... :(

Process adcvn.smsblocker(pid 8140) has died.
WIN DEATH: Window{42242318 adcvn.smsblocker/adcvn.smsblocker.main paused=false}
<ConfigWindowMatch:2078>: Format RGBA_8888.
 
Last edited:
Upvote 0
Top