I am getting a crash in my iOS Storyboard app which is easily reproducible.
When I enable Zombie Objects, this is the crash message I get.
2023-08-09 21:25:30.736022+1000 ThingyTwo[31860:4546795] *** -[UITabBarController removeChildViewController:]: message sent to deallocated instance 0x14b830000
(lldb)
It happens when:
A UITabBarController is placed within a UINavigationController.
The UITabBarController has more than 5 view controllers, which then internally uses a UIMoreNavigationController to display the remainder.
The UINavigationController is removed from the view hierarchy.
It doesn't crash 100% of the time, usually somewhere between 20% and 80%.
I have created a bare-bones implementation almost entirely as a storyboard.
https://github.com/adamroyle/more-controller-crash
Run the project, click the "Show" button, and then click the "Dismiss" button. Keep repeating this until it crashes, it shouldn't take long.
Please let me know if you know of any simple workaround to this?
Post
Replies
Boosts
Views
Activity
I am having consistent cursor lag after scrolling using the touchpad on my MacBook Pro M1 14" (16GB RAM). I'm running macOS 13.4 and Xcode 14.3.1 but this issue has happened for over a year.
Sometimes the lag can be up to about 5 seconds, but usually it's around 0.5s - 1.5s.
It happens on both small and medium-sized projects. I haven't noticed it happening consistently in any other apps. I'm not doing anything intensive on the machine while it happens.
I'm pretty sure it has to do with Xcode or macOS not redrawing the updated cursor position, even though the cursor position is actually changing in memory.
eg.
I flick the trackpad vertically with two fingers to begin scrolling. I then use a single finger to flick the trackpad horizontally. This stops the vertical scrolling but the cursor remains frozen in the same horizontal position until I interact with Xcode again. When I try to move the cursor, it jumps to its expected position after about 0.5s.
If I use Cmd-Tab to switch away from Xcode after scrolling, I get a similar behaviour, the cursor position doesn't visually update for 0.5s, and then jumps to its expected position.
Hasn't anyone else experienced this or have any clues as to why this would be happening? It is very frustrating. It happens when scrolling the project sidebar as well as small code files (< 150 lines).
UPDATE: I have just restarted the MacBook into Safe Boot mode, and when I opened Xcode I was unable to reproduce the cursor lag. After restarting in normal mode, the problem seems to have disappeared! Hopefully it remains fixed, and if it comes back I'll post another update.