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.

Crash on Ubuntu when dragging a Firefox window over Atom #3593

Closed

Description

@arashpayan

Atom Version: 0.129.0
Video of me triggering the bug: http://ara.sh/private/atom-crash.ogv
Reproducible every time.

Environment:
Ubuntu 14.04 (all updates installed as of filing this issue)
Unity desktop environment

Repro steps:

  1. Launch atom from the Terminal
  2. Open a Firefox window (or use an existing one)
  3. Drag the Firefox tab anywhere over the Atom window

Actual behavior:
It crashes

Expected behavior:
Not crash :-)

Additional Information:
The terminal prints out the following after the crash:

[7950:0920/180947:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[7950:0920/180947:ERROR:browser_main_loop.cc(189)] GTK theme error: Unable to locate theme engine in module_path: "pixmap",
ATTENTION: default value of option force_s3tc_enable overridden by environment.
App load time: 88ms
[7984:0920/180947:INFO:renderer_main.cc(227)] Renderer process started
[7950:0920/180948:INFO:CONSOLE(18)] "Window load time: 778ms", source: /opt/atom/resources/app/src/window-bootstrap.js (18)
The program 'atom' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
  (Details: serial 1360 error_code 5 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Activity

  1. lee-dohm commented on Sep 21, 2014

    @lee-dohm
    Contributor

    Just for information, on Atom v0.130.0-5cc62b2 and OS X v10.9.5, this does not reproduce.

  2. batjko commented on Sep 21, 2014

    @batjko
    Contributor

    Can't reproduce this on v130 on Elementary OS either, I'm afraid.

  3. arashpayan commented on Sep 21, 2014

    @arashpayan
    Author

    I suspect it's related to running Ubuntu's Unity desktop environment.

  4. added
    linux
    on Sep 22, 2014
  5. arashpayan commented on Sep 24, 2014

    @arashpayan
    Author

    Just tested against v0.130 on Ubuntu and it still occurs.

  6. necavit commented on Oct 4, 2014

    @necavit

    Same behaviour here. Also reproducible every time.

    Environment:

    • Ubuntu 12.04
    • Unity desktop environment

    Reproducing steps (same as @arashpayan reported):

    1. Launch atom from the Terminal
    2. Open a Firefox window (or use an existing one)
    3. Drag the Firefox tab anywhere over the Atom window

    Terminal output:

    [3440:1004/111601:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
    ATTENTION: default value of option force_s3tc_enable overridden by environment.
    App load time: 92ms
    [3472:1004/111602:INFO:renderer_main.cc(227)] Renderer process started
    [3440:1004/111603:INFO:CONSOLE(11)] "activate linter-clang", source: /home/username/.atom/packages/linter-clang/lib/init.coffee (11)
    [3440:1004/111603:INFO:CONSOLE(7)] "activate linter-javac", source: /home/username/.atom/packages/linter-javac/lib/init.coffee (7)
    [3440:1004/111603:INFO:CONSOLE(4)] "Linter-Pylint: package loaded, ready to get initialized by AtomLinter.", source: /home/username/.atom/packages/linter-pylint/lib/init.coffee (4)
    [3440:1004/111603:INFO:CONSOLE(7)] "activate linter-shellcheck", source: /home/username/.atom/packages/linter-shellcheck/lib/init.coffee (7)
    [3440:1004/111603:INFO:CONSOLE(7)] "activate linter-xmllint", source: /home/username/.atom/packages/linter-xmllint/lib/init.coffee (7)
    [3440:1004/111605:INFO:CONSOLE(18)] "Window load time: 3359ms", source: /opt/atom/resources/app/src/window-bootstrap.js (18)
    The program 'atom' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadAtom (invalid Atom parameter)'.
      (Details: serial 3707 error_code 5 request_code 20 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    
  7. zcbenz commented on Oct 5, 2014

    @zcbenz
    Contributor

    Full stack trace:

    #0  0x00007fffeff650e0 in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
    #1  0x00007fffeff621d1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
    #2  0x00007fffeff63157 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
    #3  0x00007fffeff48da6 in XGetWindowProperty ()
       from /usr/lib/x86_64-linux-gnu/libX11.so.6
    #4  0x00007ffff4b09a3b in ui::GetRawBytesOfProperty(unsigned long, unsigned long, scoped_refptr<base::RefCountedMemory>*, unsigned long*, unsigned long*, unsigned long*) () from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #5  0x0000000000b9b3ab in views::DesktopDragDropClientAuraX11::X11DragContext::OnSelectionNotify (this=0x1ef103c33000, event=...)
        at ../../ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:271
    #6  0x0000000000b9b455 in views::DesktopDragDropClientAuraX11::OnSelectionNotify (this=0x1ef103b0c340, xselection=...)
        at ../../ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:566
    #7  0x0000000000b4fd3f in views::DesktopWindowTreeHostX11::DispatchEvent (
        this=0x1ef103b0c080, event=@0x7fffffffd828: 0x7fffffffd900)
        at ../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1802
    #8  0x00007ffff4b1a287 in ui::PlatformEventSource::DispatchEvent(_XEvent*) ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #9  0x00007ffff4b33b0c in ui::X11EventSource::DispatchEvent(_XEvent*) ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    ---Type <return> to continue, or q <return> to quit---
    #10 0x00007ffff4b33a5e in ui::X11EventSource::DispatchXEvents() ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #11 0x00007ffff4b33bbc in ?? ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #12 0x00007ffff14acd13 in g_main_context_dispatch ()
       from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #13 0x00007ffff14ad060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #14 0x00007ffff14ad124 in g_main_context_iteration ()
       from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #15 0x00007ffff3ddf5df in base::MessagePumpGlib::Run(base::MessagePump::Delegate*) () from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #16 0x00007ffff3e46438 in base::RunLoop::Run() ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #17 0x00007ffff3ea419c in content::BrowserMainLoop::MainMessageLoopRun() ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #18 0x00007ffff3ea4210 in content::BrowserMainLoop::RunMainMessageLoopParts()
        () from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #19 0x00007ffff3ea696d in ?? ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #20 0x00007ffff3ea0349 in content::BrowserMain(content::MainFunctionParams const&) () from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #21 0x00007ffff3dd39ac in ?? ()
       from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    ---Type <return> to continue, or q <return> to quit---
    #22 0x00007ffff3dd1f01 in content::ContentMain(content::ContentMainParams const&) () from /home/zcbenz/codes/atom-shell/out/Debug/libchromiumcontent.so
    #23 0x000000000066de90 in main (argc=2, argv=0x7fffffffde18)
        at ../../atom/app/atom_main.cc:123
    

    Somehow dragging the tab of firebox triggered a SelectionNotify event, which should only happen on clipboard copy/paste, and I'm not sure why Chromium is not affected.

  8. self-assigned this
    on Oct 5, 2014
  9. ingalls commented on Dec 18, 2014

    @ingalls

    I'm currently running GNOME Shell 3.10.4 on Ubuntu without unity installed and can confirm that this error is deeper than just unity.

  10. oalexandersson commented on Jan 8, 2015

    @oalexandersson

    Atom version 0.158.0
    OS: Ubuntu 14.10
    Desktop: XFCE 4.10

    100% reproducible. Definitely not Unity related. It's really annoying; when you move a tab out to create a new browser window with that tab, you have to be super careful to not move it over the atom window.

  11. cmtonkinson commented on Feb 8, 2015

    @cmtonkinson

    Atom: 0.1770
    OS: Arch Linux
    Desktop: GNOME Shell 3.14.3

    Same thing, every time. Note that reproduction has nothing to do with how Atom is started (e.g. by the terminal) it just affects whether you see this error.

    The program 'atom' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadAtom (invalid Atom parameter)'.
      (Details: serial 764 error_code 5 request_code 20 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    
  12. bglass commented on Feb 25, 2015

    @bglass

    Atom version 0.181.0
    OS: Ubuntu 14.10
    Desktop: KDE 4.14.1

    Same behaviour with KDE.
    (crash when dragging Firefox Tab over Atom)

  13. notslang commented on Mar 23, 2015

    @notslang

    Just found this on Ubuntu-GNOME 14.10 with Atom v0.187

  14. 22 remaining items

  15. winstliu commented on Oct 4, 2015

    @winstliu
    Contributor

    Fixed in electron-archive/brightray#149 so

    Once @zcbenz releases a new version of Electron I'll remove the blocked tag. Hopefully we can get it in #8779 as well 😄.

  16. crsaracco commented on Oct 5, 2015

    @crsaracco

    Same problem on Arch + Cinnamon.

  17. winstliu commented on Oct 5, 2015

    @winstliu
    Contributor

    This will be fixed when #8779 is merged.

  18. shantee commented on Oct 13, 2015

    @shantee

    Same bug on Linux Mint 17.2 + Cinnamon

  19. cmtonkinson commented on Oct 30, 2015

    @cmtonkinson

    Just updated this morning and I still experience this error. Firefox 41.0.2, Atom 1.1.0, Node 4.2.1, Linux 4.2.5, NPM 3.3.9.

    En/Disabling hardware acceleration does not make a difference.

    [6042:1030/081415:ERROR:browser_main_loop.cc(173)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
    App load time: 191ms
    [6100:1030/081416:ERROR:sandbox_linux.cc(340)] InitializeSandbox() called with multiple threads in process gpu-process
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6119:1030/081416:INFO:renderer_main.cc(200)] Renderer process started
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081416:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6130:1030/081416:INFO:renderer_main.cc(200)] Renderer process started
    [6042:1030/081417:INFO:CONSOLE(46)] "Window load time: 1022ms", source: file:///usr/share/atom/resources/app.asar/static/index.js (46)
    [6042:1030/081417:INFO:CONSOLE(46)] "Window load time: 942ms", source: file:///usr/share/atom/resources/app.asar/static/index.js (46)
    [6042:1030/081417:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081417:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081417:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081417:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6100:1030/081418:ERROR:gles2_cmd_decoder.cc(11539)] [GroupMarkerNotSet(crbug.com/242999)!:D03810D4C5280000]GL ERROR :GL_INVALID_OPERATION : glTexStorage2DEXT: <- error from previous GL command
    [6100:1030/081418:ERROR:gles2_cmd_decoder.cc(11539)] [GroupMarkerNotSet(crbug.com/242999)!:D0047CD4C5280000]GL ERROR :GL_INVALID_OPERATION : glTexStorage2DEXT: <- error from previous GL command
    [6042:1030/081418:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081418:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081418:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [6042:1030/081418:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    The program 'atom' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadAtom (invalid Atom parameter)'.
      (Details: serial 928 error_code 5 request_code 20 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    
  20. mnquintana commented on Oct 30, 2015

    @mnquintana
    Contributor

    @cmtonkinson I think this was fixed for Atom 1.2.0, not 1.1.0 - feel free to try out the 1.2.0 beta if you want to test this fix out for yourself!

  21. cmtonkinson commented on Oct 30, 2015

    @cmtonkinson

    Not to be dense, but was the release post incorrect then?

    Under the heading Upgrade to Electron 0.34.x near the bottom, it reads:

    This brings Atom up to the latest version of Electron and fixes a couple of pretty bad, long-standing bugs.

    Note that "pretty" links to this issue (#3593).

  22. xgdgsc commented on Oct 30, 2015

    @xgdgsc

    @cmtonkinson That' s in the "Available now in Atom 1.2.0-beta" section

  23. cmtonkinson commented on Oct 30, 2015

    @cmtonkinson

    D'OH!

    Obviously that's my bad. Apologies for the noise.

  24. carbsrule commented on Dec 18, 2015

    @carbsrule

    Was experiencing this all the time dragging Iceweasel tabs (on Debian 8.1 with Cinnamon).
    Upgraded from v1.1.0 to 1.3.2 and the problem seems to have gone away. Huzzah!

  25. lock commented on Jan 18, 2019

    @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!

  26. locked as resolved and limited conversation to collaborators on Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcrashelectronlinux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions