ks32 / CrosswalkNative

Embedded Crosswalk 77 webview based sample project.
95 stars 42 forks source link

crash: An error occured while executing doInBackground() #2

Open DiegoRRR opened 5 years ago

DiegoRRR commented 5 years ago

It crashes on both my ARM and x86 tablets. ( both on Android 4.4, one has ARM RK3188 SOC, the other has Intel Atom Z3735 SOC. )

From Android Studio logcat :

12-02 03:29:17.091 16579-16594/ks32.crosswalk_native D/XWalkLib: XWalk core version matched 12-02 03:29:17.101 16579-16594/ks32.crosswalk_native D/dalvikvm: DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS 12-02 03:29:17.101 16579-16594/ks32.crosswalk_native W/dalvikvm: VFY: unable to resolve static field 585 (SUPPORTED_ABIS) in Landroid/os/Build; 12-02 03:29:17.101 16579-16594/ks32.crosswalk_native D/dalvikvm: VFY: replacing opcode 0x62 at 0x0004 12-02 03:29:17.111 16579-16594/ks32.crosswalk_native W/dalvikvm: Exception Ljava/lang/RuntimeException; thrown while initializing Lorg/xwalk/core/internal/XWalkViewDelegate; 12-02 03:29:17.111 16579-16594/ks32.crosswalk_native D/dalvikvm: Method.invoke() on bad class Lorg/xwalk/core/internal/XWalkViewDelegate; failed 12-02 03:29:17.111 16579-16594/ks32.crosswalk_native W/dalvikvm: threadid=12: thread exiting with uncaught exception (group=0x4184eba8) > 12-02 03:29:17.121 16579-16594/ks32.crosswalk_native E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2 Process: ks32.crosswalk_native, PID: 16579 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.ExceptionInInitializerError at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349) at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248) at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)  at java.lang.Thread.run(Thread.java:841)  Caused by: java.lang.RuntimeException: Invalid reflection at org.xwalk.core.internal.XWalkViewDelegate.(XWalkViewDelegate.java:71) at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)  at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)  at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)  at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)  at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)  at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)  at android.os.AsyncTask$2.call(AsyncTask.java:288)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)  at java.lang.Thread.run(Thread.java:841)  Caused by: java.lang.NoSuchMethodException: getAssignedPackageIdentifiers [] at java.lang.Class.getConstructorOrMethod(Class.java:472) at java.lang.Class.getMethod(Class.java:857) at org.xwalk.core.internal.XWalkViewDelegate.(XWalkViewDelegate.java:69) at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)  at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)  at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)  at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)  at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)  at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)  at android.os.AsyncTask$2.call(AsyncTask.java:288)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)  at java.lang.Thread.run(Thread.java:841)  12-02 03:29:17.141 493-768/system_process W/ActivityManager: Force finishing activity ks32.crosswalk_native/.MainActivity 12-02 03:29:17.151 16579-16579/ks32.crosswalk_native D/OpenGLRenderer: Enabling debug mode 0

Please at least tell me if the error comes from my part or if it is a bug in Crosswalk. I reinstalled Android Studio and Java, redownloaded your project, even reseted my tablet, but I still get this error.

ks32 commented 5 years ago

I myself using older crosswalk for api =<21 due to crashes. Use crosswalk 54 for new api only.

DiegoRRR commented 5 years ago

Thanks for your reply. What a shame, I stopped using the old Crosswalk because it had too serious bugs in both webaudio and html5audio, and my two testing devices have Android 4.4. I see some people are setting up a funding and you will work on it. Is there any chance a future version will be compatible again with Android older than 5 ? I think Crosswalk is especially useful for supporting older Android versions because their webview can't be used for it is obsolete and can't be updated.

DiegoRRR commented 5 years ago

Are you still working on it ? Anything new ?

ks32 commented 5 years ago

by next month I will start on chrome 64.

Pakistan Data Management Services p: +92 21 3455 9003 w: www.pakdata.com https://facebook.com/pakdata https://twitter.com/hashtag/Pakdata https://www.instagram.com/pakdataapps/

On Mon, May 20, 2019 at 9:42 PM DiegoRRR notifications@github.com wrote:

Are you still working on it ? Anything new ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ks32/CrosswalkNative/issues/2?email_source=notifications&email_token=AAHILZZ2THUMG2B2Z2TNAHTPWLIHDA5CNFSM4GHU2PR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZNDKA#issuecomment-494064040, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHILZ6P5PVB7P76CUMHIQ3PWLIHDANCNFSM4GHU2PRQ .