Hi Lin, Thanks for the quick response.
The AAR bundle I'm using is a slightly customised build of Crosswalk-14 which I compiled myself a few months ago (and works fine on these devices without Realm), however the problem also occurs using the published Crosswalk-14 (14.43.343.23) and Crosswalk-15 (15.44.384.6) bundles from Maven. I've reproduced it on these phones so far: LG G4 (LG-H815) and Samsung Galaxy S6 (SM-G920F). After a brief chat with robsta on IRC, he pointed out I could get more useful debug information by adding a printStackTrace() to XWalkCoreWrapper.java checkCoreArchitecture() just after the "Failed to load native library" log message is printed. This is what I'm currently doing (just waiting for ninja to finish building right now. I'll let you know once I've (hopefully) got more useful crash information! Cheers, Andrew On 16 September 2015 at 02:55, Sun, Lin <[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]] *On Behalf Of *Andrew > Beveridge > *Sent:* Wednesday, September 16, 2015 04:15 > *To:* [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) 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 > > Email: [email protected] > > Phone: +44 (0) 131 553 0402 > > > > For technical support please email [email protected] > > -- Andrew Beveridge Senior Developer PODFather Ltd Web: www.podfather.com Email: [email protected] Phone: +44 (0) 131 553 0402 For technical support please email [email protected]
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
