Android Question Strange app crash error

DavideV

Active Member
Licensed User
Longtime User
Hi community :)
i've got a strange app crash report for one of my apps on Google play.
I can't understand if the error is related to the app or the device itself (something not supported?).
The error referres to a webview that loads an html page from Dirassets to show an 'About...' with infos on the app itself and other my apps.
I use it in all my apps and this is the first time i see this kind of crash.

The device (as reported in Gplay dev console) is a Galaxy S6 edge (zerolte).
If members here could try on such device here is the app link:
https://play.google.com/store/apps/details?id=it.davidev.tagapplauncher

and here the crash report...

B4X:
java.lang.NoSuchMethodException
B4X:
android.util.AndroidRuntimeException: java.lang.RuntimeException: Invalid reflection
    at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:130)
    at android.webkit.WebView.getFactory(WebView.java:2202)
    at android.webkit.WebView.ensureProviderCreated(WebView.java:2197)
    at android.webkit.WebView.setOverScrollMode(WebView.java:2256)
    at android.view.View.<init>(View.java:3843)
    at android.view.View.<init>(View.java:3954)
    at android.view.ViewGroup.<init>(ViewGroup.java:513)
    at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
    at android.webkit.WebView.<init>(WebView.java:553)
    at android.webkit.WebView.<init>(WebView.java:498)
    at android.webkit.WebView.<init>(WebView.java:481)
    at android.webkit.WebView.<init>(WebView.java:468)
    at android.webkit.WebView.<init>(WebView.java:458)
    at anywheresoftware.b4a.objects.WebViewWrapper.innerInitialize(WebViewWrapper.java:51)
    at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:65)
    at it.davidev.tagapplauncher.about._initialize(about.java:97)
    at it.davidev.tagapplauncher.main._activity_create(main.java:625)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at it.davidev.tagapplauncher.main.afterFirstLayout(main.java:109)
    at it.davidev.tagapplauncher.main.access$000(main.java:24)
    at it.davidev.tagapplauncher.main$WaitForLayout.run(main.java:87)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:6837)
    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:1404)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.RuntimeException: Invalid reflection
at com.android.webview.chromium.WebViewDelegateFactory$Api21CompatibilityDelegate.<init>(WebViewDelegateFactory.java:246)
at com.android.webview.chromium.WebViewDelegateFactory.createApi21CompatibilityDelegate(WebViewDelegateFactory.java:100)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:100)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1684)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:124)
... 30 more
Caused by: java.lang.NoSuchMethodException: callDrawGLFunction [long]
at java.lang.Class.getMethod(Class.java:665)
at com.android.webview.chromium.WebViewDelegateFactory$Api21CompatibilityDelegate.<init>(WebViewDelegateFactory.java:234)
... 35 more

Thx in advance
 

Johan Schoeman

Expert
Licensed User
Longtime User
Hi community :)
i've got a strange app crash report for one of my apps on Google play.
I can't understand if the error is related to the app or the device itself (something not supported?).
The error referres to a webview that loads an html page from Dirassets to show an 'About...' with infos on the app itself and other my apps.
I use it in all my apps and this is the first time i see this kind of crash.

The device (as reported in Gplay dev console) is a Galaxy S6 edge (zerolte).
If members here could try on such device here is the app link:
https://play.google.com/store/apps/details?id=it.davidev.tagapplauncher

and here the crash report...

B4X:
java.lang.NoSuchMethodException
B4X:
android.util.AndroidRuntimeException: java.lang.RuntimeException: Invalid reflection
    at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:130)
    at android.webkit.WebView.getFactory(WebView.java:2202)
    at android.webkit.WebView.ensureProviderCreated(WebView.java:2197)
    at android.webkit.WebView.setOverScrollMode(WebView.java:2256)
    at android.view.View.<init>(View.java:3843)
    at android.view.View.<init>(View.java:3954)
    at android.view.ViewGroup.<init>(ViewGroup.java:513)
    at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
    at android.webkit.WebView.<init>(WebView.java:553)
    at android.webkit.WebView.<init>(WebView.java:498)
    at android.webkit.WebView.<init>(WebView.java:481)
    at android.webkit.WebView.<init>(WebView.java:468)
    at android.webkit.WebView.<init>(WebView.java:458)
    at anywheresoftware.b4a.objects.WebViewWrapper.innerInitialize(WebViewWrapper.java:51)
    at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:65)
    at it.davidev.tagapplauncher.about._initialize(about.java:97)
    at it.davidev.tagapplauncher.main._activity_create(main.java:625)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at it.davidev.tagapplauncher.main.afterFirstLayout(main.java:109)
    at it.davidev.tagapplauncher.main.access$000(main.java:24)
    at it.davidev.tagapplauncher.main$WaitForLayout.run(main.java:87)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:6837)
    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:1404)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.RuntimeException: Invalid reflection
at com.android.webview.chromium.WebViewDelegateFactory$Api21CompatibilityDelegate.<init>(WebViewDelegateFactory.java:246)
at com.android.webview.chromium.WebViewDelegateFactory.createApi21CompatibilityDelegate(WebViewDelegateFactory.java:100)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:100)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1684)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:124)
... 30 more
Caused by: java.lang.NoSuchMethodException: callDrawGLFunction [long]
at java.lang.Class.getMethod(Class.java:665)
at com.android.webview.chromium.WebViewDelegateFactory$Api21CompatibilityDelegate.<init>(WebViewDelegateFactory.java:234)
... 35 more

Thx in advance
Seems to me it is looking for a method called "callDrawGLFunction" and it does not have access to it in your app...
 
Last edited:
Upvote 0

DavideV

Active Member
Licensed User
Longtime User
Thx Johan, after some researches i found it's related to webview and Lollipop (api 21), most of the cases when the user install the xposed module from XDA developers... in few words the OS is in some way modified...
This mean it's not related to the app itself.
 
Upvote 0
Top