Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 876892_q1ua4htdcpa2u57s


    (Closed) Compiled Executable of VR Game has Access Violation Crash - Works fine inside Unity
     
     
     
    5
    Compiled Executable of VR Game has Access Violation Crash - Works fine inside Unity

    1. What happened
    After compiling the game and running it, performing certain actions in the (HTC Vive) game (such as attacking enemies) causes an Access Violation crash.

    2. How we can reproduce it using the example you attached
    Build the game and run the executable.  Using the Vive controllers, select the Load Level option followed by the Turrets Only option.  The game will crash shortly after the level loads.

    If you perform the same series of actions inside Unity (starting from the MainMenu scene), things work fine.

    The problem seems associated with projectiles hitting an enemy - if you open the DemoRegion level in Unity, there are two CannonProjectiles that are children of the Turret (empty) GameObject.  Adding them in and positioning them in front of an enemy turret is what causes the level to automatically crash (in the compiled version) as soon as they hit.

    License type: Free
     
       
      To follow up on this case, send email to accounts@unity3d.com mentioning 'Case 876892' in the subject.
      Your Cases:
      Case Title Status Date Opened
      1157610 UnityWebRequestTexture Cannot Load From Local Directories Containing '+' or '#' Characters Closed 5/25/2019 7:10 PM
      896366 Unity Stalls While Building A Scene Closed 3/30/2017 5:00 AM
      896027 Compiled VR Game Crashes When Removing Projectile With Child Particle System Closed 3/29/2017 5:20 AM
      892964 Cannot Run a VR Scene with Multiple VR Cameras Closed 3/20/2017 5:10 AM
      884126 Executable Version of SteamVR Game Crashes After Projectile Hits Enemy Closed 2/23/2017 6:20 AM
      876892 Compiled Executable of VR Game has Access Violation Crash - Works fine inside Unity Closed 2/2/2017 5:00 AM
      874494 Reducing a camera's near clipping plane reduces its effective far clipping plane Closed 1/26/2017 3:50 AM
      870137 Crash after trying to set object scale Closed 1/13/2017 6:10 PM
      639268 Attempted to hit "Play" after adding an Image component to a Open 10/11/2014 11:29 PM