Android Question Weird problem ("Fatal Signal")

hugorinen

Member
Licensed User
Longtime User
Hi,

Everything was fine until this morning :

Code: Copy
StartActivity(EditEventActivity)

But now, when the activity is supposed to start, the application goes like "ExitApplication" after that unexpectedly and the only error is (in the log) :
Code: Copy
Fatal signal 11 (SIGSEGV) at 0x00000001 (code=1), thread 17241 (porcher.nextime)
Or
Code: Copy
Fatal signal 11 (SIGSEGV) at 0x43f90000 (code=2), thread 18563 (porcher.nextime)
(In this case, the activity starts but can't use class like DBUtils)

I have an older version (of my app) where it works, but I checked all the difference between codes and there's no difference related to that. I searched for three hours, and I didn't find anything.

Thanks in advance !
 
Here's my activity code :
Code: Copy
Sub Activity_Create(FirstTime As Boolean)

    Activity.LoadLayout("eventActivity") 'Loading layout
    Main.currentActivity = "EditEventActivity" 'Set a simple string variable

    lblInitiale.Typeface = Typeface.LoadFromAssets("Roboto-Light.ttf") 'Loading typeface

    DateTime.DateFormat = "dd/MM/yyyy" 'Setting up time and date format
    DateTime.TimeFormat = "HH:mm"

    Dim listGroups As List : listGroups.Initialize
    listGroups = DBUtils.ExecuteMemoryTable(Main.DB,"SELECT name FROM social",Null,0) 'Here's the exception (in fact it's pretty random, sometimes the activity don't give any exception and the app only restart)
    Dim buffer() As String
    If listGroups.IsInitialized Then
        For i=0 To listGroups.Size -1
            buffer = listGroups.Get(i)
            spinnerGroup.Add(buffer(0))
        Next
    End If

...

As sometimes I've got an exception, here it is :
Code: Copy
Fatal signal 11 (SIGSEGV) at 0x0000004b (code=1), thread 19055 (porcher.nextime)


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

java.lang.RuntimeException: Object should first be initialized.
    at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
    at anywheresoftware.b4a.sql.SQL.ExecQuery(SQL.java:154)
    at com.vincentleporcher.nextime.dbutils._executememorytable(dbutils.java:172)
    at com.vincentleporcher.nextime.editeventactivity._activity_create(editeventactivity.java:389)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:173)
    at com.vincentleporcher.nextime.editeventactivity.afterFirstLayout(editeventactivity.java:98)
    at com.vincentleporcher.nextime.editeventactivity.access$100(editeventactivity.java:16)
    at com.vincentleporcher.nextime.editeventactivity$WaitForLayout.run(editeventactivity.java:76)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:153)
    at android.app.ActivityThread.main(ActivityThread.java:5086)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: Object should first be initialized.
** Activity (editeventactivity) Resume **

I suppose the database (declared and initialized in Main) isn't reachable but I don't know why.

Same error on a different device, when launching the activity from Main there's no error.
 
Last edited:
Upvote 0
Back
Top