Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crashes upon opening a html select input element #21

Open
jbhue opened this issue Sep 12, 2016 · 2 comments
Open

Android app crashes upon opening a html select input element #21

jbhue opened this issue Sep 12, 2016 · 2 comments

Comments

@jbhue
Copy link

jbhue commented Sep 12, 2016

I have switched over to TiCrosswalk from the default Webview on the android platform. I am very pleased with this module and really appreciate the work it took to make it.

I have noticed that after moving to TiCrosswalk for my webview my app crashes when a user clicks on a html input element. I don't recall this happening on the default android webview technology. Below is the log found in the Appcelerator console when the crash occurs. What I believe to be the most relevant line is in bold.

Here is a stack overflow post related to this issue for reference: http://stackoverflow.com/questions/10085753/app-crash-on-clicking-select-box-in-webview

Here is a similar issue on Titanium's Jira from 2012: https://jira.appcelerator.org/browse/TIMOB-8267

Is this something that needs to be addressed by TiCrosswalk or is there something I can do differently to avoid this issue?

[ERROR] : chromium: [ERROR:xwalk_autofill_client.cc(170)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
[ERROR] : chromium: [ERROR:xwalk_autofill_client.cc(170)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
[WARN] : W/System.err: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
[WARN] : W/System.err: at android.view.ViewRootImpl.setView(ViewRootImpl.java:566)
[WARN] : W/System.err: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
[WARN] : W/System.err: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
[WARN] : W/System.err: at android.app.Dialog.show(Dialog.java:298)
[WARN] : W/System.err: at org.chromium.content.browser.input.SelectPopupDialog.show(SelectPopupDialog.java:133)
[WARN] : W/System.err: at org.chromium.content.browser.ContentViewCore.showSelectPopup(ContentViewCore.java:2476)
[WARN] : W/System.err: at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
[WARN] : W/System.err: at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:135)
[WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
[WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method)
[WARN] : W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
[INFO] : chromium: [FATAL:jni_android.cc(249)] Check failed: false. Please include Java exception stack in crash report

Thanks.

@TheVisitorX
Copy link

TheVisitorX commented Sep 23, 2016

We have the same issue.. Is this project still alive? It would be great if someone could release a fix for that because without it's not possible to use that module in release environment... So it's useless!

@jonatansberg
Copy link
Contributor

This module is no longer actively maintained. In order to handle select inputs and other native UI there are a few additional callbacks/integration points that needs to be handled.

See this page https://crosswalk-project.org/documentation/android/embedding_crosswalk.html and the API docs https://crosswalk-project.org/apis/embeddingapidocs_v6/index.html for further info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants