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

Menus open behind application window #11574

Closed
ghost opened this issue Apr 22, 2016 · 16 comments
Closed

Menus open behind application window #11574

ghost opened this issue Apr 22, 2016 · 16 comments
Labels
bug electron linux Issues that occur on Linux but not on other platforms.

Comments

@ghost
Copy link

ghost commented Apr 22, 2016

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

Atom menus (File, Edit etc) open behind the application window.

Steps to Reproduce

  1. Fullscreen the window
  2. Open a menu

Expected behavior: See the displayed menu

Actual behavior: Menu gets obscured by the application window

Versions

You can get this information from executing atom --version and apm --version at the command line. Also, please include the OS and what version of the OS you're running.

Atom : 1.7.2
Electron: 0.36.8
Chrome : 47.0.2526.110
Node : 5.1.1
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

Both Ubuntu and Atom are fresh installs using the latest builds.
virtualbox_ashlyns dev box_22_04_2016_21_50_45

@damieng damieng added the linux Issues that occur on Linux but not on other platforms. label Apr 22, 2016
@Flos
Copy link

Flos commented Apr 26, 2016

I can confirm the bug on a fresh installed Ubuntu 14.04 LTS, makes it unusable for me!
The title bar is acting normal, the Atom content window stays always on top.
virtualbox_default_1461574038447_9069_26_04_2016_16_20_42
virtualbox_default_1461574038447_9069_26_04_2016_16_19_57

Atom : 1.7.2
Electron: 0.36.8
Chrome : 47.0.2526.110
Node : 5.1.1

apm 1.9.2
npm 2.13.3
node 0.10.40
python 2.7.6
git 1.9.1

@50Wliu
Copy link
Contributor

50Wliu commented Apr 26, 2016

Can not reproduce on Ubuntu 16.04, Atom 1.9.0-dev-9175194.

@lee-dohm
Copy link
Contributor

@ashlynblack or @Flos Can you reproduce this behavior using Chromium?

@Flos
Copy link

Flos commented Apr 28, 2016

@lee-dohm
google-chrome is not installed, only the chromium-browser. If its integrated in the Atom package, I have no clue how to change the browser. I see no cli option for that.

But I just looked a bit deeper in it. I started the chromium-browser using the terminal and got a error and a messed up webview, looked a bit like many broken textures. The error pointed me to a recent, Virtualbox 3D acceleration issue: http://permalink.gmane.org/gmane.comp.emulators.virtualbox.user/6225

Now I disabled 3D acceleration in my VM and the chromium-browser is working fine, and also Atom.

I think it's an Virtualbox 3D driver bug not a Atom bug at all.
Thanks for the support!

@lee-dohm
Copy link
Contributor

Glad to hear it is working for you @Flos. Any updates from you @ashlynblack?

@isapa1984
Copy link

isapa1984 commented May 1, 2016

I was having this same issue on Debian Jessie using Virtual Box 5.0.20 with 3d Acceleration on. Disabling 3D did the trick. This problem wasn't happening until version 5.0.16.

UPDATE: After research, I discovered that this problem is caused by the versions of guest additions that came after 5.0.16. If you use Virtual Box 5.0.20 but using Guest Additions 5.0.16 instead, this issue doesn't occur. Tested and confirmed.

@Nikki1993
Copy link

Confirming same behaviour in VBox as others. Getting rid of 3D acceleration or downgrading guest additions resolves issue with Atom editor.

@hoto
Copy link

hoto commented Jun 9, 2016

For a Vagrant/VirtualBox powered GUI machine workaround is to write this to Vagrantfile

vb.customize ["modifyvm", :id, "--accelerate3d", "off"]

@lee-dohm
Copy link
Contributor

Since there is no response from @ashlynblack and it seems everyone else is having luck with either using a different version of guest additions or turning off 3D acceleration, I'm going to close this as resolved. Thanks everyone!

@draeath
Copy link

draeath commented Jun 28, 2016

That's... that's not really a fix, just a (bad) workaround.

Assuming the atom (chromium?) code is fine (pretty sure it is). Has anyone opened a bug with Oracle?

EDIT: Well, that's a good sign. This bug was opened 2 years ago and is still in state "new defect."

Though, apparently setting an environment variable within the guest works:

Setting LIBGL_ALWAYS_SOFTWARE=1 solved this problem for me

I'm not familiar with the ramifications of setting this variable. Is this effectively disabling hardware accelerated OpenGL, albeit in a much more granular fashion?

@dazza-codes
Copy link

dazza-codes commented Aug 9, 2016

Reproduced this issue, see related comment in

Confirmed that atom is OK with 3D acceleration on Virtual Box 5.0.20, using Guest Additions 5.0.16. Installed the guest additions from a manual download and install from http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso

@jrial
Copy link

jrial commented Nov 16, 2016

In case anyone's interested, the VirtualBox guys have a wiki page describing the current situation: https://www.virtualbox.org/wiki/X11Guest3D

Unfortunately, it appears they lack the manpower to tackle this, and are counting on the community to provide patches. Needless to say, that hasn't happened yet.

I can confirm I still get the black screen permanently on top with VirtualBox 5.1.8, regardless of whether I install the matching guest additions or the 5.0.16 ones.

@KUGA2
Copy link

KUGA2 commented Jan 24, 2017

The same issue occurs with qtcreator welcome screen. 5.0.16 fixes it, but also disables 3D hardware accelleration. You can see this, because the "Unity Start Menu" is loading a lot slower.

@ichiriac
Copy link

You can also disable GPU only on atom application by creating a shortcut on the desktop and adding --disable-gpu argument to the application.

image

It's fixing the problem on atom and I still use 3d acceleration on ubuntu (works with any electron based application)

@draeath
Copy link

draeath commented Sep 13, 2017

That's much more convenient than defining LIBGL_ALWAYS_SOFTWARE=1 in the environment. Good find!

@lock
Copy link

lock bot commented Mar 29, 2018

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!

@lock lock bot locked and limited conversation to collaborators Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug electron linux Issues that occur on Linux but not on other platforms.
Projects
None yet
Development

No branches or pull requests