moc icon indicating copy to clipboard operation
moc copied to clipboard

Crash on text styling

Open EdisonJwa opened this issue 3 years ago • 9 comments

I was trying to switch the folders and seems the moc is also fetching the data at this time. and then it crashed

version 0.3.0 (15)

The Problem report is as the following

Github reports body is too long and I'll put it in the following gist

https://gist.github.com/EdisonJwa/803c22aa179e978e668b29ee681fefb0

EdisonJwa avatar Nov 14 '22 16:11 EdisonJwa

Well that looks interesting, it died on text styling, which should not die no matter what I saw a crash like this in AppCenter Crashes some time ago(smth like months) but was not able to reproduce it

voltangle avatar Nov 14 '22 16:11 voltangle

Well that looks interesting, it died on text styling, which should not die no matter what I saw a crash like this in AppCenter Crashes some time ago(smth like months) but was not able to reproduce it

if so I'm considering the CJK(Chinese,Japanese, Korean) characters

EdisonJwa avatar Nov 14 '22 16:11 EdisonJwa

The styling system should support UTF-8 fully, but thanks for clarifying!

voltangle avatar Nov 14 '22 16:11 voltangle

The styling system should support UTF-8 fully, but thanks for clarifying!

Seems that the Korean characters will cause the problems While I'm opening my channel (which contains Korean characters) it crashed With the following problem report https://gist.github.com/EdisonJwa/6c64dea09ca85bfc970158418f98af83 (too large to embed)

and the channel for reproducing it https://t.me/+lcH67pJEr3IzNWY5 (for reproducing the crash)

EdisonJwa avatar Nov 14 '22 16:11 EdisonJwa

And I'm not sure if the lag was also caused by CJK characters

EdisonJwa avatar Nov 14 '22 16:11 EdisonJwa

@EdisonJwa what did you do exactly to trigger that crash? i can succesfully open that channel, and Moc doesn't die

voltangle avatar Nov 14 '22 16:11 voltangle

@EdisonJwa No, lag is definitely not caused by CJK characters, it's a app-wide issue, because of poor optimization

voltangle avatar Nov 14 '22 16:11 voltangle

@EdisonJwa what did you do exactly to trigger that crash? i can succesfully open that channel, and Moc doesn't die

Please check the video

https://user-images.githubusercontent.com/22003734/201721056-15e2a686-6143-47d9-9240-62788caa71db.mov

(Reuploaded)

the report with it https://gist.github.com/EdisonJwa/3b92e7a632256e570b3c1f74ccf8d71a

EdisonJwa avatar Nov 14 '22 16:11 EdisonJwa

Hm You are on macOS Monterey, I am on Ventura, that's probably the reason why I can't reproduce it

voltangle avatar Nov 15 '22 13:11 voltangle