Hi, Andrew
Both LG G4 (LG-H815) and Samsung Galaxy S6 (SM-G920F) are 64bit devices, but
the 64bit lib so has not been released.
There are two workarounds for 64bit devices:
1. adb install –abi=armeabi test.apk // it only works on rooted devices.
2. Assume that you are using cordova, please create a folder named
armeabi-v7a under “platforms/android/libs”,
then create an empty lib so, the name format like as ”lib*.so”, e.g.
libxwalktest.so, put it under armeabi-v7a
then build your project.
Please look at https://crosswalk-project.org/jira/browse/XWALK-4978 for the
reference.
Thanks.
BRs,
Hengzhi Wu
From: Crosswalk-help
[mailto:[email protected]] On Behalf Of Andrew
Beveridge
Sent: Wednesday, September 16, 2015 6:50 PM
To: Sun, Lin
Cc: [email protected]
Subject: Re: [Crosswalk-help] Please help with XWalkView native crash on some
devices
Hi Lin,
After retrying with my modified AAR build to include a stack trace in
checkCoreArchitecture, I've got an additional stack trace with more info:
09-16 11:44:52.099 12046-12046/com.podfather.podfather D/XWalkLib﹕ Failed to
load native library - stack trace below
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕
java.lang.RuntimeException: java.lang.RuntimeException: Cannot load Crosswalk
Core
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:274)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:222)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:188)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:207)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:97)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
com.podfather.podfather.activities.XWalkViewActivity.onCreate(XWalkViewActivity.java:87)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.Activity.performCreate(Activity.java:6097)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.ActivityThread.access$800(ActivityThread.java:162)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.os.Handler.dispatchMessage(Handler.java:102)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.os.Looper.loop(Looper.java:135)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
android.app.ActivityThread.main(ActivityThread.java:5430)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.reflect.Method.invoke(Native Method)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.reflect.Method.invoke(Method.java:372)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ Caused
by: java.lang.RuntimeException: Cannot load Crosswalk Core
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.internal.XWalkViewDelegate.loadXWalkLibrary(XWalkViewDelegate.java:115)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.reflect.Method.invoke(Native Method)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.reflect.Method.invoke(Method.java:372)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ ... 19
more
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ Caused
by: org.chromium.base.library_loader.ProcessInitException
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:413)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.chromium.base.library_loader.LibraryLoader.loadNow(LibraryLoader.java:192)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.xwalk.core.internal.XWalkViewDelegate.loadXWalkLibrary(XWalkViewDelegate.java:113)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ ... 22
more
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ Caused
by: java.lang.UnsatisfiedLinkError:
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.podfather.podfather-1/base.apk"],nativeLibraryDirectories=[/data/app/com.podfather.podfather-1/lib/arm64,
/vendor/lib64, /system/lib64]]] couldn't find "libxwalkcore.so"
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.Runtime.loadLibrary(Runtime.java:366)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
java.lang.System.loadLibrary(System.java:988)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ at
org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:394)
09-16 11:44:52.099 12046-12046/com.podfather.podfather W/System.err﹕ ... 24
more
09-16 11:44:52.119 12046-12046/com.podfather.podfather D/AndroidRuntime﹕
Shutting down VM
Any suggestions?
I'm guessing this is caused by ProGuard (which unfortunately I can't disable as
otherwise our app is over the 65k function limit.
Thanks,
Andrew
On 16 September 2015 at 02:55, Sun, Lin
<[email protected]<mailto:[email protected]>> wrote:
Hi Andrew,
Before the log “Please extend XWalkActivity for shared mode”, you can see
“Failed to load native library”. In most cases, it means the native library
embedded in your app doesn’t match the CPU architecture of the device. After
this, the app will try to initialize shared mode instead, but you didn’t use
XWalkActivity, then the crash happened.
Could you tell me which Crosswalk AAR are you using and the specific devices
where the crash occurred?
Thanks,
Lin
From: Crosswalk-help
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Andrew Beveridge
Sent: Wednesday, September 16, 2015 04:15
To:
[email protected]<mailto:[email protected]>
Cc: David Hodgson
Subject: [Crosswalk-help] Please help with XWalkView native crash on some
devices
Hi all,
I've recently updated our application to use Realm (realm.io<http://realm.io/>)
instead of SQLite for our data storage needs, along with a variety of other bug
fixes.
However, while the new version of the app works fine on 6+ devices I've tested
on (spanning android versions such as 4.1.2, 4.3, 4.4.4, 5.1.1), it crashes on
startup on one or two specific devices.
These devices have no problem with the previous version of our application, but
I'm having trouble figuring out what of my changes is causing the new version
to crash.
The Crosswalk AAR bundle I'm using hasn't changed from the old app to the new
one, and while trying to narrow down the problem I've found that I can cause
the old version to break if I simply include the Realm library as a Gradle
dependency!
This makes me suspect it's something proguard-related, but it doesn't really
explain why it's only happening on one specific device.
Anyway, here's the crash log from my LG G4 (one of 2 devices I've found it's
broken on so far):
09-15 21:01:56.293 23374-23374/com.podfather.podfather D/XWalkLib﹕ Init
embedded mode
09-15 21:01:56.303 23374-23374/com.podfather.podfather D/XWalkLib﹕ lib
version, api:5, min api:5
09-15 21:01:56.303 23374-23374/com.podfather.podfather D/XWalkLib﹕ app
version, api:5, min api:5
09-15 21:01:56.333 23374-23374/com.podfather.podfather D/XWalkLib﹕ Failed to
load native library
09-15 21:01:56.343 23374-23374/com.podfather.podfather D/AndroidRuntime﹕
Shutting down VM
09-15 21:01:56.353 23374-23374/com.podfather.podfather E/ACRA﹕ ACRA caught a
AssertionFailedError for com.podfather.podfather
junit.framework.AssertionFailedError: Please extend XWalkActivity for
shared mode
at junit.framework.Assert.fail(Assert.java:50)
at
org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:111)
at
org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:105)
at
com.podfather.podfather.activities.XWalkViewActivity.onCreate(XWalkViewActivity.java:87)
at android.app.Activity.performCreate(Activity.java:6097)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)
at android.app.ActivityThread.access$800(ActivityThread.java:162)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5430)
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:913)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
Obviously that error ("Please extend XWalkActivity for shared mode") isn't
particularly informative, as it's totally irrelevant to how crosswalk is being
used in our app (embedded mode).
I'm struggling to figure out what the next step is to debug this - because it's
a crash in the native crosswalk build, I can't debug it using any of my usual
Android debugging techniques.
Any help would be greatly appreciated.
Kind regards,
Andrew
--
Andrew Beveridge
Senior Developer
PODFather Ltd
Web: www.podfather.com<http://www.podfather.com>
Email: [email protected]<mailto:[email protected]>
Phone: +44 (0) 131 553 0402<tel:%2B44%20%280%29%20131%20553%200402>
For technical support please email
[email protected]<mailto:[email protected]>
--
Andrew Beveridge
Senior Developer
PODFather Ltd
Web: www.podfather.com<http://www.podfather.com>
Email: [email protected]<mailto:[email protected]>
Phone: +44 (0) 131 553 0402
For technical support please email
[email protected]<mailto:[email protected]>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help