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.

Application prevents machine from shut down / restart

See original GitHub issue

Describe the Bug

When trying to shut down or restart on a macOS machine, the Camunda Modeler application prevents from doing it by hanging up.

Bildschirmfoto 2020-05-18 um 10 27 39

The current workaround is to manually close the application afterward.

Steps to Reproduce

  1. Open Camunda Modeler, no files have to be open
  2. Try to shut down or restart OS from the application menu
  3. See that Camunda Modeler is not terminating

Expected Behavior

The application should terminate and the shutdown/restart should be going on.

Environment

Additional Resources

I attached the logs from the Modeler application after the quit was initiated

2020-05-18T08:26:48.935Z  INFO app:main asking client to allow quit
2020-05-18T08:26:48.938Z  INFO app:main quit allowed
2020-05-18T08:26:48.938Z  INFO app:main initating close of main window
2020-05-18T08:26:48.938Z  INFO app:main main window closed
2020-05-18T08:26:48.939Z  INFO app:mac-os Keeping app in the dock

See how the app is not terminating mode afterward, cf. window-all-closed handler

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
nikkucommented, Oct 11, 2021

If that does not cause any side effects with the “app stays open on MacOS” behavior.

From what I understand apps remain running on MacOS until forcefully closed. We should not unbuild that feature.

1reaction
pinussilvestruscommented, Oct 11, 2021

We do a force close in dev mode (cf. dev.js)

// make sure the app quits and does not hang
app.on('before-quit', function() {
  app.exit(0);
});

Is there a reason why we don’t do this also in production? This way we could also close all the windows gracefully as other apps do it (https://github.com/camunda/camunda-modeler/issues/1803#issuecomment-827616545) - or simply force closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An application is preventing me from shutting down/restarting
I just got this computer and every time I go to shut down or restart, an application/process is preventing it from shutting down...
Read more >
How to Fix This App Is Preventing Shutdown or Restart Error ...
How to Fix This App Is Preventing Shutdown or Restart Error in Windows 10 .While Restart or shutdown Windows Laptop/ PC getting This...
Read more >
How to Disable “This App Is Preventing Shutdown or Restart ...
How to Disable “This App Is Preventing Shutdown or Restart ” Screen [Tutorial]String Name: AutoEndTasksString Value: 1Some Windows users are ...
Read more >
This App Is Preventing Shutdown Message Windows 10 FIX
Solved: This App Is Preventing Shutdown Message Windows 10 FIX.While Restart or shutdown Windows Laptop/ PC getting This app is preventing ...
Read more >
Disable This app is preventing shutdown message in ...
Here's how to disable Closing apps and shutting down/restarting, This app is preventing shutdown/restart shutdown message on Windows 11/10.
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