Skip to content

Globalmenu consumes 100% CPU and does not work #8455

@ChALkeR

Description

@ChALkeR
  • Electron version: 1.4.15
  • Operating system: Arch Linux, Linux yoga 4.7.6-1-ARCH #1 SMP PREEMPT Fri Sep 30 19:28:42 CEST 2016 x86_64 GNU/Linux.

I'm running Electron under KDE Plasma 5.9, but judging from atom/atom#6255 and atom/atom#5970, it could be also reproduced with other versions. This also affects Atom for obvious reasons ;-).

Expected behavior

  • Global menu should work (like in other programs).
  • Electron apps shouldn't consume 100% CPU for no reason.

Actual behavior

  • Global menu is visible, but pressing any action does nothing.
  • Electron apps consume 100% CPU.

Workaround

Use ELECTRON_FORCE_WINDOW_MENU_BAR=1 (disables globalmenu integration).

How to reproduce

  • Install Plasma 5.9 (for other options see linked issues above).
  • Run electron under Plasma 5.9 with an enabled global menu (I'm using the menu button in the window titlebar option).
  • Observe CPU usage, e.g. with htop.
  • Try to click any entries in the globalmenu, e.g. Quit — they do nothing.

Screenshots

Without ELECTRON_FORCE_WINDOW_MENU_BAR:
spectacle x22161

With ELECTRON_FORCE_WINDOW_MENU_BAR:
spectacle y22161

What the menu looks like:
spectacle b22161

None of the actions work, not even the File → Quit one.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions