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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Unity Editor Return Codes

Discussion in 'Editor & General Support' started by Gizmoi, Feb 26, 2018.

  1. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    Hi. I'm in the process of wrapping Unity in a build system.

    I'm opening Unity via a batch script with command line arguments to execute a method.
    During my build an executable phase, Unity appears to successfully complete the build (judging from the logs) and then when exiting, I end up with an error code of "-1073740791" in the batch file.

    I can't find anything relevant to return code regarding Unity.
    Anyone have any idea why I'm getting this error code?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,419
    -1073740791 in HEX is C0000409. According to google, the C0000409 error represents a "Stack Buffer Overview". Perhaps you actually do have an error in the log?
     
  3. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    Hmm, that's interesting.
    I don't have the log any more but the last thing it said after it finished my code was along the lines of "exiting batch mode successfully"

    I'm now getting a return code of "-1073740777", which translates to C0000417, which apparently is "STATUS_INVALID_CRUNTIME_PARAMETER".

    Is any of this documented anywhere? It's incredibly frustrating to try and work with.
     
  4. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    Documentation of this would be interesting. I could make a command line tool to translate codes to human-readable error messages.
     
  5. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    The (C0000417) STATUS_INVALID_CRUNTIME_PARAMETER error seems to be have been linked to the -logFile parameter. This error is given when a folder in the file path specified doesn't exist