Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova app crashes when using Chrome DevTools

I'm creating an app in Cordova for Android, and I'm using Chrome DevTools for debugging. But everytime I use inspect element my app crashes without showing any errors.

It won't happen if I just start DevTools and my app, it will only happen when I use inspect element. I don't have much code yet, only an index file that loads all the JavaScript and CSS files and shows some images for my loading page.

There are no errors showing up in my console either.

Chrome Version 57.0.2987.133
Samsung Galaxy Edge 7
Android 7.0
Cordova 6.5.0

UPDATE:
Tested in a newer version of Chrome (58.0.3029.96) and the problem still exists.

UPDATE:
I'm using a real device but the problem also exists when using emulated devices through Android Studio.

like image 962
Wyannah Avatar asked May 06 '17 19:05

Wyannah


1 Answers

With the limited information available, I guess the issue could be probably related to the issue logged in chromium project.

As per the chromium issue comments, this could probably be an issue with the device where debugging is done as device is not able to get the latest version of android webview.

The OP has mentioned that the issue happens in emulator too. So probably GPU emulation enabled emulator should resolve the issue.

like image 119
Gandhi Avatar answered Oct 26 '22 23:10

Gandhi