Skip to content

Can't close frozen window #17

Closed
Closed

Description

@kevinsawicki

If you have an infinite loop in a spec and run it, it looks like you can't close the window using the x icon or the keyboard shortcut.

I would expect the keybaord shortcut to perhaps not work, but it seems like the x on the window should ideally.

Do you think this is something that can be supported?

Activity

  1. zcbenz commented on Jun 5, 2013

    @zcbenz
    Contributor

    Atom-shell guarantees that closing window would trigger beforeunload and unload event in javascript, so an infinite loop would block the close event. Simply make the x on window work would break this guarantee.

    I'll add a way to make browser aware of the infinite loop in renderer, so users can choose to (1) force closing the window; (2) continue waiting; (3) interrupt the loop and report the stack trace.

  2. kevinsawicki commented on Jun 5, 2013

    @kevinsawicki
    ContributorAuthor

    Yeah, a force close prompt would be great.

  3. nathansobo commented on Mar 21, 2014

    @nathansobo

    This appears to have regressed.

  4. nathansobo commented on Sep 4, 2014

    @nathansobo

    This appears to have regressed again.

  5. zcbenz commented on Sep 6, 2014

    @zcbenz
    Contributor

    @nathansobo I can not reproduce with following steps:

    1. open devtools and run while(true);
    2. click window's close button
    3. wait for 5s and the Editor is not responding dialog shows
  6. nathansobo commented on Sep 6, 2014

    @nathansobo

    @zcbenz Strange. It's happening for me in certain specs, I think in situations where the spec pretty printer is trying to print way more than it can handle. If you put an endless loop in specs and run them, is it possible to reproduce?

  7. zcbenz commented on Sep 8, 2014

    @zcbenz
    Contributor
  8. nathansobo commented on Sep 8, 2014

    @nathansobo

    Wow, sorry about that.

  9. added 4 commits that reference this issue on May 9, 2017
  10. added a commit that references this issue on May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions