Open yedexiong opened 7 months ago
we also suffer from this issue on different domains: mail.ru, orange.fr, sapo.pt, hotmail ... Our app crashes on iOS 17.1 and higher
we also suffer from this issue on different domains: mail.ru, orange.fr, sapo.pt, hotmail ... Our app crashes on iOS 17.1 and higher
Did you solve it? How was it resolved?
same issue for me
we also suffer from this issue on different domains: mail.ru, orange.fr, sapo.pt, hotmail ... Our app crashes on iOS 17.1 and higher
Did you solve it? How was it resolved?
Nope 🤷♀️
Same here but on MacOS sonoma mostly
Any thoughts on how to fix this, guys?
same issue for me
Seems like it is a Sonoma (14.1+)/iOS (17.1+) issue. Here we can find some directions how to fix it https://github.com/rstudio/rstudio/issues/13908. maybe rebuilding library with all its dependencies with latest compiler could fix the issue
I've tested on iPad pro 11" iOS 17.1.1. without any issue.
Same issue on iOS 17.1.1 and macOS 14.1.1
@akkrat Just to clarify, are you suggesting that building with latest sdk and Xcode fixed this issue for you?
This seems to be related to iOS 17.1.1. (Happens when trying to decode a mime mail header with some specific encoding) It's working on iOS 17.2 Beta which will probably be released to public around mid-December
@ju135 Appreciate the input. Do you know which encoding causes this issue?
Unfortunately, I'm not sure but I think I found the "bad mail" and this is probably the part of the header that caused the issue.
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_bcd83991a6fb4a8cb33a77395e4ee12d"
Content-Transfer-Encoding: 8bit
X-SES-Outgoing: 2023.11.12-54.240.6.31
This is a multi-part message in MIME format.
--b1_bcd83991a6fb4a8cb33a77395e4ee12d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
ð Geld sparen und schlau studieren: Unsere neuesten Studentenangebote ð
--b1_bcd83991a6fb4a8cb33a77395e4ee12d
ð
is the ASCII representation of the thumbs-up emoji (👍) and is part of the mail subject which has 8-bit as Content-Transfer-Encoding and UTF-8 as charset. So the issue might be the binary-to-text conversion of special characters like emojis.
@ju135 could you show the full main headers of this email?
In this situation, I think we need to understand what parameters are passed here: https://github.com/MailCore/mailcore2/blob/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/src/core/basetypes/MCData.cpp#L783
If you have a local repro, it would be easy to figure those out. Then, we would be able to analyze and find a fix for it.
Yes I'll update my message with the full header later. But I think the issue might already be fixed for users who update to iOS 17.2. Luckily the release to public happened today about an hour ago - so this crash should go away for those who update 🤞
@ju135 It looks like the iOS update yesterday was v17.1.2
and not 17.2
Would it be possible for you to post the headers of that email so that we get an understanding of what is causing this and check if the iOS 17.1.2 update fixed it?
@triton3 you are right, I misread that. Unfortunately, I don't know if its already fixed with 17.1.2
Here are all the headers (I censored some parts of it)
@triton3 @ju135
Unfortunately I have no leads on how to figure out the cause, or the fix. I tried with the headers @ju135 suggested, but it is not crashing on my end using iOS 17.1.2. I do still see new crash reports on firebase even with iOS 17.1.2, so the issue is not yet fixed.
Now 17.2 was released for real. Updating should fix it.
I've stumbled upon this crash while playing with writing a spam filter experiment. Simply allocate a MCOMessageParser
with the contents of TestCrashParser.txt (would've attached as text but GitHub wouldn't let me, so obviously extract first) - something like
NSData *testCrashParserData = [NSData dataWithContentsOfFile:@"./TestCrashParser.txt"];
MCOMessageParser *parser = [MCOMessageParser messageParserWithData:testCrashParserData];
And voila, the crash above appears
Bug was fixed on iOS 17.2 update (affected versions: 17.1.*)
we also suffer from this issue on different domains: mail.ru, orange.fr, sapo.pt, hotmail ... Our app crashes on iOS 17.1 and higher
Did you solve it? How was it resolved?
Nope 🤷♀️
Hi Artur, Could you check if you see my bug on iOS 17 (just raised it): "iOS: Thread not released by IMAP Session" I have put a class in there on how to recreate. ... Thanks, Walter.
Summary
Platform(s)
Happens on Mail Server
Piece of code
Actual outcome MailCore Cause app crash,How can we solve this problem?I need your help. Thank you!