electron-api-demos
electron-api-demos copied to clipboard
Crash when removing the Tray icon
- What operating system are you using? macOS High Sierra
10.13.4 - What version of Node.js is on your system? Reproduced in
v8.9.3andv9.11.1 - What is the version of
electron-api-demos? Reproducible in master @ d9005b34890686577bb81ee22d994e360f969dc1
Steps to reproduce:
npm start- Go to "Put your app in the tray" sub section under "Native User Interface" section.
- Click on "View Demo" button.
- Click on the tray icon to open the context menu with one item: "Remove".
- Click on the tray icon to close the context menu. (without clicking "Temove")
- Click on "View Demo" button in the app to remove the system tray icon.
- Click on "View Demo" button again to add the system tray icon.
- Click on the tray icon and this time click on "Remove".
- Observe Unexpected Crash with System alert "Electron quit unexpecetdly".
Note: The crash is reproducible in other arbitrary ways (open/close the tray icon) but these steps seemed to have reproduced it consistently.
Detailed Crash Report
@raxityo seems to be failing a DCHECK here:
#
# Fatal error in ../../v8/src/api.h, line 357
# Debug check failed: allow_empty_handle || that != NULL.
#
Process 11745 stopped
* thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
frame #0: 0x0000000102438a22 libv8_libbase.dylib`v8::base::OS::Abort() + 18
libv8_libbase.dylib`v8::base::OS::Abort:
-> 0x102438a22 <+18>: ud2
0x102438a24 <+20>: nopw %cs:(%rax,%rax)
libv8_libbase.dylib`v8::base::OS::DebugBreak:
0x102438a30 <+0>: pushq %rbp
0x102438a31 <+1>: movq %rsp, %rbp
Target 0: (Electron) stopped.
i'll keep digging.