Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to Disable Crash Report on Windows Build?

Discussion in 'Editor & General Support' started by xandelee, Oct 12, 2020.

  1. xandelee

    xandelee

    Joined:
    Sep 12, 2013
    Posts:
    29
    How do i disable the unity crash report on the windows build?

    I need to disable it because when my headless server crashes the process is still noticed as running by my process monitoring so i need it to simply shut down completely without waiting for input on the crash report.


    (The crash is probably being caused by some division by zero wich occur sometimes and i cant seem to find the source problem also)
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I'd first try launching the server with the -silent-crashes command line option, then duplicate the crash. The manual says it is an editor option, but the description is pretty clear it is a standalone player option. Looks like a mistake in the manual, but I've actually never tried it.

    https://docs.unity3d.com/Manual/CommandLineArguments.html

    Another thing I haven't tried either :p You could remove UnityCrashHandlerXX.exe from the build folder, and then launch your server and duplicate a crash. See what happens when a crash occurs without that executable.
     
    xandelee likes this.
  3. xandelee

    xandelee

    Joined:
    Sep 12, 2013
    Posts:
    29
    Thanks, it didn't occured me that it would be also an commandline, i'll try -silent-crashes and see if it solves the problem.
     
    Joe-Censored likes this.