-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
XCTests using Texture/AsyncDisplayKit deadlock during initialisation when targeting iOS 15 #2029
Comments
@benniebotha I can confirm i'm seeing the same thing. Would you be able to link to the Apple issue for tracking? Oddly I'm also seeing the same result very occasionaly running the app itself. It will freeze on a splash screen before @nguyenhuy I don't suppose one of the team could look into this? |
@benniebotha changing the
|
Thanks @foxware00 for looking into it further. The fact that it is occasionally happening outside of tests is even more concerning! I raised the issue under the dev tools feedback that is unfortunately not public. 😞 Your solution would does seem to work yes. Another work around seems to be activating the |
Yes it's very concerning, I can't say 100% that it's Texture during normal boot as i'm currently unable to get a spindump when it happens. However the result (freezing before the app boots without any logs) is identical to that shown when running UITests In terms of the Experimental flags, I'm not 100% sure having not used them in the past. Which package manager are you using, you can point Cocoapods at a github fork with the changes mentioned above if it would satisfy you in the meantime? |
@nguyenhuy I've had a response from eskimo at Apple and has indicated that the framework intialisation is at fault. He has suggested a couple of work arounds such as lazily initalizing the framework. Are you able to take a look at this and see if there is anything we can do? https://developer.apple.com/forums//thread/689592?answerId=688696022&replyId=688696022 |
Any progress on this issue as we also experience it and we r heavy dependent on Texture. |
same issue here |
Thanks @foxware00 for raising it on the Apple forum. I got the experiment working as well as making those temporary changes in our fork. That should do for now thanks. Hopefully it will get solved quickly on the main repo. |
@benniebotha the solution we've aludded too seems to fix unit tests but still happens in the main app for a subset of users. It would be good to have some weigh in from some of the authors as my knowledge of Objective-C and framework initalisers is limited. |
@benniebotha It might be worth also rasing a compatability bug with Apple, the more people shouting the more likely they are to fix it. |
#2032 I just open Pull-Request. It replace attribute from constructor to destructor for run after main on running unit test |
same issue here |
experiencing similar issue |
Really curious why this only/always happen in unit test but not in application itself |
Any why only starting with iOS 15 / Xcode 13 |
Same here |
Unit testing will be stuck on Xcode 13. See: TextureGroup/Texture#2029
I still don't understand how that related to the tests? |
Same here |
#2032 has been merged, so this issue has got fixed and could be closed. Check out the current master branch. |
Hey! It looks like this pr #2032 does not solve the issue. @foxware00 's this solution works. |
We're experiencing the same issue. Is there any way we can assist here, to resolve this? |
Is there any update on this getting fixed in a release? |
While running the test, AsyncDisplayKit hangs before any tests run when iOS 15 is used as the test target.
It appears to hang inside
-[UIView init]
which indicates there may be an issue with UIKit itself. This issue has been raised with Apple, but implementing a fix in Texture is needed in the meantime.In AsyncDisplayKit we can see that the hang occurs in the following functions:
It appears the hang is during the call to
[[UIView alloc] init]
inside thedispatch_once
.The text was updated successfully, but these errors were encountered: