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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Discussion using Newtonsoft.Json.Linq; Works on Editor but crashes on Build

Discussion in 'Windows' started by vagelis199, Feb 8, 2023.

  1. vagelis199

    vagelis199

    Joined:
    Jul 27, 2012
    Posts:
    148
    I'm using the build-in Newtonsoft.json on Unity LTS 2021.3.
    My code works on Editor without issues, but crashes when running the build.
    Code (CSharp):
    1.  ERROR: SymGetSymFromAddr64, GetLastError: ' ' (Address: 00007FFA42214068)
    2. 0x00007FFA42214068 (UnityPlayer) (function-name not available)
    My Code that might cause the crash

    Code (CSharp):
    1. dynamic jsonparse = JObject.Parse(jsonData);
    2.  
    3.         jsonparse.content_descriptors[0].name;
    4.         string game_name = jsonparse.title_name;
    5.  
    I'm not 100% sure if the above part is the issue, but it probably is something related with JSON since it happens when I press the button which triggers the above code and some more
     
  2. vagelis199

    vagelis199

    Joined:
    Jul 27, 2012
    Posts:
    148