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

Other Package Manager JSON Error

Discussion in 'Package Manager' started by Happy3001, Jul 21, 2023.

  1. Happy3001

    Happy3001

    Joined:
    Jul 12, 2023
    Posts:
    5
    I am not sure if this is a bug or not but I have not been able to install any packages across multiple versions of Unity. This error occurs every time and it made it difficult to even install the editor.

    [Package Manager Window] Error adding package: <Package_Name_Here>
    Converting circular structure to JSON
    --> starting at object with constructor 'Error'
    --- property 'error' closes the circle
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

    If anyone knows why this is occurring, or a solution, I would be interested to know since I have reinstalled Unity multiple times to try and fix this with no success. Logs are attached if there are any questions.
     

    Attached Files:

  2. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    Hi @Happy3001,

    I'm sorry to hear you are running into this error. I understand what it means but I don't see what could cause it.

    Does this happen in a new project? Can you try increasing the Package Manager Log Level to Debug (Preferences > General > Package Manager Log Level), reproducing the error, then sharing the upm.log file? (No need to share the new Editor.log file, it would not contain extra information.)
     
  3. Happy3001

    Happy3001

    Joined:
    Jul 12, 2023
    Posts:
    5
    Yes. Here Is the Debug upm file when I recreated the issue. It seems like it's some sort of issue with writing to the cache file but readonly is disabled and I am running admin user so Im not sure why this is happening. If I manually import the packages to the cache they seem to work but I still can't install new ones using upm.
     

    Attached Files:

    • upm.txt
      File size:
      9.2 KB
      Views:
      82
  4. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    The log entries "Could not find..." + "Extracting package"... just refer to a cache miss. I don't actually see any error in this upm.log file, there should be at the very least the "project:add-dependency --> 500 (XYZ ms)" log at the end. In fact, the log file seems to be a snapshot in the middle of the operation.
     
  5. jeffdlmco

    jeffdlmco

    Joined:
    Nov 17, 2022
    Posts:
    10
    Try installing the Editor on your C: drive instead of H:
     
  6. Happy3001

    Happy3001

    Joined:
    Jul 12, 2023
    Posts:
    5
    Tried Installing Editor on C: and also tried moving cache folder to H: but the same issue still occurred both ways. As for the missing line, I might have just accidentally removed it. Here is a different log with a similar structure but still not sure what the problem is since there are no obvious errors.
     

    Attached Files:

    • upm.txt
      File size:
      39.5 KB
      Views:
      66
  7. jeffdlmco

    jeffdlmco

    Joined:
    Nov 17, 2022
    Posts:
    10
    Don't use H: at all, as a test. Also, I noticed this as the first line? Just install the Hub and the Unity Editor using all the defaults to the C: drive. Uninstall everything. Reboot. Install using all the defaults.

    H:\\unity\\Unity Zip\\Unity Zip\\Hub\\Editor\\2022.3.5f1...
     
  8. Happy3001

    Happy3001

    Joined:
    Jul 12, 2023
    Posts:
    5
    I reinstalled Unity Editor and Hub on C: with defaults but still get same error. I still rather not use C: anyways since the drive is nearly at capacity.
     
  9. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    Hi @Happy3001,

    Thanks for sharing an updated log file. You're right though, it doesn't say much more. The error you're getting looks like a bug in the UnityPackageManager but I cannot see where it would originate from.

    Using a different drive than C: should not cause any problem, so I would not have expected this to solve the problem, either. Is there anything special about your H: drive? Is it a network share, for instance, or removable storage?
     
  10. Happy3001

    Happy3001

    Joined:
    Jul 12, 2023
    Posts:
    5
    No, It is just a Normal Hard Drive. Everything else on it works perfectly fine so I wouldn't expect it to be a drive issue
     
  11. splendid987

    splendid987

    Joined:
    Jul 30, 2023
    Posts:
    1
    hank you for sharing this information.
     
  12. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    I don't know about any particular workaround that could help you since I have no idea what the root cause could be. We need more information, like additional logging that's not available in the current build. Could you please Submit a bug report, so we can follow up and provide support more efficiently?