Another XWalk problem: Crash on DropDown and alert windows.

SuatKorkmazSuatKorkmaz USMember ✭✭✭
edited March 2017 in Xamarin.Android

I downloaded the latest XWalk library here: https://download.01.org/crosswalk/releases/crosswalk/android/stable/latest/

Then I created an Android binding Project and added the .jar file into Jars folder. It's build action is EmbeddedJar.

Jar file in the embedding project:

Then I created a lib folder in the Android project and added the .so files to it. Build action for these files is AndroidNativeLibrary.

The .so files in the Android Project:

Lastly I added the resources from the XWalk library to the Android projects Resources folder. All set to AndroidResource.

Everything seems to works however when I tap a drop down menu or try to open an alert window the app crashes. Please see the LogCat output below.

Sample project also attached (sorry for the big size. It's the XWalk library).

Any help/idea on identifying what is causing the crash would be appreciated.

Thanks,
Suat

03-28 19:14:22.661  4.4.2.Nexus.5   Error   12614   AndroidRuntime  FATAL
EXCEPTION: main 03-28
19:14:22.661    4.4.2.Nexus.5   Error   12614   AndroidRuntime  android.content.res.Resources$NotFoundException:Resource ID #0x0    at
android.content.res.Resources.getValue(Resources.java:1351)     at
android.content.res.Resources.loadXmlResourceParser(Resources.java:2774)
    at android.content.res.Resources.getLayout(Resources.java:1165)     at
android.view.LayoutInflater.inflate(LayoutInflater.java:421)    at
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:378)
    at android.widget.ArrayAdapter.getView(ArrayAdapter.java:369)   at
org.chromium.content.browser.input.SelectPopupAdapter.getView(SelectPopupAdapter.java:56)
    at android.widget.AbsListView.obtainView(AbsListView.java:2346)     at
android.widget.ListView.measureHeightOfChildren(ListView.java:1280)
    at android.widget.ListView.onMeasure(ListView.java:1188)    at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)   at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)   at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)     at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)   at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)   at
android.view.View.measure(View.java:18788)  at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)   at
com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2643)
    at android.view.View.measure(View.java:18788)   at
android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)    at
android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1191)  at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)    at
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    at
android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    at android.view.Choreographer.doCallbacks(Choreographer.java:670)   at
android.view.Choreographer.doFrame(Choreographer.java:606)  at
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    at android.os.Handler.handleCallback(Handler.java:739)  at
android.os.Handler.dispatchMessage(Handler.java:95)     at
android.os.Looper.loop(Looper.java:148)     at
android.app.ActivityThread.main(ActivityThread.java:5417)   at
java.lang.reflect.Method.invoke(Native Method)  at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)  
Force finishing activity
com.sebit.vcloud/md5f07cdf17c5f00f839e3f222c3c30d9a8.MainActivity
03-28 19:14:22.661  4.4.2.Nexus.5   Error   12614   AndroidRuntime  Process:
com.sebit.vcloud, PID: 12614 03-28
19:14:21.071    4.4.2.Nexus.5   Warning 12614   ResourceType    No package
identifier when getting value for resource number 0x00000000 03-28
19:14:21.071    4.4.2.Nexus.5   Debug   12614   AndroidRuntime  Shutting down VM
Sign In or Register to comment.