question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Program doesn't fully quit when a webview's devtools are opened in a webview

See original GitHub issue

NWJS Version : 0.49.0 Operating System : Windows 10

Expected behavior

When all windows in the application are closed, the application closes and the .exe can be run again, deleted etc.

Actual behavior

When all windows are closed, some processes remaining running, preventing the .exe from being run again, deleted etc.

The following processes remain:

image

The bottom process needs to be forced closed for the app to stop running

How to reproduce

  1. Go to the folder with nwjs
  2. Set the package.json main key to index.html
  3. Create index.html with:
<button onclick="browser.showDevTools(true, devtools)">Open</button>
<webview id="browser" src="about:blank"></webview>
<webview id="devtools" src="about:blank"></webview>
  1. Click on the “Open” button
  2. Close the program
  3. Try deleting nw.exe

Note

This only occurs when the second parameter of browser.showDevTools is set.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rogerwangcommented, Dec 15, 2020

This is fixed in git and will be available in the next nightly build.

2reactions
rogerwangcommented, Dec 14, 2020

Will see it soon. Thanks.

On Mon, Dec 14, 2020 at 6:02 AM Cosmo Myzrail Gorynych aka CoMiGo < notifications@github.com> wrote:

@rogerwang https://github.com/rogerwang, pardon pinging you directly, but this issue could slip out of your attention. And I suppose that the issue where an app cannot be re-launched by a user without proper technical skills, regardless of OS, is a critical one.

The issue is still present in v0.50.2.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/7588#issuecomment-744075590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIMGOFVSCS7ACJ64OAN5LSUU2WXANCNFSM4SMHAE2A .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Here's how to fix those mysterious Android WebView crashes
Tap the three-dot menu at the top right of this screen, then select "Uninstall updates." This won't uninstall Android System WebView completely— ...
Read more >
WebView not shown in chrome inspector - Stack Overflow
Open Chrome and type chrome://inspect/#devices and you should see your device in the Remote Target List.
Read more >
Build web apps in WebView - Android Developers
Note: For security reasons, the system's browser app doesn't share its application data with your app. To open links clicked by the user, ......
Read more >
WebView DevTools user guide
Crash UI. Crash UI shows recent WebView-caused crashes from apps on the device, similar to chrome://crashes . You can access it by tapping...
Read more >
558377 - WebView should make sure it's not used multiple ...
It doesn't look like there's currently anything stopping an app developer from creating two different processes in their application (using the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found