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]
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help