-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS client consistently hangs when writing new post at ~= 150 chars #705
Comments
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? |
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 #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… Lines 36 to 48 in 3e2282c
It seems like changing the |
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 (#705 (comment))... 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. |
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. IMG_1128.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. |
I had the same problem on my account but I realized the account I was logged in was @salemXpresso@[email protected]. |
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 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. |
Using global background queue was handing the character counting work to a different thread every time the text changed. Forcing it always onto the same background queue would be another option, but main seems to feel fast enough and is safer because of all the view-related things downstream. Contributes to #705 IOS client consistently hangs when writing new post at ~= 150 chars
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
The text was updated successfully, but these errors were encountered: