Hydrated app crash on Android

  • 3
  • Problem
  • Updated 3 years ago
Hello,

hydration causes my app #172199 to crashes on Galaxy Plus (Android 2.3.3). The error is

08-26 21:48:21.131: E/Web Console(2306): Uncaught illegal access at file:///android_asset/www/hydra/hydra.js:120


Here is the full log from app start: https://docs.google.com/a/mobimentum.it/file/d/0B7rP4f033XZpRGV2U2VKdHZ5TGc/edit

Any clue? Is that a bug on PG:B side?

Thanks, regards
Maurizio
Photo of Maurix

Maurix

  • 16 Posts
  • 1 Reply Like

Posted 8 years ago

  • 3
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hey Maurix

I'm not able to access the link. Can you confirm the share permission please? It will be very helpful if you could paste the full logcat as well.

Thanks
-Amir
Photo of Maurix

Maurix

  • 16 Posts
  • 1 Reply Like
clicking on the link does not work, copy and paste works

anyway, here's the full log:




08-26 21:48:19.970: W/dalvikvm(2306): VFY: unable to resolve direct method 288: Landroid/webkit/WebView;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V
08-26 21:48:20.000: I/webclipboard(2306): clipservice: android.sec.clipboard.ClipboardExManager@40528d30
08-26 21:48:20.030: I/CordovaLog(2306): Changing log level to DEBUG(3)
08-26 21:48:20.030: I/CordovaLog(2306): Found preference for useBrowserHistory=false
08-26 21:48:20.030: D/CordovaLog(2306): Found preference for useBrowserHistory=false
08-26 21:48:20.030: I/CordovaLog(2306): Found preference for fullscreen=false
08-26 21:48:20.030: D/CordovaLog(2306): Found preference for fullscreen=false
08-26 21:48:20.030: D/CordovaWebView(2306): Origin to allow: http://127.0.0.1*
08-26 21:48:20.040: E/dalvikvm(2306): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse
08-26 21:48:20.040: W/dalvikvm(2306): VFY: unable to resolve new-instance 107 (Landroid/webkit/WebResourceResponse;) in Lorg/apache/cordova/CordovaWebViewClient;
08-26 21:48:20.040: W/dalvikvm(2306): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse;)
08-26 21:48:20.050: W/dalvikvm(2306): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse;)
08-26 21:48:20.050: W/dalvikvm(2306): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse;)
08-26 21:48:20.050: W/dalvikvm(2306): VFY: unable to resolve virtual method 300: Landroid/webkit/WebViewClient;.shouldInterceptRequest (Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse;
08-26 21:48:20.050: D/DroidGap(2306): DroidGap.init()
08-26 21:48:20.060: D/CordovaWebView(2306): >>> loadUrl(file:///android_asset/www/index.html)
08-26 21:48:20.060: D/PluginManager(2306): init()
08-26 21:48:20.060: D/CordovaWebView(2306): >>> loadUrlNow()
08-26 21:48:20.070: D/SoftKeyboardDetect(2306): Ignore this event
08-26 21:48:20.090: V/webview(2306): OnSizeChanged: Enter
08-26 21:48:20.090: D/DroidGap(2306): onMessage(onPageStarted,file:///android_asset/www/index.html)
08-26 21:48:20.110: D/SoftKeyboardDetect(2306): Ignore this event
08-26 21:48:20.451: D/CordovaLog(2306): loading require.js
08-26 21:48:20.451: D/CordovaLog(2306): file:///android_asset/www/hydra/libs/require/require-1.0.8.js: Line 1 : loading require.js
08-26 21:48:20.451: I/Web Console(2306): loading require.js at file:///android_asset/www/hydra/libs/require/require-1.0.8.js:1
08-26 21:48:20.511: D/CordovaLog(2306): load = hydra/main
08-26 21:48:20.511: D/CordovaLog(2306): file:///android_asset/www/hydra/libs/require/require-1.0.8.js: Line 1960 : load = hydra/main
08-26 21:48:20.511: I/Web Console(2306): load = hydra/main at file:///android_asset/www/hydra/libs/require/require-1.0.8.js:1960
08-26 21:48:20.531: D/Cordova(2306): onPageFinished(file:///android_asset/www/index.html)
08-26 21:48:20.531: D/CordovaWebView(2306): >>> loadUrlNow()
08-26 21:48:20.531: D/DroidGap(2306): onMessage(onNativeReady,null)
08-26 21:48:20.531: D/DroidGap(2306): onMessage(onPageFinished,file:///android_asset/www/index.html)
08-26 21:48:20.541: V/webview(2306): ZoomScale 3 mPreserveZoom: false
08-26 21:48:20.571: D/DroidGap(2306): onMessage(networkconnection,wifi)
08-26 21:48:20.591: D/DroidGap(2306): onMessage(spinner,stop)
08-26 21:48:20.641: D/CordovaLog(2306): loading zepto.js
08-26 21:48:20.641: D/CordovaLog(2306): file:///android_asset/www/hydra/libs/zepto/zepto.js: Line 1 : loading zepto.js
08-26 21:48:20.641: I/Web Console(2306): loading zepto.js at file:///android_asset/www/hydra/libs/zepto/zepto.js:1
08-26 21:48:20.641: D/CordovaLog(2306): loading lawnchair.js
08-26 21:48:20.641: D/CordovaLog(2306): file:///android_asset/www/hydra/libs/lawnchair/lawnchair.js: Line 1 : loading lawnchair.js
08-26 21:48:20.641: I/Web Console(2306): loading lawnchair.js at file:///android_asset/www/hydra/libs/lawnchair/lawnchair.js:1
08-26 21:48:21.131: D/CordovaLog(2306): syncing app with read ...
08-26 21:48:21.131: D/CordovaLog(2306): file:///android_asset/www/hydra/hydra.js: Line 99 : syncing app with read ...
08-26 21:48:21.131: I/Web Console(2306): syncing app with read ... at file:///android_asset/www/hydra/hydra.js:99
08-26 21:48:21.131: D/CordovaLog(2306): Uncaught illegal access
08-26 21:48:21.131: D/CordovaLog(2306): file:///android_asset/www/hydra/hydra.js: Line 120 : Uncaught illegal access
08-26 21:48:21.131: E/Web Console(2306): Uncaught illegal access at file:///android_asset/www/hydra/hydra.js:120
08-26 21:48:22.533: D/DroidGap(2306): onMessage(spinner,stop)
08-26 21:48:28.068: D/CordovaLog(2306): Uncaught Error: Load timeout for modules: order!hydra/libs/lawnchair/lawnchair-min.js
08-26 21:48:28.068: D/CordovaLog(2306): http://requirejs.org/docs/errors.html#timeout
08-26 21:48:28.068: D/CordovaLog(2306): file:///android_asset/www/hydra/libs/require/require-1.0.8.js: Line 1634 : Uncaught Error: Load timeout for modules: order!hydra/libs/lawnchair/lawnchair-min.js
08-26 21:48:28.068: D/CordovaLog(2306): http://requirejs.org/docs/errors.html#timeout
08-26 21:48:28.068: E/Web Console(2306): Uncaught Error: Load timeout for modules: order!hydra/libs/lawnchair/lawnchair-min.js
08-26 21:48:28.068: E/Web Console(2306): http://requirejs.org/docs/errors.html#timeout at file:///android_asset/www/hydra/libs/require/require-1.0.8.js:1634
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Hey Maurix,

Can I get the Android version you're running this on, and also any other information you think would be appropriate such as the device make and model/emulator.

This would be on PG:Build's side.

Hardeep Shoker
Photo of Maurix

Maurix

  • 16 Posts
  • 1 Reply Like
of course: it's a galaxy S plus I9001 with Android 2.3.3

I've tested the same app on other platforms such as iOS and Android ICS and it's working
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Okay Thanks!

I'm going to log the information here:
https://github.com/phonegap/build/iss...

It seems that Hydration is mostly failing on Android versions < 4.0.

I'll try and get this issue resolved as soon as I can.

Hardeep Shoker
Photo of Maurizio Pinotti

Maurizio Pinotti

  • 14 Posts
  • 0 Reply Likes
thanks!
Photo of Andrea La Scola

Andrea La Scola

  • 1 Post
  • 0 Reply Likes
Hello! i noticed the same problem with a Galaxy next turbo and a HTC smartphone(don't know the model exactly) both with android < 4.0
No problem with my ICS Galaxy s2
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
FYI this was fixed (shoulda responded to this some time ago) -- the hydra client was causing that illegal access error in certain versions of android. Please check out hydration again and let us know.
Photo of Al Doso

Al Doso

  • 2 Posts
  • 0 Reply Likes
still not working with Android 5. Got the same error crash!
Photo of Ken Schwartz

Ken Schwartz

  • 2 Posts
  • 0 Reply Likes
I'm having this issue today. I think it could be b/c I switched to my own config.xml and there is no doc regarding what changes are needed there for hydration.
Photo of Al Doso

Al Doso

  • 2 Posts
  • 0 Reply Likes
I have this problem too, with Android 5