Open jakemanion opened 1 year ago
Happens to me, too. "The Mastodon iOS app locked up every try when the count hit exactly 400! Had to be hard killed."
Again today:
iOS 16.1.1, Mastodon 1.4.7 (199)
Is there any evidence I could collect and share?
If you have a Mac with Xcode installed, it would be awesome if you could capture a trace of the hang. Here’s how:
This will help understand what code is running when you encounter the hang.
Sorry, no Mac here. Linux, Windows, iPad with Playgrounds, a-Shell and iSH...
This happens consistently to me as well on an iPhone SE (3rd gen). Is there any way to capture a trace or logs without a Mac that would be helpful?
Me too. Twice on a new post at exactly the same position. And once doing a reply. For your enjoyment:
For me, this is caused by Display Zoom/Use Larger text in iOS settings. Disabling that makes longer posts possible. Reenabling it, I got the crash/hang again in about the same place. This is a newer iPhone SE.
I have (and have always had) that setting disabled, and I still consistently hit this hang on iPhone SE 3rd gen.
One thought: most of the reports here mention iPhone SE, and one mentions a "larger text" setting. Is there any chance this could be related to small screens or a small screen-to-font-size ratio?
If any of you have a Mac and are willing to temporarily install Xcode, my instructions in https://github.com/mastodon/mastodon-ios/issues/705#issuecomment-1333774273 would provide debugging info that would be super helpful for sorting out exactly why things are breaking.
If any of you have a Mac and are willing to temporarily install Xcode, my instructions in #705 (comment) would provide debugging info that would be super helpful for sorting out exactly why things are breaking.
Hi - have a trace here after replicating the issue - can you provide an alternative way of sharing this with the Mastodon App Devs and I'll send it across and am happy to provide anything else you need. I'm on mastodon.social as @marksemczyszyn
Thanks to @thespianuk’s trace, I’ve been able to track down the issue!
The relevant code seems to be at…
It seems like changing the composeContentTableViewCell
frame may cause SwiftUI to re-layout and update the contentCellFrame
height. One solution could be to do some filtering here to reduce the risk of an issue like this. Another solution could be dropping the UITableView
being used here in favor of a fully SwiftUI view hierarchy (possibly with the scrolling handled by a UIScrollView
because manually adjusting the scroll position of a ScrollView
has caused me so. much. pain. in the past)
I'm also experiencing this issue on iPhone SE w iOS 15.7.1 and Mastodon app 1.4.9 build 224. Unfortunately, my Mac is on Catalina and the latest XCode I can run atm is v12, which doesn't seem to be able to profile my updated iPhone. Is there any other info I can provide that might help?
iPhone Xs here, consistently reproduced issue 100% of the time, related not to the text size, rather to lines amount. Freezes for me when text field goes to 5th line (could be just pressing Enter on each line).
Sadly, even after you workaround in #932, it's still freezing.
iOS: 16.3, Mastodon: 1.4.11
As you can see at the keyboard, it hangs just at the next key: "f".
update: because someone mentioned it: Im using a iPhone 14 Pro.
Ehm.... I just, can't reproduce it anymore. As you might suggest from my last post (https://github.com/mastodon/mastodon-ios/issues/705#issuecomment-1427132126)... it was easy to create an screenshot, because it freezes everytime.
And because @j-f1 couldn't reproduce it, I started tinkering. Here are some notes:
So, maybe someone could try if cleaning up the Media Cache could help (in mastodon app settings at the bottom) or switching to another account.
Im pretty new to mastodon, so I wasn't expecting something wrong with the Media Cache. Also because Im following like no one (2 people) - so my Timeline is pretty empty.
Hope that helps.
This is also happening to me even after this new update that should have fixed the app from crashing when writing new posts.
Confirming that it consistently hangs on v1.5 (286) on my iPhone 13 mini (A2628) using iOS 16.3.1 (20D67). I’ve got an old MacBook there to do an instrument check, so I’ll get around to doing a capture soon.
Edit: Have sent a Mastodon DM to @j-f1 with the trace and accompanying recording.
https://user-images.githubusercontent.com/7020632/226216804-ef6e707f-dc24-4a7c-9278-704a6cf88fad.MOV
I have the same issue each time I try to write a post or a response to someone else's post also at around 150 chars. On iPhone11 running iOS 16.4.1 and the Mastodon app v1.5.2.
I just had this. I Rarely post on Mastodon so I forgot about it but it’s a while since I have this bug. iPhone 12 with latest iOS and larger text enabled under Settings -> Scren and Brightness-> Text size
I had the same problem on my account but I realized the account I was logged in was @salemxpresso@salemxpresso@mastodon.top. After sign out and then sign in again without the name duplication, the issue disappeared. As the author of the issue seemed to have the same account name duplication, this might be our common configuration that causes the crash.
I had the same problem on my account but I realized the account I was logged in was @salemXpresso@salemxpresso@mastodon.top. After sign out and then sign in again without the name duplication, the issue disappeared. As the author of the issue seemed to have the same account name duplication, this might be our common configuration that causes the crash.
I can confirm that @salemXpresso 's solution of signing out (closing the app) and signing back in again did solve both of those issues for me as well. Thanks for sharing!
I have similar issue.
Steps To Reproduce:
Environment:
I have the exact same issue. I do not have the name duplication glitch and have signed out and in and still suffer the same issue. iPhone 13 with iOS 17.1.1 and latest app version as of time of writing.
I had the same problem on my account but I realized the account I was logged in was @salemxpresso@salemxpresso@mastodon.top.
After sign out and then sign in again without the name duplication, the issue disappeared.
As the author of the issue seemed to have the same account name duplication, this might be our common configuration that causes the crash.
I don't have name duplication but I've been plagued by the issue ever since I installed the app.
Is the root cause understood yet? If not, is it possible the issue is related to the length of the user name?
Edit to add: signing out and back in did not help.
I think this is related to long user names.
Notice all the repro screenshots have a long user name that is truncated with an ellipsis. And the user with a duplicated name stopped hitting the issue after shortening their user name by removing the duplication.
I've always hit this issue with my account (also truncated), but when I created a new account with a short name, I'm no longer hitting hangs when typing out a large post! (Although I also switched servers since the server I was on had a super long domain, so the server domain could be related as well...)
@j-f1 if you're still able to help can you try with a long user name (or domain)?
Edit to add: I'm on Mastodon for iOS v2023.16 (6043), iPhone SE 3rd gen, iOS 17.1.2.
Is there an existing issue for this?
Current Behavior
The hang is odd - the carat is still flashing, but the keyboard gets stuck as per the attached image, and nothing is interactable.
Expected Behavior
It should allow writing until the full character limit
Steps To Reproduce
Environment
Anything else?
No response