Package Manager JSON Error

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.

9162650–1274861–Editor.txt (22.8 KB)
9162650–1274864–upm.txt (6.29 KB)

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.)

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.

9168338–1276121–upm.txt (9.23 KB)

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.

Try installing the Editor on your C: drive instead of H:

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.

9168833–1276250–upm.txt (39.5 KB)

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…

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.

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?

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

hank you for sharing this information.

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?

Is this issue still happening with you guys or has it been solved? I’m asking because i’m now experiencing this issue and i have zero idea on how to get past it.