-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug] iOS 17 + iPhone 15 Pro - Random Crashes #1111
Comments
PS. happens even with MT rendering off |
It seems it happens when coming back from the device being locked. It crashes right after opening the application again. |
seems I was able to elimate it. here is the thing: I found this line of code inside ARKIT:
so you have to disable both MultiThreaded and NativeGraphicsJobs in order to really disable multithreaded rendering. previously, our app was with k_MultithreadedRenderingEnabled disabled but NativeGraphicsJobs enabled disabling BOTH seem to have fixed the crashes |
Thanks @dganzella for this detailed report. |
hmmm @andyb-unity still crashing even with MT rendering and graphics jobs OFF, but random this time |
I noticed that after updatign to 17.1 all the crashes went away we have not had a single crash instance of 17.1. No crashes from the past 10 days |
@dganzella |
@dganzella interesting. I suspect that the iOS 17.1 "fix" may just change something about the thread scheduling that hides the underlying race condition. Our investigation so far has shown that the issue is in Unity's Metal texture implementation, and XR is working with the Graphics team to get them everything they need to implement a fix. Edit: oh I misread your earlier post and thought that you had claimed that iOS 17.1 fixed the multithreaded rendering issues. As I noted here, we believe the multithreaded crash on lock/unlock is a Unity Graphics issue. |
@NJMnm I tested only with both k_MultithreadedRenderingEnabled/NativeGraphicsJobs off. Im kinda afraid to turn them on :( |
We have fixed one possible cause of this crash. This fix is in the following versions: 4.2.10 Review the ARKit changelog in these versions, should you choose to upgrade. The fix also requires specific minimum patch versions of Unity. We are also investigating a similar report of this crash for scenes that use Occlusion, specifically. Our fix thus far has only touched the Camera subsystem. |
Describe the bug
iPhone 15 Pro and 15 Pro Max on ios 17 will randomly crash when using ARKIT
To Reproduce
Steps to reproduce the behavior:
Use any arkit sample for little while, with iphone 15 pro on ios 17, then lock the phone and open it again multiple times
the iphone will crash eventually/randomly
Expected behavior
No random crashes
Actual behavior
Crashes
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: