7
votes

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.

1
We are facing the same issue with a Pixel C Device (Android 7.1.2). The issue popped up during a debug session. One second before it worked as expected, then suddenly it stopped working. The app crashes whenever the debugger is started. There where no updates on the dev machine nor on the pixel C during that session. Even after restart of device and dev machine the issue persists.regnete
I have the same problem with Redmi 4x (Android 6.0), it was working but after few deployments it stops. I can connect to device, I can see the screen of the app in dev tools but just after that the app crash.jcubic
Closing developer tools and opening new one in new tab resolved the issue for me.jcubic
Any code is there?Sagar V
Can you also open logcat and check if you get some error message there?jcesarmobile

1 Answers

4
votes

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.