mock-foundation / moc

A (really) native and powerful macOS and iPadOS Telegram client, optimized for moderating large communities and personal use. Currently in alpha
GNU General Public License v3.0
119 stars 6 forks source link

Crash on viewing certain album messages #128

Closed ggoraa closed 1 year ago

ggoraa commented 1 year ago

...and I currently have no idea which exact messages provoke this kind of behavior. For now we have the crash reports from AppCenter, which help us understand that the issue is in media messages, specifically photos and/or videos.

Here are crashes themselves: First Second

I should investigate what exact messages were the culprits of these crashes, and hopefully fix them.

ggoraa commented 1 year ago

I have found where to reproduce the crash, trying to narrow down the cause

ggoraa commented 1 year ago

Bruh, this is actually makeDocument inside of makeAlbum how the fuck a document message is inside of an album watafuk

ggoraa commented 1 year ago

After more investigation, I'm sure that photo and video rendering is working as it should, only the document one is broken

ggoraa commented 1 year ago

Oh wow, not only the document one causes crashes

ggoraa commented 1 year ago

Closing due to issue not being related to my bad code but rather to a bug in SwiftUI, because this issue is not a thing in Ventura

ggoraa commented 1 year ago

ARE YOU FUCKING KIDDING ME I TRIGGERED THIS CRASH ON VENTURA HOW

ggoraa commented 1 year ago

New info found: with Adress Sanitizer enabled in Xcode I was able to find an understandable error name for hoomans: it's a stack overflow how the fuck does it happen? I have no idea! But, well, we have nothing else to do than to investigate more