java.lang.RuntimeException: java.lang.RuntimeException: Cannot initialize Crosswalk Core

JIRA | Ghous | 3 months ago
  1. 0

    I followed Xiaofeng Zhang's suggestions, and the initial error is now gone. However I do have an issue in intialising the Crosswalk Core library. I suspect my problem is in the way the project resources are copied from the library project. I have essentially followed this suggestion: http://www.zhuatang.com/en/as-tips-3.jsp I copied the resources from the library project to my project to the res2 folder and then put in a include for res in the app build.gradle file as follows: android.sourceSets { main.res.srcDirs = ['src/main/res', 'src/main/res2'] } However I can see that the CrossWalk core lib, still cannot find the resources it needs, hence the warning below. Could you please advise if this method is reliable? Or if there is an alternate for Android Studio that would work better? Kind Regards Ghous 09-08 17:04:57.130 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Pre init xwalk core in com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.185 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class org.xwalk.core.XWalkView to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class com.example.ghouskhan.xview2.MainActivity$MyResourceClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve method setResourceClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve object class com.example.ghouskhan.xview2.MainActivity$MyUIClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.186 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Reserve method setUIClient to com.example.ghouskhan.xview2.MainActivity 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 D/XWalkActivity: Initialize by XWalkActivity 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: DecompressTask started 09-08 17:04:57.187 13435-13435/com.example.ghouskhan.xview2 W/ResourceType: No package identifier when getting value for resource number 0x00000000 09-08 17:04:57.263 13435-13470/com.example.ghouskhan.xview2 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 09-08 17:04:57.269 13435-13435/com.example.ghouskhan.xview2 I/GRALLOC-DRM: create intel for driver i915 09-08 17:04:57.293 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: DecompressTask finished, 0 09-08 17:04:57.294 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: ActivateTask started 09-08 17:04:57.296 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Attach xwalk core 09-08 17:04:57.296 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: [App Version] build:20.50.533.12, api:7, min_api:1 09-08 17:04:57.298 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: [Lib Version] build:20.50.533.12, api:7, min_api:5 09-08 17:04:57.300 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Crosswalk download mode: false 09-08 17:04:57.300 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: XWalk core version matched 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Native library is built for IA 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: XWalk core architecture matched 09-08 17:04:57.315 13435-13471/com.example.ghouskhan.xview2 D/XWalkLib: Running in embedded mode 09-08 17:04:57.405 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_Core version 1 09-08 17:04:57.405 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_DRI2 version 4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_TexBuffer version 3 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI2_Flush version 4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/EGL-DRI2: found extension DRI_IMAGE version 11 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 I/OpenGLRenderer: Initialized EGL, version 1.4 09-08 17:04:57.412 13435-13470/com.example.ghouskhan.xview2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 09-08 17:04:57.460 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Dock xwalk core 09-08 17:04:57.460 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Init core bridge 09-08 17:04:57.464 13435-13435/com.example.ghouskhan.xview2 D/XWalkLib: Init xwalk view 09-08 17:04:57.470 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.470 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.471 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.472 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.473 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.475 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.475 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.476 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.477 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.478 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.478 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleableis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$styleis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$stringis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$rawis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$menuis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$layoutis not found. 09-08 17:04:57.480 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$idis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$drawableis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$dimenis not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$coloris not found. 09-08 17:04:57.481 13435-13435/com.example.ghouskhan.xview2 W/XWalkInternalResources: org.xwalk.core.R$attris not found. 09-08 17:04:57.484 13435-13435/com.example.ghouskhan.xview2 D/AndroidRuntime: Shutting down VM 09-08 17:04:57.484 13435-13435/com.example.ghouskhan.xview2 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.ghouskhan.xview2, PID: 13435 java.lang.RuntimeException: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: java.lang.RuntimeException: Cannot initialize Crosswalk Core at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:194) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: org.chromium.base.library_loader.ProcessInitException at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:285) at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123) at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.ghouskhan.xview2-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ghouskhan.xview2-2/lib/x86_64, /data/app/com.example.ghouskhan.xview2-2/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libxwalkdummy.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:271) at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123) at org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192) at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67) at org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183) at org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109) at java.lang.reflect.Method.invoke(Native Method) at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) at org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251) at org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5646) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) Impacted Cases ============== Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

    JIRA | 3 months ago | Ghous
    java.lang.RuntimeException: java.lang.RuntimeException: Cannot initialize Crosswalk Core
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    app crash on android api 16

    GitHub | 1 month ago | mrugendra
    org.chromium.base.library_loader.ProcessInitException
  4. 0

    chromium_android_linker.cr crash

    GitHub | 2 years ago | rkawala
    org.chromium.base.library_loader.ProcessInitException

  1. filpgame 1 times, last 1 month ago
  2. rp 3 times, last 1 month ago
  3. franky li 4 times, last 1 month ago
  4. ajinkya_w 21 times, last 1 month ago
  5. serious2monkeys 14 times, last 1 week ago
26 more registered users
69 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.ghouskhan.xview2-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ghouskhan.xview2-2/lib/x86_64, /data/app/com.example.ghouskhan.xview2-2/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libxwalkdummy.so"

    at java.lang.Runtime.loadLibrary()
  2. Java RT
    System.loadLibrary
    1. java.lang.Runtime.loadLibrary(Runtime.java:367)
    2. java.lang.System.loadLibrary(System.java:1076)
    2 frames
  3. org.chromium.base
    LibraryLoader.ensureInitialized
    1. org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:271)
    2. org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:123)
    2 frames
  4. org.xwalk.core
    XWalkViewDelegate$1.run
    1. org.xwalk.core.internal.XWalkViewDelegate$1.run(XWalkViewDelegate.java:192)
    1 frame
  5. org.chromium.base
    ThreadUtils.runOnUiThreadBlocking
    1. org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:67)
    1 frame
  6. org.xwalk.core
    XWalkViewDelegate.init
    1. org.xwalk.core.internal.XWalkViewDelegate.startBrowserProcess(XWalkViewDelegate.java:188)
    2. org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:183)
    3. org.xwalk.core.internal.XWalkViewDelegate.init(XWalkViewDelegate.java:109)
    3 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. org.xwalk.core
    XWalkLibraryLoader$ActivateTask.onPostExecute
    1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
    2. org.xwalk.core.XWalkCoreWrapper.initXWalkView(XWalkCoreWrapper.java:251)
    3. org.xwalk.core.XWalkCoreWrapper.dockXWalkCore(XWalkCoreWrapper.java:212)
    4. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:343)
    5. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:317)
    5 frames
  9. Android Platform
    ActivityThread.main
    1. android.os.AsyncTask.finish(AsyncTask.java:651)
    2. android.os.AsyncTask.access$500(AsyncTask.java:180)
    3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5646)
    6 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
    2 frames