MicrosoftDocs / mixed-reality

Mixed Reality documentation
Creative Commons Attribution 4.0 International
174 stars 184 forks source link

QR-Tracking: Calling RequestAccessAsnyc in Play-Mode Causes Crash in Subsequent Runs #608

Open SebKranz opened 2 years ago

SebKranz commented 2 years ago

Calling RequestAccessAsync from mixedreality.QR when running in the editor, for example during Holographic Remoting, causes a crash when the editor is stopped and then started again.

In unity 2020.xx, crashes occur every 2-5 plays. In unity 2021.xx crashes occur before every second play (play -> stop -> play -> crash).

https://github.com/chgatla-microsoft/QRTracking/issues/46 reports this in more detail. https://github.com/MicrosoftDocs/mixed-reality/issues/326 mentions a potential fix, but didn't help in my case.

https://github.com/microsoft/MixedReality-QRCode-Sample/issues/6 might be connected, as both crashes occur when tracking is restarted.

The crash occurs regardless of whether Holographic Remoting was used in the previous session. Simply calling RequestAccessAsync from Unity creates the necessary conditions.

typride commented 2 years ago

I've pinged some people that may be able to help. Thanks!

wbueschel commented 2 years ago

Is there any news on this? I experience the same problem and it makes working with QR codes a pain.

cirvladimir commented 2 years ago

I'm having the same issue. In the meantime, a workaround would be nice. An intermediate library could be written on top of the QR code library which caches the QR code locations and then skips the actual QR library altogether. Does anyone have something like this?

pablodiazv commented 1 year ago

My problem is similar, first time I start remote debugging all works fine, but the second time not crash but QR detection not work. Has anyone find a solution?