Skip to content

Window loading fails on Ubuntu 14.04 #13624

Closed

Description

@marcoancona
  • Electron Version: 2.0.4
  • Operating System (Platform and Version): Ubuntu 14.04 64bits (on WMware)
  • Last known working Electron version: 1.8.7

Expected Behavior
The sample Electron app should run and display a window
1 8 7

Actual behavior
With Electron 2.x and 3.x the window loading hangs. Enabling debugging, the following error is showed when the process is terminated:

ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

2 0 4

To Reproduce

npm install --save-dev [email protected]
./node_modules/.bin/electron

Additional Information
Interestingly, the problem appears running ./node_modules/.bin/electron but not running ./node_modules/.bin/electron > /dev/null

Activity

  1. welcome commented on Jul 11, 2018

    @welcome

    👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

    To help make it easier for us to investigate your issue, please follow the contributing guidelines.

  2. marcoancona commented on Jul 11, 2018

    @marcoancona
    Author

    Update: possible duplicate of #12850 ?

    Interestingly, the problem appears running ./node_modules/.bin/electron but not running ./node_modules/.bin/electron > /dev/null

  3. bpasero commented on Jul 12, 2018

    @bpasero
    Contributor

    @marcoancona does it work if you append --disable-gpu as argument?

  4. marcoancona commented on Jul 12, 2018

    @marcoancona
    Author

    Yes, it works! To summarize (v2.0.4):

    ./node_modules/.bin/electron   [hangs]
    ./node_modules/.bin/electron --disable-gpu   [ok]
    ./node_modules/.bin/electron > /dev/null   [ok]
    
  5. haroldiedema commented on Jul 17, 2018

    @haroldiedema

    I can confirm that this is indeed broken on Ubuntu 14.04;

    The following occurs on an "empty" project (simply spawn a browser window with a random page after the 'ready' event). The errors appear to be somewhat random though.

    First executions; Everything works. The window spawns.

    Second execution:

    libGL error: failed to open drm device: No such file or directory
    libGL error: failed to load driver: 
                                        �
    [xcb] Extra reply data still left in queue
    [xcb] This is most likely caused by a broken X extension library
    [xcb] Aborting, sorry about that.
    electron: ../../src/xcb_io.c:576: _XReply: Assertion `!xcb_xlib_extra_reply_data_left' failed.
    

    Third execution:

    electron: ../../src/xcb_in.c:671: xcb_request_check: Assertion `!reply' failed.
    

    It seems that something related to 'threading' (I think?) is broken.
    After retrying a couple of times, it works again. The issue posted by @marcoancona is also one of the 'random' things that might happen.

    I haven't found any issues with electron 3 beta yet though, so perhaps something changed there?

  6. Kagami commented on Jul 22, 2018

    @Kagami

    Can confirm this too on latest Gentoo. Also only electron 2.x is affected, 1.x and 3.x are fine.

    Seems to be somehow related to logging of GPU process(?)

  7. Kagami commented on Jul 22, 2018

    @Kagami

    Was reported before: #12380

    Minimal reproducable example:

    git clone https://github.com/electron/electron-quick-start
    cd electron-quick-start
    npm i
    ELECTRON_ENABLE_LOGGING=1 npm start -- --v=1

    Should hang right away.

  8. u4aew commented on Sep 24, 2018

    @u4aew

    A similar problem in 3 versions of the electron #14430

  9. ftoledo commented on Oct 24, 2018

    @ftoledo

    Yes, it works! To summarize (v2.0.4):

    ./node_modules/.bin/electron   [hangs]
    ./node_modules/.bin/electron --disable-gpu   [ok]
    ./node_modules/.bin/electron > /dev/null   [ok]
    

    I have similar issue with electron 3.0.5.on debian stretch. Redirect output to /dev/null or /tmp/file.xxx works. Also disable-gpu param works too.

  10. sofianguy commented on Aug 9, 2019

    @sofianguy
    Contributor

    Thank you for taking the time to report this issue and helping to make Electron better.

    The version of Electron you reported this on has been superseded by newer releases.

    If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.

    I'm setting the blocked/need-info label for the above reasons. This issue will be closed 7 days from now if there is no response.

    Thanks in advance! Your help is appreciated.

  11. added
    blocked/need-info ❌
    on Aug 9, 2019
  12. sofianguy commented on Aug 19, 2019

    @sofianguy
    Contributor

    Thank you for your issue!

    We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.

  13. Ladvace commented on Jul 31, 2021

    @Ladvace

    I have the same problem on Ubuntu 20.04.2 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2-0-xblocked/need-info ❌bug 🪲platform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions