chgatla-microsoft / QRTracking

MRTK sample app for QRtracking
MIT License
74 stars 69 forks source link

Doesn't work with HL1; Class not registered exception #33

Open Qualcuno opened 3 years ago

Qualcuno commented 3 years ago

Hi, when i try to launch this sample on Hololens1, nothing appens.

Hololens1 Unity2020.1.17f1

As debug output in visualstudio i can see this

Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01D4D1C0.
Exception thrown at 0x76EAF322 (KernelBase.dll) in SampleQRCodes.exe: WinRT originate error - 0x80040154 : 'Class not registered'.
Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: winrt::hresult_class_not_registered at memory location 0x01D4E2C0.
Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: winrt::hresult_class_not_registered at memory location 0x01D4DAD0.
Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: winrt::hresult_class_not_registered at memory location 0x01D4DC50.
Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Microsoft.MixedReality.QR.dll!6C07BE6F: ReturnHr(1) tid(7e0) 80040154 Class not registered
    Msg:[winrt::hresult_error: Class not registered] 
Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01D4E458.
QRCodesVisualizer start
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
QRTracking.QRCodesVisualizer:Start()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception thrown at 0x76EAF322 in SampleQRCodes.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01D4EDB4.
COMException
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <00000000000000000000000000000000>:0 
  at QRTracking.QRCodesManager+<Start>d__29.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at QRTracking.QRCodesManager.Start () [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.UnitySynchronizationContext.ExecuteTasks () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()
UnityEngine.UnitySynchronizationContext:ExecuteTasks()