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

My favorite error in Unity

Discussion in 'General Discussion' started by Szkeptik, Aug 23, 2023.

  1. Szkeptik

    Szkeptik

    Joined:
    Aug 30, 2016
    Posts:
    7
    I'm not sure what it means, but this is clearly my "task failed successfully" moment:

    Assertion failed on expression: 'SUCCEEDED(hr)'
     
  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    738
    thats nearly as epic as Error: There was an error
     
  3. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,459
    Might not help here since that seems to be a custom assert someone wrote, but e.g. when "index out of bound" errors awkwardly point to the wrong line of code, make sure to "Enable Debugger" with the golden bug at the bottom-right corner of the screen:
    upload_2023-8-23_22-41-1.png
     
    bugfinders likes this.
  4. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,355
    Nothing to do with Unity but when I worked in web Javascript I always thought it was funny when I get the error message "Null is Null or not an object".
     
    warthos3399 likes this.
  5. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    SUCCEEDED is a macro from Windows API that you use to check whether the call you made has succeeded. I agree with you, there should be an error message with it. Unfortunately, there are ~35 Assert(SUCCEEDED(hr)) in the core, so I can't tell you exactly what happened. If you can reproduce it, we would appreciate a bug report.