Android Question Help reading this error log

Sasuke Sama

Active Member
Licensed User
Hi
Some of my users are having issues with one of my apps
the app just crashes on one of the activities without an error log or anything just crashes and closing the app
im getting this error log on the play console but im not sure what dose it mean

B4X:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> zero.seven.unse <<<

backtrace:
  #00  pc 000000000002294c  /system/lib64/libc.so (abort+116)
  #01  pc 00000000000080e0  /system/lib64/liblog.so (__android_log_assert+304)
  #02  pc 0000000000147be8  /system/lib64/libandroid_runtime.so (Bitmap_copyColorSpace(_JNIEnv*, _jobject*, long, long)+184)
  #03  pc 0000000000418c40  /system/framework/arm64/boot-framework.oat (android.content.res.AssetManager.nativeThemeCopy [DEDUPED]+160)
  #04  pc 00000000009f511c  /system/framework/arm64/boot-framework.oat (android.graphics.Bitmap.createBitmap+2140)
  #05  pc 00000000009f6ad4  /system/framework/arm64/boot-framework.oat (android.graphics.Bitmap.createScaledBitmap+372)
  #06  pc 000000000005ab1c  /system/framework/arm64/boot-hwEmui.oat (android.content.res.HwResourcesImpl.handleAddIconBackground+908)
  #07  pc 00000000009e0454  /system/framework/arm64/boot-framework.oat (android.content.res.ResourcesImpl.loadDrawable+1748)
  #08  pc 00000000009d8a68  /system/framework/arm64/boot-framework.oat (android.content.res.Resources.getDrawableForDensity+168)
  #09  pc 00000000009d8928  /system/framework/arm64/boot-framework.oat (android.content.res.Resources.getDrawable+56)
  #10  pc 0000000000856498  /system/framework/arm64/boot-framework.oat (android.content.Context.getDrawable+104)
  #11  pc 000000000078eb90  /system/framework/arm64/boot-framework.oat (com.android.internal.widget.ToolbarWidgetWrapper.setIcon+80)
  #12  pc 00000000007eedac  /system/framework/arm64/boot-framework.oat (com.android.internal.widget.ActionBarOverlayLayout.setIcon+92)
  #13  pc 00000000007c785c  /system/framework/arm64/boot-framework.oat (com.android.internal.policy.PhoneWindow.setDefaultIcon+172)
  #14  pc 0000000000b5ef5c  /system/framework/arm64/boot-framework.oat (android.app.Activity.initWindowDecorActionBar+508)
  #15  pc 0000000000b69360  /system/framework/arm64/boot-framework.oat (android.app.Activity.setContentView+96)
  #16  pc 000000000056ef88  /system/lib64/libart.so (art_quick_invoke_stub+584)
  #17  pc 00000000000d4204  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
  #18  pc 0000000000283fa8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
  #19  pc 000000000027dfb0  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+968)
  #20  pc 0000000000541adc  /system/lib64/libart.so (MterpInvokeVirtualQuick+584)
  #21  pc 0000000000565394  /system/lib64/libart.so (ExecuteMterpImpl+29972)
  #22  pc 000000000011c336  /data/app/zero.seven.unse-21PzqVg-5srvkQdg8yurWQ==/oat/arm64/base.vdex (zero.seven.unse.tvcode.onCreate+162)
  #23  pc 0000000000257cb4  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1977376047+488)
  #24  pc 000000000052aa88  /system/lib64/libart.so (artQuickToInterpreterBridge+1020)
  #25  pc 00000000005780fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
  #26  pc 0000000000b66ac8  /system/framework/arm64/boot-framework.oat (android.app.Activity.performCreate+232)
  #27  pc 0000000000818b70  /system/framework/arm64/boot-framework.oat (android.app.Instrumentation.callActivityOnCreate+240)
  #28  pc 000000000094aacc  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.performLaunchActivity+2428)
  #29  pc 0000000000951a34  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.handleLaunchActivity+1364)
  #30  pc 0000000000b716e4  /system/framework/arm64/boot-framework.oat (android.app.servertransaction.LaunchActivityItem.execute+372)
  #31  pc 000000000083cb94  /system/framework/arm64/boot-framework.oat (android.app.servertransaction.TransactionExecutor.executeCallbacks+708)
  #32  pc 000000000083c858  /system/framework/arm64/boot-framework.oat (android.app.servertransaction.TransactionExecutor.execute+280)
  #33  pc 00000000009383dc  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread$H.handleMessage+1868)
  #34  pc 0000000000baf474  /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+180)
  #35  pc 0000000000bb27fc  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+1436)
  #36  pc 0000000000949334  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+1236)
  #37  pc 000000000056f24c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
  #38  pc 00000000000d4224  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
  #39  pc 0000000000472fd4  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #40  pc 0000000000474a28  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
  #41  pc 00000000004043ac  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
  #42  pc 00000000001456d4  /system/framework/arm64/boot.oat (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
  #43  pc 0000000000edcbe8  /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
  #44  pc 0000000000ee3abc  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2540)
  #45  pc 000000000056f24c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
  #46  pc 00000000000d4224  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
  #47  pc 0000000000472fd4  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #48  pc 0000000000472c34  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
  #49  pc 0000000000367254  /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
  #50  pc 00000000000b95e0  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
  #51  pc 00000000000bc19c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+780)
  #52  pc 0000000000002368  /system/bin/app_process64 (main+1444)
  #53  pc 00000000000ae750  /system/lib64/libc.so (__libc_init+88)
can anyone help me out reading it?
the activity that the app crash in is attached
its simple only a menu that reads data from sql file
when they open the app for the first time everything works fine but when they close it and try to open it the activity dosent work anymore unless the uninstall and reinstall the app
thank you.
 

Attachments

marcick

Well-Known Member
Licensed User
Why don't you create a crashreport inside your app with the Starter Service ?
It would be easier to understand the error and the exact B4A line code where is generated

B4X:
#Region  Service Attributes
    #StartAtBoot: false
    #ExcludeFromLibrary: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Public CrashLog As StringBuilder
    Private logcat As LogCat
End Sub

Sub Service_Create   
    CrashLog.Initialize
#if RELEASE
    logcat.LogCatStart(Array As String("-v","raw","*:F","B4A:v"), "logcat")
#end if
'    'This is the program entry point.
'    'This is a good place to load resources that are not specific to a single activity.
End Sub

Sub Service_Start (StartingIntent As Intent)
    Service.StopAutomaticForeground 'Starter service can start in the foreground state in some edge cases.
End Sub

Sub Service_Destroy

End Sub

Private Sub logcat_LogCatData (Buffer() As Byte, Length As Int)
    CrashLog.Append(BytesToString(Buffer, 0, Length, "utf8"))
    If CrashLog.Length > 2000 Then
        CrashLog.Remove(0, CrashLog.Length - 1000)
    End If
End Sub

'Return True To allow the OS default exceptions handler To handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Dim jo As JavaObject
    Dim l As Long = 500
    jo.InitializeStatic("java.lang.Thread").RunMethod("sleep", Array(l))
    logcat.LogCatStop
    CrashLog.Append(StackTrace)
    CrashLog.Append(CRLF & CRLF & "Crashreport created " & DateTime.Date(DateTime.Now))
    
    ' here you can do what you want with the log string
    ' 1) open an email intent and invite the user to send it to you as attachment
    ' 2) store locally
    ' 3) send to your server with an httpjob
    
    ' add to the log some useful info, device type, model, Android version, etc
    
    Return False
End Sub
 
Top