Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Atom freezes when clicking web links in settings tab without the web browser already open #6320

Closed
electron/electron
#5072

Description

Atom 0.190.0
Linux.

This happens both in normal, safe and --one mode; it seems to happen only when the browser (I use firefox) is not open yet.

Steps to reproduce: packages > [a package] > settings > view on atom; or release notes > view on atom. If the browser was already open, everything works fine; otherwise, the browser opens but Atom freezes and must be killed from task manager.

Activity

  1. ghost changed the title [-]Atom freezes when clicking "view on atom.io"[/-] [+]Atom freezes when clicking web links in settings tab without the web browser already open[/+] on Apr 9, 2015
  2. added
    linux
    on Apr 9, 2015
  3. flosch commented on Apr 18, 2015

    @flosch

    I can reproduce this as well.

  4. Stanzilla commented on Jun 7, 2015

    @Stanzilla

    This might be a Electron issue as it has been happening to me in Slack as well. On Windows. It probably bugs out when the URL handler target does not respond, this at least was the case for me when I broke that on my system.

  5. 03juan commented on Aug 28, 2015

    @03juan

    Atom 1.0.7-1 on ArchLinux from atom-editor-bin AUR package.

    I have a similar issue and partial solution.

    My problem occurs when I have the x-scheme-handler/https mime type set to chromium.desktop in ~/.local/share/applications/mimeapps.list. The editor freezes without opening the page, even if Chromium is already open. If I change it to firefox.desktop the page opens in Firefox even if the browser is not open.

    If I remove the mime-type altogether it opens fine in Midori, probably because it's the last browser I installed but I'm not too sure about that.

    The real issue is that the editor freezes while I have the page open, eventually showing the dialog:
    "Editor is not responding.
    The editor is not responding. Would you like to force close it or just keep waiting?"

    If I click "Keep waiting" with the browser open it stays frozen and then shows the same dialog.
    If I close the browser and then click "Keep waiting" the editor returns to normal.

  6. Holi0317 commented on Nov 14, 2015

    @Holi0317

    Reproduced with [email protected] from AUR, arch linux, using Firefox

    Seems that Firefox does not return (or block) whenever a link is opened.

    Try to use Firefox to open a link in terminal. Firefox does not give the shell back for us to use.

    However, using chromium/chrome, we can use the shell after a page is opened.

    This might be (in fact, I am quite sure) the cause of this issue. We need to async Firefox to fix this.

  7. thedanielhanke commented on Jan 22, 2016

    @thedanielhanke

    i have the same problem, but using chrome.
    its my default browser, using launchy or xdg-open confirms.

    Distribution: Archlinux
    WindowManager: I3
    $ google-chrome-stable --version
    => Google Chrome 44.0.2403.157 
    $ uname -r
    => 4.3.3-2-ARCH
    

    happens also when my browser is opened.

  8. sneakypete81 commented on Apr 5, 2016

    @sneakypete81

    Same problem: Ubuntu, Firefox, Atom 1.6.1.

    @Holi0317's analysis looks sound:
    If Firefox is launched with an existing browser window open, it returns immediately.
    If Firefox is launched with no existing browser window open, it waits for Firefox to exit before returning.

    This happens whenever the browser is launched from Atom. Help->Documentation causes the same issue.

    For example, in atom/src/browser/atom-application.coffee:

     @on 'application:open-documentation', -> shell.openExternal('https://atom.io/docs/latest/?app')
    

    I guess this is assuming that openExternal will return immediately, which doesn't happen if a Firefox window is not already open.

    @benogle: are you awaiting any further reproductions?

  9. Holi0317 commented on Apr 6, 2016

    @Holi0317

    Thanks for @sneakypete81 for pointing out the location. I have just dug into the electron code and find out the issue.

    https://github.com/electron/electron/blob/v0.37.4/atom/common/platform_util_linux.cc#L34

    I think that is the cause of this issue. As electron.shell.openExternal tries to get the exit code and return. This blocks the call until process is finished and freeze atom.

  10. sneakypete81 commented on Apr 7, 2016

    @sneakypete81

    I've had a try at a fix, but I can't work out how to use a custom build of Electron when building Atom. Any help with this would be appreciated.

  11. winstliu commented on Apr 11, 2016

    @winstliu
    Contributor

    Re-opening until Atom updates to a version of Electron that contains the linked fix.

  12. lock commented on Apr 7, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  13. locked and limited conversation to collaborators on Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugelectronlinux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions