We're currently working on a multi-scene Unity project, with ARKit and Wikitude working together in one of the scenes. A script grabs the pixel data from ARKit, and feeds it to Wikitude.
It all works flawlessly the first time the AR scene is launched, but if we navigate away from the scene (to a scene that does NOT have anything Wikitude related), and come back to it, ARKit tracking crashes with the following error message: [Sensor] Unsupported pixel format: 875704438
We have narrowed the problem down to the "WikitudeCamera" object, since
the application doesn't crash on scene reload if that object is
disabled. However, Wikitude being closed source, we have no idea what steps to take to fix the problem.
According to the documentation, the Wikitude plugin should be destroyed when we navigate to another scene, since the WikitudeCamera object gets destroyed by Unity. It seems however that something lingers and prevents ARKit from restarting the tracking properly.
Is ARKit running when you switch from the non-Wikitude scene back to the tracking scene, or is ARKit initialized after the scene is loaded.
The only thing that comes to mind is that maybe during Wikitude initialization ARKit is still running and that causes something to go wrong.
Can you please make sure that ARKit is only started after the OnInputPluginRegistered callback is called on the WikitudeCamera script?
Is it possible for you to send us your project, or a simplified version of it that still reproduces the problem?
You can send it to our support email if you don't want to share it in the forums.
Having the project would allow me to debug it and maybe find out why this is happening.