-
Notifications
You must be signed in to change notification settings - Fork 15
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: Evothings Viewer craches #26
Comments
Some observations: The part of logcat shown above indicates that the origin is here: The random access file seems to be opened by the WebView code. The viewer source code in MainActivity.java does not seem to open Closables (except for the caching code, which is currently not used or called to my knowledge). Could the error be caused by any of the plugins added? Have not seen this error in the "plain" Viewer. |
As reported on Evothings Gitter channel, this error seems to occur with a custom version of the viewer (including the additional plugins), a viewer built from source project (with no additional plugins) and the one downloaded from the app store. The Viewer will work for a few hours and then crash. Once any version has crashed it will not start up again until the device factory settings have been restored ( with selection to not use a backed up version to restore). The full logcat output is attached. |
UPDATE: This error seems to be caused by latest Android System Webview updates on my device. Uninstalling the updates has resulted in the viewer being stable. |
@tmac2470 Thanks a lot for reporting! Closing this issue for now. Let me know if to reopen. |
I am fairly sure this is a pure Android WebView bug (not Evothings or Cordova related), as reported here: https://code.google.com/p/android/issues/detail?id=226751 It seems to manifest itself on only on later Android versions and I also found this quote implying that API 25 has changed to fix it:
Currently Cordova-android uses Android API 14-23: https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html ...so not sure how we can fix this? |
One approach to solve the WebView issue could be to use Crosswalk: https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview |
This probably was ie to some old setup of the viewer souce. One that updates did not fix. Using the Studio 2.2 build or creating a new project with cordova seemed to fix this. |
Reported on Evothings Gitter channel: https://gitter.im/evothings/evothings
https://gitter.im/evothings/evothings?at=582901e0e462097a30458f60
https://gitter.im/evothings/evothings?at=582a4a2d65485ebc6796f34f
From logcat:
The text was updated successfully, but these errors were encountered: