element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.73k stars 497 forks source link

Element iOS crashes when opening some chats #7433

Open vit9696 opened 1 year ago

vit9696 commented 1 year ago

Steps to reproduce

  1. I start on the room list
  2. I click on one of the group chats

Last chat it happened on is actually Telegram-bridged via Mautrix-Telegram.

Outcome

What did you expect?

A chat should be opened.

What happened instead?

The application crashes immediately.

Attached the crash log: crash.log

Your phone model

iPhone SE 2

Operating system version

iOS 16.3.1 (20D67)

Application version

1.10.5

Homeserver

Synapse 1.76.0

Will you send logs?

No

vit9696 commented 1 year ago

While this does sound similar to https://github.com/vector-im/element-ios/issues/4010, the chat in question is definitely not bridged recently and there does not seem to be any activity/logs in that issue.

daletman commented 1 year ago

@vit9696 How did you get the crash.log file on iOS?

vit9696 commented 1 year ago

I connected my phone and opened Xcode Device Organizer, then I reproduced the crash on my phone and grabbed the crash log from Xcode.

daletman commented 1 year ago

Here's my log file, hope it helps:

Element 14.03.23, 15-46.log

vit9696 commented 1 year ago

What do you need to address this? The application is rather unusable due to the bug.

LCerebo commented 1 year ago

Same problem here and it’s rather annoying. The strange thing is that it happen only on element on my iPhone. Using the iOS or desktop client seems fine. The chat that I tried to open are all bridged from telegram or WhatsApp because are the oldest one. The problem occur only on older chat. The 16th works the 17th crash. Any workaround/bug fix is very welcome!

daletman commented 1 year ago

@LCerebo Sometimes it helps to clear the cache, but not always. It's extremly annoying and I recommend anyone to use Element at the moment because it's in general very buggy.

Using the iOS or desktop client seems fine.

Did you mean Android?

LCerebo commented 1 year ago

@daletman thanks for the the feedback, your workaround seems to work. Now I can open older chat without crashes.

Did you mean Android?

Sorry I meant iOS client on iPad. Thanks again for this tip.

vit9696 commented 1 year ago

For me the issue is that for some chats: