App crashes after installation


#1

Hello,

I’ve made lots of changes in my app so it’s impossible to know why my app is crashing or which component is causing this. But I have the crash report and maybe someone can tell me what’s happening. I have bolded the lines that are highlighted in Google Play Console crash report.

“main” prio=5 tid=1 Blocked
| group=“main” sCount=1 dsCount=0 obj=0x77922000 self=0xb8823f98
| sysTid=17286 nice=0 cgrp=apps sched=0/0 handle=0xb6fddec8
| state=S schedstat=( 801260688 155883008 1130 ) utm=73 stm=7 core=0 HZ=100
| stack=0xbe167000-0xbe169000 stackSize=8MB
| held mutexes=
native: pc 000000000000f618 /system/lib/libc.so (syscall+28)
native: pc 00000000000aae0f /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82)
native: pc 00000000001300d3 /system/lib/libart.so (_ZN3art2gc4Heap25NotifyConcurrentGCRequestEPNS_6ThreadE+1082)
native: pc 0000000000130235 /system/lib/libart.so (_ZN3art2gc4Heap32RequestConcurrentGCAndSaveObjectEPNS_6ThreadEPPNS_6mirror6ObjectE+100)
native: pc 00000000000c943f /system/lib/libart.so (_ZN3art6mirror5Class21AllocNonMovableObjectEPNS_6ThreadE+958)
native: pc 00000000000c954f /system/lib/libart.so (_ZN3art11ClassLinker10LoadMethodEPNS_6ThreadERKNS_7DexFileERKNS_21ClassDataItemIteratorENS_6HandleINS_6mirror5ClassEEE+110)
native: pc 00000000000cbb53 /system/lib/libart.so (_ZN3art11ClassLinker16LoadClassMembersERKNS_7DexFileEPKhNS_6HandleINS_6mirror5ClassEEEPNS7_11ClassLoaderEPKNS_7OatFile8OatClassE+1178)
native: pc 00000000000cbfe7 /system/lib/libart.so (_ZN3art11ClassLinker9LoadClassERKNS_7DexFileERKNS1_8ClassDefENS_6HandleINS_6mirror5ClassEEEPNS8_11ClassLoaderE+358)
native: pc 00000000000d3385 /system/lib/libart.so (_ZN3art11ClassLinker11DefineClassEPKcNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS7_8ClassDefE+316)
native: pc 00000000000d3949 /system/lib/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+452)
native: pc 00000000000d3c41 /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE.part.403+356)
native: pc 000000000025d4db /system/lib/libart.so (_ZN3art8verifier12RegTypeCache12ResolveClassEPKcPNS_6mirror11ClassLoaderE+130)
native: pc 000000000025e0ed /system/lib/libart.so (_ZN3art8verifier12RegTypeCache4FromEPNS_6mirror11ClassLoaderEPKcb+136)
native: pc 000000000024f10d /system/lib/libart.so (_ZN3art8verifier14MethodVerifier26ResolveClassAndCheckAccessEj+300)
native: pc 0000000000254b9d /system/lib/libart.so (_ZN3art8verifier14MethodVerifier25CodeFlowVerifyInstructionEPj+7120)
native: pc 0000000000255f69 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier20CodeFlowVerifyMethodEv+356)
native: pc 000000000025630d /system/lib/libart.so (_ZN3art8verifier14MethodVerifier14VerifyCodeFlowEv+604)
native: pc 000000000025646d /system/lib/libart.so (_ZN3art8verifier14MethodVerifier6VerifyEv+120)
native: pc 0000000000256b3b /system/lib/libart.so (_ZN3art8verifier14MethodVerifier12VerifyMethodEjPKNS_7DexFileENS_6HandleINS_6mirror8DexCacheEEENS5_INS6_11ClassLoaderEEEPKNS2_8ClassDefEPKNS2_8CodeItemEPNS6_9ArtMethodEjbb+106)
native: pc 00000000002573ab /system/lib/libart.so (_ZN3art8verifier14MethodVerifier11VerifyClassEPKNS_7DexFileENS_6HandleINS_6mirror8DexCacheEEENS5_INS6_11ClassLoaderEEEPKNS2_8ClassDefEbPNSt3__112basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEE+1274)
native: pc 00000000002577a1 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier11VerifyClassEPNS_6mirror5ClassEbPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE+500)
native: pc 00000000000d6d63 /system/lib/libart.so (_ZN3art11ClassLinker11VerifyClassENS_6HandleINS_6mirror5ClassEEE+610)
native: pc 00000000000d8307 /system/lib/libart.so (_ZN3art11ClassLinker15InitializeClassENS_6HandleINS_6mirror5ClassEEEbb+270)
native: pc 00000000000d8d5b /system/lib/libart.so (_ZN3art11ClassLinker17EnsureInitializedENS_6HandleINS_6mirror5ClassEEEbb+54)
native: pc 00000000001fb049 /system/lib/libart.so (_ZN3artL18Class_classForNameEP7_JNIEnvP7_jclassP8_jstringhP8_jobject+284)
native: pc 000000000005ebe9 /system/framework/arm/boot.oat (Java_java_lang_Class_classForName__Ljava_lang_String_2ZLjava_lang_ClassLoader_2+136)
at java.lang.Class.classForName! (Native method)

  • waiting to lock an unknown object
    at java.lang.Class.forName (Class.java:308)
    at android.webkit.WebViewFactory.getFactoryClass (WebViewFactory.java:145)
    at android.webkit.WebViewFactory.getProvider (WebViewFactory.java:101)
  • locked <@addr=0x73232058> (a java.lang.Object)
    at android.webkit.WebView.getFactory (WebView.java:2185)
  • locked <0x35ac79b0> (a java.lang.Class<android.webkit.WebView>)
    at android.webkit.WebView.ensureProviderCreated (WebView.java:2180)
    at android.webkit.WebView.setOverScrollMode (WebView.java:2239)
    at android.view.View. (View.java:3694)
    at android.view.View. (View.java:3790)
    at android.view.ViewGroup. (ViewGroup.java:497)
    at android.widget.AbsoluteLayout. (AbsoluteLayout.java:55)
    at android.webkit.WebView. (WebView.java:538)
    at android.webkit.WebView. (WebView.java:483)
    at android.webkit.WebView. (WebView.java:466)
    at android.webkit.WebView. (WebView.java:453)
    at android.webkit.WebView. (WebView.java:443)
    at com.google.appinventor.components.runtime.WebViewer. (WebViewer.java:128)
    at java.lang.reflect.Constructor.newInstance! (Native method)
    at java.lang.reflect.Constructor.newInstance (Constructor.java:288)
    at gnu.expr.PrimProcedure.apply (PrimProcedure.java:272)
    ** at gnu.mapping.CallContext.runUntilDone (CallContext.java:234)**
    ** at gnu.mapping.CallContext.runUntilValue (CallContext.java:298)**
    ** at gnu.kawa.reflect.Invoke.applyN (Invoke.java:209)**
    ** at gnu.mapping.ProcedureN.apply2 (ProcedureN.java:39)**
    ** at com.appybuilder.h_habboubi.ImageToText.Screen1.$define (Screen1.yail:10181)**
    ** at com.google.appinventor.components.runtime.Form.onCreateFinish (Form.java:325)**
    ** at com.google.appinventor.components.runtime.Form.onCreate (Form.java:272)**
    at android.app.Activity.performCreate (Activity.java:6112)
    at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1117)
    at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2609)
    at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2721)
    at android.app.ActivityThread.access$900 (ActivityThread.java:168)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1393)
    at android.os.Handler.dispatchMessage (Handler.java:102)
    at android.os.Looper.loop (Looper.java:135)
    at android.app.ActivityThread.main (ActivityThread.java:5753)
    at java.lang.reflect.Method.invoke! (Native method)
    at java.lang.reflect.Method.invoke (Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1405)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1200)

#2

@habboubih As your log shows, its related to WebViewer. What site are you going to and what logic do you have during/after opening that site?


#3

which extensions are you using?
Taifun


#4

I retrieved to a backup made 10 days ago. Thankfully, I always backup my projects after each release. You all should do the same

@habboubih As your log shows, its related to WebViewer. What site are you going to and what logic do you have during/after opening that site?

I haven’t changed anything in my WebViewer component since last release. But this component is for Google Analytics and the code inside the HTML is the javascript tracker.

which extensions are you using?

I am using so many extensions, but I don’t think this is the problem because I haven’t used a new extension since the last release.


#5

ok, you changed nothing and you do not like to provide more information…

another guess: probably the Android System Webview update is the reason?
see also https://groups.google.com/d/msg/mitappinventortest/Iwo-UQGuGSM/uSXaei8qBgAJ

as a test what about disabling your webviewer blocks?

Taifun


#6

It’s not that I don’t want to provide more information. It’s because the list is long. Here is a list of extensions that I am using:

I’ve already tested that. I’ve removed the WebViewer component and it is still crashing


#7

@habboubih what is web viewer dialog extension?


#8

@habboubih Is this happening on Samsung?


#9

It’s a dialog that has a web viewer. It’s working fine!

Yes. Note 5 and Note 8. I’ve also tried it on my emulator.


#10

The reason i asked was because my googling showed this is specificto Samsung. I’ll check in more detail. Meanwhile can you test on non Samsung device to see if you get same error?


#11

I actually only have Samsung devices. Note 4, Note 5, Note 8 and Samsung Tab S3


#12

@habboubih is it possible for you to upload your apk to Dropbox or Google drive and allow us to test on none Samsung device?


#13

I’ve actually retrieved an older backup so I got a cleaner version if my project with no errors. Thanks for your help though