Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.3.0f3

Issue ID

980516

Regression

No

[Vuforia] VRDevice::UpdateCachedDeviceState crash when entering Play mode

XR SDK

-

To reproduce:
1. Open user's project
2. Enter Play mode

Expected: editor doesn't crash
Actual: editor crashes

Reproduced in: 2017.2.1p1, 2017.3.0p1, 2018.1.0b1

Note1: crash no longer happens when removing VuforiaWrapper.dll files for both x64 and x86
Note2: for this to crash XR settings must have Vuforia Virtual Reality SDK enabled
Note3: If only AR is enabled, console produces error "Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: nativeUnity_SetDeviceConnected"

Full stack trace:
0x0000000141883F2C (Unity) VRDevice::UpdateCachedDeviceState
0x000000014188BDBB (Unity) VRDevice::StartRenderingToDevice
0x000000014188E318 (Unity) VRDevice::Initialize
0x000000014188136D (Unity) VRModule::InitializeDevice
0x0000000141881461 (Unity) `VRModule::VRModule'::`8'::enterPlayModePreAwakeRegistrator::Forward
0x00000001411E8549 (Unity) PlayerLoopController::EnterPlayMode
0x00000001411E8E76 (Unity) PlayerLoopController::SetIsPlaying
0x00000001411E9CC6 (Unity) Application::TickTimer
0x000000014140EB0F (Unity) MainMessageLoop
0x00000001414103B5 (Unity) WinMain
0x0000000141E643A8 (Unity) __tmainCRTStartup
0x00007FFE7C531FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFE7EB4EF91 (ntdll) RtlUserThreadStart

Won't fix: Since Vuforia was integrated into Unity since 2017.2, legacy Vuforia files no longer work. Now you need to select Vuforia component when installing Unity in order to be able to use it. Also, Vuforia legacy files should be deleted.

Comments (4)

  1. shubhamswaraj2021

    Aug 18, 2020 15:55

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. spenciev3

    Jul 30, 2018 22:54

    I found out that it doesn't crash if the Vuforia SDK in player settings is under OpenVR; although it still doesn't work quite right.

  3. spenciev3

    Jul 30, 2018 20:01

    I don't know why this is labeled not reproducible. I attached a file with my report that crashes when run on 3 different computers that I tested it on!

  4. DKasper_3DQR

    Jul 03, 2018 16:06

    Reproduced this by simply migrating from Unity 2017.1.4f1 to Unity 2018.1.6f1. I did this by removing all Vuforia files from the project in 2017.1.4f1, updating to 2018.1.6f1, enabling Vuforia support in player settings, adding the Vuforia AR camera und updating to the new Vuforia Version (7.2). After this I got the System.Reflection.TargetInvocationError described in Note3 and could only solve this by removing the VuforiaWrapper.dll.

Add comment

Log in to post comment