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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How do I figure out where a crash occurred, stack trace doesn't include my functions/components

Discussion in 'Web' started by mortoray, Mar 25, 2023.

  1. mortoray

    mortoray

    Joined:
    Sep 14, 2018
    Posts:
    89
    How do I detect what is causing a WebGL exception? I have the stack trace below, but I don't recognize anything in there as my code, or anything that would point to one of my components.

    Code (csharp):
    1. IndexOutOfRangeException: Index was outside the bounds of the array.
    2.  
    3. 4 WebGL.framework.js:2869:14
    4.     _JS_Log_Dump http://localhost:44821/Build/WebGL.framework.js:2869
    5.     WebGLPrintfConsolev(LogType, char const*, void*) http://localhost:44821/Build/WebGL.wasm:28905413
    6.     InternalErrorConsole(char const*, ...) http://localhost:44821/Build/WebGL.wasm:28911843
    7.     DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&) http://localhost:44821/Build/WebGL.wasm:28911020
    8.     DebugStringToFile(DebugStringToFileData const&) http://localhost:44821/Build/WebGL.wasm:28908541
    9.     Scripting::LogExceptionFromManaged(ScriptingExceptionPtr, int, char const*, bool, Scripting::LogExceptionFromMangedSettings const*) http://localhost:44821/Build/WebGL.wasm:28250106
    10.     Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) http://localhost:44821/Build/WebGL.wasm:28250350
    11.     ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) http://localhost:44821/Build/WebGL.wasm:28256937
    12.     MonoBehaviour::AddToManager() http://localhost:44821/Build/WebGL.wasm:18066921
    13.     Behaviour::AwakeFromLoad(AwakeFromLoadMode) http://localhost:44821/Build/WebGL.wasm:27941525
    14.     MonoBehaviour::AwakeFromLoad(AwakeFromLoadMode) http://localhost:44821/Build/WebGL.wasm:18065488
    15.     AwakeFromLoadQueue::InvokePersistentManagerAwake(AwakeFromLoadQueue::Item*, unsigned int, AwakeFromLoadMode, bool) http://localhost:44821/Build/WebGL.wasm:27796924
    16.     AwakeFromLoadQueue::PersistentManagerAwakeFromLoad(ErrorsAndWarningsCapture*, bool) http://localhost:44821/Build/WebGL.wasm:27793642
    17.     LoadSceneOperation::CompleteAwakeSequence() http://localhost:44821/Build/WebGL.wasm:20019210
    18.     LoadSceneOperation::CompleteLoadFirstScene() http://localhost:44821/Build/WebGL.wasm:20019358
    19.     LoadSceneOperation::IntegrateMainThread() http://localhost:44821/Build/WebGL.wasm:20018558
    20.     PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int) http://localhost:44821/Build/WebGL.wasm:20024604
    21.     PreloadManager::WaitForAllAsyncOperationsToComplete() http://localhost:44821/Build/WebGL.wasm:20024961
    22.     RuntimeSceneManager::LoadScene(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, UnityGUID const&, int, InternalLoadSceneParameters const&) http://localhost:44821/Build/WebGL.wasm:19993995
    23.     PlayerStartFirstScene(bool) http://localhost:44821/Build/WebGL.wasm:27715924
    24.     PlayerLoadFirstScene(bool) http://localhost:44821/Build/WebGL.wasm:27716202
    25.     InitWebGLPlayer(int, char**) http://localhost:44821/Build/WebGL.wasm:27340352
    26.     main http://localhost:44821/Build/WebGL.wasm:27341080
    27.     unityFramework http://localhost:44821/Build/WebGL.framework.js:1797
    28.     callMain http://localhost:44821/Build/WebGL.framework.js:19659
    29.     doRun http://localhost:44821/Build/WebGL.framework.js:19717
    30.     run http://localhost:44821/Build/WebGL.framework.js:19732
    31.     runCaller http://localhost:44821/Build/WebGL.framework.js:19637
    32.     removeRunDependency http://localhost:44821/Build/WebGL.framework.js:1718
    33.     unityFileSystemInit http://localhost:44821/Build/WebGL.framework.js:143
    34.     doCallback http://localhost:44821/Build/WebGL.framework.js:6772
    35.     done http://localhost:44821/Build/WebGL.framework.js:6784
    36.     oncomplete http://localhost:44821/Build/WebGL.framework.js:6452
    37.     (Async: EventHandlerNonNull)
    38.     reconcile http://localhost:44821/Build/WebGL.framework.js:6450
    39.     syncfs http://localhost:44821/Build/WebGL.framework.js:6220
    40.     <anonymous> http://localhost:44821/Build/WebGL.framework.js:6318
    41.     (Async: EventHandlerNonNull)
    42.     getRemoteSet http://localhost:44821/Build/WebGL.framework.js:6314
    43.     onsuccess http://localhost:44821/Build/WebGL.framework.js:6260
    44.     (Async: EventHandlerNonNull)
    45.     getDB http://localhost:44821/Build/WebGL.framework.js:6255
    46.     getRemoteSet http://localhost:44821/Build/WebGL.framework.js:6301
    47.     syncfs http://localhost:44821/Build/WebGL.framework.js:6214
    48.     getLocalSet http://localhost:44821/Build/WebGL.framework.js:6297
    49.     syncfs http://localhost:44821/Build/WebGL.framework.js:6211
    50.     syncfs http://localhost:44821/Build/WebGL.framework.js:6793
    51.     syncfs http://localhost:44821/Build/WebGL.framework.js:6789
    52.     unityFileSystemInit http://localhost:44821/Build/WebGL.framework.js:140
    53.     unityFramework http://localhost:44821/Build/WebGL.framework.js:146
    54.     callRuntimeCallbacks http://localhost:44821/Build/WebGL.framework.js:1997
    55.     preRun http://localhost:44821/Build/WebGL.framework.js:1567
    56.     run http://localhost:44821/Build/WebGL.framework.js:19694
    57.     runCaller http://localhost:44821/Build/WebGL.framework.js:19637
    58.     removeRunDependency http://localhost:44821/Build/WebGL.framework.js:1718
    59.     receiveInstance http://localhost:44821/Build/WebGL.framework.js:1886
    60.     receiveInstantiationResult http://localhost:44821/Build/WebGL.framework.js:1904
    61.     (Async: promise callback)
    62.     unityFramework http://localhost:44821/Build/WebGL.framework.js:1938
    63.     (Async: promise callback)
    64.     instantiateAsync http://localhost:44821/Build/WebGL.framework.js:1930
    65.     createWasm http://localhost:44821/Build/WebGL.framework.js:1968
    66.     unityFramework http://localhost:44821/Build/WebGL.framework.js:16778
    67.     loadBuild http://localhost:44821/Build/WebGL.loader.js:1215
    68.     (Async: promise callback)
    69.     loadBuild http://localhost:44821/Build/WebGL.loader.js:1214
    70.     createUnityInstance http://localhost:44821/Build/WebGL.loader.js:1265
    71.     createUnityInstance http://localhost:44821/Build/WebGL.loader.js:1243
    72.     onload http://localhost:44821/:106
    73.     (Async: EventHandlerNonNull)
    74.     <anonymous> http://localhost:44821/:105
    75.