-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron not working when running in terminal on Ubuntu Linux #12850
Comments
I'm not seeing this when running either Could you try the same experiment on a clean system to see if it's reproducible for you there too? |
BTW, here is the logging output I get:
Spinning up a fresh VM to test further. |
I'm also getting this issue on This is the log it produces with
|
@alice-em, saying "app X crashes" is essentially inviting the Electron team to triage arbitrary codebases that they are unfamliar with, so I encourage reporters to follow @RyanZim's example of having a small standalone 'hello world' style app that can be tested with. In any case, the |
Electron worked on a second attempt with an entirely new project. It must've been something in the api that changed just before |
@ckerr I spun up a fresh VM of Lubuntu 17.10 and got the same result as #12850 (comment) with electron v2.0.0 |
I'm also having this problem after upgrading from Ubuntu 16.04 to 18.04. Running Using Electron 2.0.0. Ps. My app is based on the electron-next skeleton (probably doesn't have anything to do with this) |
I can also reproduce the issue with Electron 2.0.2 on Fedora 27 and Ubuntu 18.04. My application (https://github.com/peterdanis/wrapbox) works when I build it (as AppImage) and run it from file manager, but hangs after a very short time (1-2s) when started from command line. Can be also reproduced by running the default Electron "app" (see picture below), by running By default Electron app I mean: I do not have |
I found this (temporary) solution: #13624 (comment) (use |
I'm still having the same issue. I want to use electron, but even the sample app opens up with a blank screen: I'm on Ubuntu 14.04 which is quite old at this point. I'll try again at 18.04. Getting a new machine in November. The interesting bit is that slack works just fine on my setup, and I'm almost certain they're running on electron. |
Same issue running Ubuntu 18.04/18.10 through VMWare 14.1.3, Intel(R) UHD Graphics 630. Running "npm start" from the terminal locks up after a few seconds, sometimes rendering the entire VM unresponsive to mouse input (but can alt-tab to the terminal and control-c to restore it.) Running as suggested "npm start > /dev/null" solves the problem, but running with "--disable-gpu" does not. |
Debian Jessie, Dell XPS 15 9560 with a GTX 1050 using bumblebee seems to having the same problem. Interestingly, I tried both 3.0.8 where the window opens but nothing of the HTML is displayed, and 2.0.2 where everything worked fine. The fix npm start > /dev/null seems to work, but this does not feel like a permanent fix. |
Debian 9.6 Stretch with Node 10.13.0 and Electron 3.0.6 same issue. |
Same here. Debian 9.6 Node v11.1.0 Electron 3.0.9 Works fine using |
I can also confirm this on Ubuntu 18.04 as VMWare Workspace virtual instance. As a workaround
both works for me. |
I had the same issue when I set display mode as 'Join Displays'. |
Same here. --disable-gpu workaround. Ubuntu 14.04, Gnome. Electron version 3.0.0 |
i still see the same bug, electron 2.0.0 or 2.0.16 on Ubuntu 18.04, npm start 2>/dev/null bypass works |
Works now in electron v3.1.1. thanks! |
does not work with --disable-gpu for me (2.0.0 or 2.0.16) |
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 Thanks in advance! Your help is appreciated. |
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. |
Expected Behavior
Electron should open and be functional when run from the terminal
Actual behavior
Electron either doesn't open, opens to a black screen, or freezes shortly after opening. The command doesn't exit, it just hangs there.
To Reproduce
Additional Information
If you run
npm start > /dev/null
,npm start 2> /dev/null
, ornpm start &> /dev/null
, the issue cannot be reproduced. This makes me suspect that there's some bug with streaming to a terminal emulator (perhaps the terminal emulator gives backpressure that electron can't handle?)The text was updated successfully, but these errors were encountered: