Skip to content
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 quick-start app renders as black rectangle in Ubuntu 14.04, unless --disable-gpu is supplied #5755

Closed
halfer opened this issue May 29, 2016 · 3 comments

Comments

@halfer
Copy link

halfer commented May 29, 2016

I just tried the quickstart instructions and started up an Electron app in three commands, woop! However I noticed a rendering bug, even with this simple app.

I started the app thus:

node_modules/.bin/electron main.js

This renders the app as an entirely black window with a native-looking title bar. When I use Show Workspaces, it reveals my 3x3 desktops in a grid view. If the screen that was previously shown contains a running Electron app, a black square equal to the size of the app window "floats" over the top of the grid display.

However I have discovered a --disable-gpu switch. If I add that to my console command, the app renders correctly and there is no display glitch in Show Workspaces. I run my Ubuntu/Unity desktop in a VirtualBox VM.

I run a good number of apps in this environment (Firefox, NetBeans, LibreOffice, all the usual Ubuntu system apps) and I've not experienced this with anything else. Is there a way I can dump useful graphics info so as to aid your debugging?

  • Electron version: v1.2.0
  • Operating system: Ubuntu 14.04 LTS with Unity desktop running in VirtualBox 5.0.20 with 3D acceleration enabled
@halfer halfer changed the title Electron quick-start app floats over the top of 'show workspaces' in Ubuntu 14.04 Electron quick-start app floats over the top of 'Show Workspaces' in Ubuntu 14.04 May 29, 2016
@halfer halfer changed the title Electron quick-start app floats over the top of 'Show Workspaces' in Ubuntu 14.04 Electron quick-start app renders as black rectangle in Ubuntu 14.04, unless --disable-gpu is supplied May 29, 2016
@zcbenz
Copy link
Contributor

zcbenz commented May 30, 2016

VirtualBox is known to not work well with Chromium browser, I'm afraid there is nothing we can do to fix this on Electron's side. I suggest reporting this to Chromium's issues list instead.

Closing as won't fix.

@halfer
Copy link
Author

halfer commented May 30, 2016

Urgh, need an Google account for that. No thanks! 😼

@halfer
Copy link
Author

halfer commented May 30, 2016

Ah, it may be reported already...

For anyone experiencing this issues with Electron/VirtualBox, this bug might be the issue. A recent VB update produced a pointer position regression in Ubuntu, and I wouldn't be surprised if the Guest Additions fix in that link resolved this too.

@zcbenz - do you have a reason to suspect Chromium rather than VirtualBox? My money would be on the latter, just because I've experienced some long-standing (but tolerable) display problems here, such as not being able to screenshot from inside a VM - results are all black).

Edit: I bet this is the same as well, and this one explicitly suspects VB bugs.

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

No branches or pull requests

2 participants