Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity uncaught exception behavior 5.6.2 vs 2018.4.1

Discussion in 'Scripting' started by neonaleon, Aug 26, 2019.

  1. neonaleon

    neonaleon

    Joined:
    Aug 25, 2012
    Posts:
    16
    Hi,

    Uncaught exceptions seem to be handled (or not handled) differently between 5.6.2 and 2018.4.1

    In 5.6.2, when the game crashes, the following dialog is shown, and some logs are copied into a timestamped folder which I can get from the player in order to provide technical support.

    InkedUnity562.jpg

    In 2018.4.1, when an uncaught exception happens, the game doesn't crash and the player can continue playing the game in a broken state, and get undefined behavior.

    Is there some way to make the game crash like in the above screenshot?
    I've tried using Application.logMessageReceived with Application.ForceCrash on exceptions, but it does not create the timestamped log folder.
     
    Last edited: Aug 26, 2019