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

Can stacktraces be partly incorrect?

Discussion in 'Unity Cloud Diagnostics' started by MartT, Oct 3, 2017.

  1. MartT

    MartT

    Joined:
    Oct 14, 2016
    Posts:
    1
    I'm trying to catch a bug, where our app crashes.
    Funny thing is: MonetizationToDictionary() isn't called anywhere in the code - looking at git it was commented out 2,5 months ago and never put back in. Searched by string, even. Only one occourance. Private function.
    The function itself is there, but as nothing is calling it, I'm puzzled about what's going on.

    Is there any chance, a stacktrace can be partly correct?

    The part of the stacktrace where RoboRallyGame and MemorylaneGame is fits perfectly in time and matches what would be expected from the description given from the QA-guy. Build is double checked on cloud build and number is confirmed via SRDebugger.


    Stacktraces are retrived via Unity website, not the console.

    NullReferenceException: A null value was found where an object instance was required.
    STACK TRACE
    com.brainplus.model.AnalyticsModel.MonetizationToDictionary (com.brainplus.model.analytics.ParametersObjectFlat parametersObjectFlat, com.brainplus.model.analytics.AnalyticsObjectMonetization analyticsObjectMonetization)
    com.brainplus.view.games.GameBase.SendEndSessionProgressEvent (System.String state)
    com.brainplus.view.games.roborally.RoboRallyGame.TearDownScene ()
    com.brainplus.NavigationController+<SceneShift>c__Iterator0.MoveNext ()
    UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)


    NullReferenceException: A null value was found where an object instance was required.
    STACK TRACE
    com.brainplus.model.AnalyticsModel.MonetizationToDictionary (com.brainplus.model.analytics.ParametersObjectFlat parametersObjectFlat, com.brainplus.model.analytics.AnalyticsObjectMonetization analyticsObjectMonetization)
    com.brainplus.view.games.GameBase.SendEndSessionProgressEvent (System.String state)
    com.brainplus.view.games.memorylane.MemorylaneGame.TearDownScene ()
    com.brainplus.NavigationController+<SceneShift>c__Iterator0.MoveNext ()
    UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)
     
  2. thomasn_unity

    thomasn_unity

    Unity Technologies

    Joined:
    Jun 21, 2016
    Posts:
    60
    Hi MartT,

    While we sometimes see stack traces missing entirely, we're not aware of an issue with partially incorrect stack traces. Can you please file a bug with your project attached (https://unity3d.com/unity/qa/bug-reporting)?

    Thanks