sindresorhus / caprine

Elegant Facebook Messenger desktop app
MIT License
7.05k stars 558 forks source link

App goes blank after clicking emoji button #1185

Closed Dokixi closed 4 years ago

Dokixi commented 5 years ago

(I have the app set to dark mode) When I try to click on the emoji button in the chat window, your messenger app goes black. If I want to fix it I need to quit the app and relaunch it. But the same thing happens again when I click on the emoji button, so it is really easy to reproduce.


Caprine 2.41.1 Electron 7.1.1 darwin 18.7.0 Locale: nb

amulya-b commented 5 years ago

I'm also running into this issue starting today as well!

yauuik commented 5 years ago

same here, I have to close and relaunch the app each time...

megseoh commented 5 years ago

Same issue. Also have to quit Caprine to get back to messages.

ghost commented 4 years ago

I'm not in dark mode, but I also have this issue, and the app goes white.

Trychlik commented 4 years ago

same for me

yauuik commented 4 years ago

Come on, 1 month and still no fix? This bug is really annoying and brick the app. I've to relaunch Caprine at least 30 time a day. I'm considering switching from Caprine... It's a shame because it's such a beautiful piece of software.

Pauligrinder commented 4 years ago

Same here. The console (CMD+Alt+I -> Console) says as follows: ErrorUtils caught an error: "Tried to dispatch action UPDATE_TRAY_DATA while already dispatching TRAY_DATA...". Subsequent errors won't be logged; see https://fburl.com/debugjs.

pouletfou commented 4 years ago

Same here

chrismin13 commented 4 years ago

Same here, on Mac OS Mojave 10.14.6 on a hackintosh. Also happened on Catalina 10.15. Dark theme or light theme doesn't matter, nor changing the emojis used from Messenger's to System's or anything else.

Could it be that I don't have a Facebook account linked with my Messenger?

dapetcu21 commented 4 years ago

I tried to do a bit more debugging here, following @n-nikol98 's lead and it seems that urlToCanvas is what's causing the crash. I have no idea what's interacting with facebook's code, though. It's just loading an image and then calling drawIcon, which I tried mocking and still got the crash.

So, something about the profile pics being preloaded is probably causing this.

dapetcu21 commented 4 years ago

Even worse, looks like no matter what image gets preloaded (I tried replacing the URL with an unrelated Imgur link), it still crashes. Very very weird. Even tried with a timer promise to simulate the asynchronicity of an image load. Still not it. Apparently preloading any image makes the emoji bar crash. Weirdest bug I've seen in a while.