You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: 2 tray icons. App crashes when you destroy 1 tray icon #14036
Operating System (Platform and Version): mac high sierrra
Last known working Electron version: n/a
Expected Behavior
I have 2 independent tray icons. When I destroy one icon sometimes application crashes with this error: Electron[6667:281388] -[__NSCFString isMenuOpen]: unrecognized selector sent to instance 0x7fc7f35c28d0
Destroying the second tray crashes the application. 99% no logs. no warnings nothing. 1% of the time Electron[6667:281388] -[__NSCFString isMenuOpen]: unrecognized selector sent to instance 0x7fc7f35c28d0
By 'latest nonbeta' can you confirm you mean the literal latest nonbeta version 2.0.7, rather than the latest stable version in the 1.7 or 1.8 branches?
By 'latest nonbeta' can you confirm you mean the literal latest nonbeta version 2.0.7, rather than the latest stable version in the 1.7 or 1.8 branches?
Activity
pjebs commentedon Aug 12, 2018
It happens when you try and destroy one of them using
destroy()pjebs commentedon Aug 12, 2018
pjebs commentedon Aug 12, 2018
Destroying the second tray crashes the application. 99% no logs. no warnings nothing. 1% of the time
Electron[6667:281388] -[__NSCFString isMenuOpen]: unrecognized selector sent to instance 0x7fc7f35c28d0pjebs commentedon Aug 12, 2018
@fantasticsid have you experienced this issue?
[-]2 tray icons[/-][+]Bug: 2 tray icons. App crashes when you destroy 1 tray icon[/+]pjebs commentedon Aug 12, 2018
I feel this may be a regression because I can't remember this happening 3 months ago.
pjebs commentedon Aug 12, 2018
These look vaguely related:
#13556
#9982
#12862
https://github.com/antonio-ramadas/electron-tray-app-crash
#6956
Not 100% sure if they produce the same error message as mine.
ckerr commentedon Aug 12, 2018
By 'latest nonbeta' can you confirm you mean the literal latest nonbeta version 2.0.7, rather than the latest stable version in the 1.7 or 1.8 branches?
pjebs commentedon Aug 12, 2018
2.0.7
pjebs commentedon Aug 12, 2018
With: ELECTRON_ENABLE_STACK_DUMPING=true
(not sure what you can learn from it)
miniak commentedon Sep 2, 2018
Fixed by #14347
miniak commentedon Sep 2, 2018
Will be available in 2.0.9 when it’s released
v2.0.8...2-0-x
pjebs commentedon Jun 25, 2019
@miniak This issue is not fixed.
maxpavlov commentedon Jul 22, 2020
Still not fixed, if the main window is Maximized, Tray.destroy will simply throw an error.