Closed salvo-tchou closed 8 months ago
Hi @salvo-tchou,
This looks like a very well-formed bug report, however, our GitHub issues are unofficial. Please officially report this issue and provide the bug number so we can open an investigation: https://unity3d.com/unity/qa/bug-reporting
Hi @salvo-tchou,
One thing to note is that the AR Foundation package versions 5.0.x are no longer actively supported. The current supported and released version for the 5.x series is 5.1.2. I would recommend that you try to reproduce your issue with that version first.
If you are still able to reproduce this crash with AR Foundation 5.1.2, then the next step would be to try and reproduce it with the 5.1 samples. Perhaps modify the "Basic Image Tracking" sample to invoke code that is leading to the crash after the image tracking executes properly.
If the crash happens with the samples themselves, then definitely file the bug as Andy has suggested in the post above.
I am closing this issue due to inactivity. Note our repo README:
To report a bug in AR Foundation, please file a bug. You may also submit a GitHub issue, but we will close your GitHub issue if it does not contain an official bug ID number. The best way to ensure that your issue is addressed is to file a bug using Unity's official bug reporting process.
Feel free to open a new issue with a bug report attached.
Hey @salvo-tchou ,
Did you end up finding any solution or making a bug report ?
Just got the same problem. Tried many many things to cleanup the ARTrackedImageManager correctly but nothing would do. Though that waiting for end of frame after disabling the component would do, but no.
The only thing I got working is doing arSession.Reset()
before switching camera, which is an ok thing to do in my use case.
We are developing an application that allows users to take pictures with AR objects using ARFoundation. ImageTracking is used to detect AR markers, display the object and take the photo. As an option, we have created a function to switch the camera output to the front camera in order to take pictures with the front camera. (In the front camera state, only the image is used, so ImageTracking is not required.)
Under normal conditions, switching between the front and rear cameras functions normally, but If the following code is executed while ImageTracking has occurred even once, a crash will occur.
arCameraManager.requestedFacingDirection = CameraFacingDirection.User
I tried everything, but the crashing part is in the native code of ARFoundation, and I can confirm, no solution was found.
Run Environment
ARFoundation@5.0.7
Can you give me the knowledge to solve this problem?
Below are the relevant logs when a crash occurs on the actual device.