Search Unity

Resolved ArgumentNullException only occurs when building WebGL

Discussion in 'Web' started by k-nakano, May 23, 2023.

  1. k-nakano

    k-nakano

    Joined:
    Dec 9, 2019
    Posts:
    3
    Environment
    • Unity 2021.3.21f1

    Error details

    Error message
    Environment where the error occurs

    • WebGL build
    Environments where the error does not occur
    • Unity Editor
    • Android build
    • iOS build
    • Windows(exe) build
    Function causing the error
    archive.framework.js > _JS_Log_Dump(ptr, type)
    Caller of _JS_Log_Dump
    Called from WebAssembly (archive.wasm)
    What I want to know
    • How to resolve the issue
    • I would like to know the location in Unity Editor where I should fix to solve this issue.
     
  2. k-nakano

    k-nakano

    Joined:
    Dec 9, 2019
    Posts:
    3
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,882
    Try building with full exception support (see Player settings) to get more debug info, specifically the call stack:
    upload_2023-5-23_10-16-27.png

    When you have the call stack, check if this is coming from or going through any of your scripts and if so, analyze those calls and parameters.
     
    k-nakano likes this.
  4. k-nakano

    k-nakano

    Joined:
    Dec 9, 2019
    Posts:
    3
    Thank you very much.

    I got the log and found the problem.

    It seems that Plugin was doing something wrong.