Android Question app is crashed at start: httputils2service

peacemaker

Expert
Licensed User
Longtime User
HI, All

Long developed app. Latest months was OK.
But recently started to crash at start, just after opening the Main activity, latest line in the log are:

B4X:
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **

No Application_Error sub is triggered now, but some day ago it was:
B4X:
Manufacturer=samsung; Model=SM-A305FN; Product=a30ser; SdkVersion=28
0000ce2cc  /data/app/peacemaker.shell.vtk.scanner-hbcZyaF4XoA-zAjpk9nr2w==/oat/arm64/base.odex (offset 0x4b000) (peacemaker.shell.vtk.scanner.cameraexclass._vvvvvvvvvvvvvvvvvvvvv6+2556)
    #26 pc 00000000000dcddc  /data/app/peacemaker.shell.vtk.scanner-hbcZyaF4XoA-zAjpk9nr2w==/oat/arm64/base.odex (offset 0x4b000) (peacemaker.shell.vtk.scanner.main._timmovement_tick+108)
    #27 pc 000000000055ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #28 pc 00000000000d04e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #29 pc 00000000004618ac  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #30 pc 0000000000463300  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
    #31 pc 00000000003f2984  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
    #32 pc 000000000011e7e4  /system/framework/arm64/boot.oat (offset 0x114000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
    #33 pc 0000000000063bfc  /data/app/peacemaker.shell.vtk.scanner-hbcZyaF4XoA-zAjpk9nr2w==/oat/arm64/base.odex (offset 0x4b000) (anywheresoftware.b4a.BA.raiseEvent2+652)
    #34 pc 000000000007ee08  /data/app/peacemaker.shell.vtk.scanner-hbcZyaF4XoA-zAjpk9nr2w==/oat/arm64/base.odex (offset 0x4b000) (anywheresoftware.b4a.objects.Timer$TickTack.run+440)
    #35 pc 0000000000b24d5c  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (android.os.Handler.dispatchMessage+76)
    #36 pc 0000000000b27ec0  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (android.os.Looper.loop+1264)
    #37 pc 0000000000901a88  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (android.app.ActivityThread.main+680)
    #38 pc 000000000055ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #39 pc 00000000000d04e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #40 pc 00000000004618ac  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #41 pc 0000000000463300  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
    #42 pc 00000000003f2984  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
    #43 pc 000000000011e7e4  /system/framework/arm64/boot.oat (offset 0x114000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
    #44 pc 0000000000e104e8  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
    #45 pc 0000000000e17090  /system/framework/arm64/boot-framework.oat (offset 0x41f000) (com.android.internal.os.ZygoteInit.main+2208)
    #46 pc 000000000055ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
    #47 pc 00000000000d04e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
    #48 pc 00000000004618ac  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #49 pc 000000000046150c  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
    #50 pc 0000000000366214  /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
    #51 pc 00000000000b8ebc  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
    #52 pc 00000000000bba78  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+772)
    #53 pc 000000000000498c  /system/bin/app_process64 (main+1200)
    #54 pc 00000000000ae8f0  /system/lib64/libc.so (__libc_init+88)
~i:Service started in the background. Trying to start again in foreground mode.
~i:** Service (httputils2service) Destroy **
~i:*** Service (starter) Create ***
~i:** Service (starter) Start **
~i:*** Service (alive) Create ***
~i:** Service (alive) Start **
~i:** Service (httputils2service) Create **
~i:** Service (httputils2service) Start **
~e:httputils2service_service_start (java line: 249)
~e:java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.objects.ServiceHelper peacemaker.shell.vtk.scanner.httputils2service._service' on a null object reference
~e: at peacemaker.shell.vtk.scanner.httputils2service._service_start(httputils2service.java:249)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
~e: at peacemaker.shell.vtk.scanner.httputils2service.handleStart(httputils2service.java:100)
~e: at peacemaker.shell.vtk.scanner.httputils2service.access$000(httputils2service.java:8)
~e: at peacemaker.shell.vtk.scanner.httputils2service$2.run(httputils2service.java:80)
~e: at android.os.Handler.handleCallback(Handler.java:873)
~e: at android.os.Handler.dispatchMessage(Handler.java:99)
~e: at android.os.Looper.loop(Looper.java:214)
~e: at android.app.ActivityThread.main(ActivityThread.java:7076)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.objects.ServiceHelper peacemaker.shell.vtk.scanner.httputils2service._service' on a null object reference
at peacemaker.shell.vtk.scanner.httputils2service._service_start(httputils2service.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at peacemaker.shell.vtk.scanner.httputils2service.handleStart(httputils2service.java:100)
at peacemaker.shell.vtk.scanner.httputils2service.access$000(httputils2service.java:8)
at peacemaker.shell.vtk.scanner.httputils2service$2.run(httputils2service.java:80)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7076)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
And yes - server's reply is not received mostly, if this crash. But sometimes works OK as before, reply is received from server and no crash.
How to debug ?
 

peacemaker

Expert
Licensed User
Longtime User
Yes. Seems, trouble is solved, if do not make HTTP-request just after app start. But situation is still unclear why no clear error log, always reproducing.
 
Upvote 0
Top