cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.87k stars 242 forks source link

Posting screenshot and emoji causes browser to crash #497

Closed grandeljay closed 2 years ago

grandeljay commented 2 years ago

When I insert a screenshot via STRG + V and select an emoji from the list with some text my browser (Firefox / LibreWolf) crashes. The screen turns black I have to forcefully close the window. This doesn't happen every time, but quite often This happens every time. I've only noticed this behaviour on cinny and no where else so far.

Are there some logs I can look into?

kfiven commented 2 years ago

There could be some hint or error in browser console on why it's happening.

Also I'm not able to reproduce this in latest Firefox.

Also please use issue form when submitting bug reports.

grandeljay commented 2 years ago

There could be some hint or error in browser console on why it's happening.

Unfortunately I cannot use the browser console since the entire browser turns black, all tabs and panels are unusable.

kfiven commented 2 years ago

The what emoji+text+image are you sending will be helpful to reproduce. Also which version of Cinny you are running?

grandeljay commented 2 years ago

I just tried again and it crashed like clockwerk. Were you able to test it on Firefox or LibreWolf?

image

grandeljay commented 2 years ago

It happens with any screenshot pasted from my clipboard

grandeljay commented 2 years ago

I am using cinny web (v1.8.2)

kfiven commented 2 years ago

I have tested it on FIrefox and it's working there. Let me try Librewolf.

grandeljay commented 2 years ago

In case it's relevant: I am using 2 different profiles and have both open at the same time.

The crash is also not immediately, it takes a couple of seconds. Usually I:

  1. Paste the screenshot
  2. Add a caption and any emoji
  3. See the crashed window after 5 seconds
kfiven commented 2 years ago

for me librewolf is working too. Can you open console first and then send the img+msg and see if there's anything in console?

grandeljay commented 2 years ago

I made a video demonstrating the crash and how I can reproduce it: https://imgur.com/a/XjLj1Ye (with the browser console open)

kfiven commented 2 years ago

thanks for making a recording, what's your OS?

grandeljay commented 2 years ago

No problem 👍🏼 I am using Windows 10 here

ajbura commented 2 years ago

Hi @grandeljay , looks like it could be a browser specific issue (maybe some bad extension). Have you tried different browser or safe mode in same browser?

grandeljay commented 2 years ago

I've tried it in chromium and it works, but cinny doesn't even load in private mode for me. It's stuck here.

image

kfiven commented 2 years ago

It's not supposed to work in private mode (in case of firefox), see #20

grandeljay commented 2 years ago

Oh sorry, I confused safe mode with private mode. It does seem to be browser specific. It works in safe mode.

I haven't taken the time to exactly pinpoint it, but I'm guessing one of or the combination of these extensions was causing trouble:

Thanks for all the help!