min icon indicating copy to clipboard operation
min copied to clipboard

Crash when notification appears

Open fulopm opened this issue 10 years ago • 12 comments

The browser crashes when the WhatsApp webapp (don't know if other sites is affected) pushes a desktop notification. The notification appears, and the browser immediately crashes.

I have ubuntu x64 16.04, and Min 1.4.0-1.

fulopm avatar Aug 15 '16 15:08 fulopm

This happens whenever the Notification API is used.

However, I can only reproduce it in Min - the Electron demo app doesn't crash.

PalmerAL avatar Aug 15 '16 16:08 PalmerAL

I have also encountered this bug with the Gmail desktop push notifications.

I have OSX Yosemite 10.10.5, and Min 1.4.1

MarkWahlsten avatar Sep 09 '16 06:09 MarkWahlsten

This appears to only crash sometimes now, which makes it more difficult to reproduce.

Can you try running Min with the latest version of Electron (https://github.com/electron/electron/releases/tag/v1.3.5), and see if it still crashes?

PalmerAL avatar Sep 11 '16 22:09 PalmerAL

@PalmerAL, how can I run Min with a specific version of Electron?

fulopm avatar Nov 01 '16 13:11 fulopm

@fulopm You can download Electron from https://github.com/electron/electron/releases, and then run /path/to/electron /path/to/min (where /path/to/electron is the electron binary, and /path/to/min is a copy of the min repository).

Interestingly, Electron 1.4.5, which was just released yesterday, includes "Fixed a crash when creating notifications on a session that is using a permission request handler", which sounds like it could be what's causing this.

PalmerAL avatar Nov 02 '16 04:11 PalmerAL

Hi, got the same bug with a "segmentation fault" that causes min to close.

Elm7 avatar Nov 22 '16 08:11 Elm7

@Elm7 Does this happen when notifications are supposed to appear? It's possible that the crashes you are having could be a different issue.

PalmerAL avatar Nov 23 '16 00:11 PalmerAL

@PalmerAL Hi, this indeed happens when notifications are supposed to appear. I am using debian jessie and latest Min. With Firefox notifications work properly. I do not know how to disable them in Min.

Elm7 avatar Nov 23 '16 10:11 Elm7

@Elm7 OK, thanks for clarifying. This is fixed in the newest version of Electron, which will be included in the next Min release (probably 2-3 weeks). If you don't want to wait until then, you can build Min yourself after changing the version of electron used to 1.4.10 on this line.

PalmerAL avatar Nov 28 '16 23:11 PalmerAL

I think this is fixed in Min 1.5.1; can you try it and make sure?

PalmerAL avatar Dec 19 '16 02:12 PalmerAL

Hello, thanks. Min seems stable now, but I can not make sure because for a reason I dunno notifications are not showing up now even with firefox so I can not test min new vesion stability. I'll come by if I can test it later.

Elm7 avatar Dec 26 '16 16:12 Elm7

Going to close this since it appears to have been fixed in Electron; feel free to reopen if you are still having this issue.

PalmerAL avatar Nov 10 '17 06:11 PalmerAL