iOS client instantly crashing with large attachments

Delta Chat version
1.46

Expected behavior

App is working correctly

Actual behavior
iOS app instantly crashes after showing splash screen for a while. Problem can solve by itself after indefinite amount of time (from 10 minutes to 24-36 hours)

Steps to reproduce the problem
0. (To break sender’s side) Enable sending copy to yourself

  1. Send a large video attachment from an Android app via postfix+dovecot server to user at the same server
  2. Open recipient’s iOS app — it crashes
  3. Open sender’s iOS app — it crashes

But it isn’t reproducible every time for both sides: sometimes both clients are broken, sometimes one of the them, sometimes both work correctly.

No logs could be retrieved, because app does not open. Nothing suspicious in the dovecot logs have seen.

1 Like

I made an issue for it on the iOS repo: iOS client instantly crashing with large attachments · Issue #2210 · deltachat/deltachat-ios · GitHub

1 Like

thanks a lot for your report! to make it easier to sort things out, maybe you can clarify the following points:

which size were you using got a “large video” - how many MB or even GB?

for 3. the “sender’s iOS app” - in 1. the sender was Android app. might be, of course, that Android is affected as well.

in general, for sure, we need some upper borders - in the past, core was restricting sizes, but that was removed completely, so we need some checking in the apps (eg. iOS has a very strict limit about the amount of memory an app can use - maybe this is just hit)

which size were you using got a “large video” - how many MB or even GB?

about 17 MB

for 3. the “sender’s iOS app” - in 1. the sender was Android app. might be, of course, that Android is affected as well.

The sender was an Android app, yes, but it does not crash

eg. iOS has a very strict limit about the amount of memory an app can use - maybe this is just hit

It may be the case, because more messages with large attachments in a series you send – more likely the problem will reproduce

BTW, at this postfix instance message_size_limit = 104857600

1 Like

hm, i tried to send myself several files/videos, but i could not reproduce the issue. the video was a raw size of 20mb, resulting in a message of about 30mb - which is the upper limit for the used email sever - larger files are denied to sent out.

@Simon as you created the issue in the iOS repo, i assume, you could reproduce that? if so, can you provide a log or give more information about how to reproduce and how “download on demand” is related to that?

otherwise, maybe the crash is not related to file size, but to actual file content, @JoeMcNuggets can you send the video/file in question to Message privately on Delta Chat

1 Like

Haven’t tried it, just reposted it there, because I didn’t know how actively you were watching the forum, it’s a bug report, not a feature request, so it belongs to iOS issue tracker.

I believe a friend of mine is suffering from this issue. DC on iOS (Appstore version) not opening after I sent him a 5 MB GIF from my DC Windows client. No issues viewing the chat, message and attachment on my testflight version. He is on Chatmail, I’m on vanilla Dovecot.