Skip to content

Conversation

AhmadMansy
Copy link

Fixes #98

This PR resolves a stack overflow that freezes Unity when the Project Auditor window is opened.

The issue was that the auto-discovery was registering Project Auditor's own DescriptorJsonConverter, creating an infinite recursion loop when it tried to serialize its own data.

To fix this, I've added an exclusion mechanism in ConverterGrouping.cs to skip registering specific converters by type or by namespace. I've added default exclusions for Unity.ProjectAuditor.Editor.Core.DescriptorJsonConverter and the entire Unity.ProjectAuditor namespace, which prevents the crash.

AhmadMansy and others added 2 commits October 1, 2025 12:48
Added an exclusion mechanism to `ConverterGrouping.cs` that prevents problematic converters from being automatically registered
…-Project-Auditor-package

Project Auditor Stack Overflow Fix
@applejag
Copy link
Owner

applejag commented Oct 1, 2025

Thanks for the contribution! But I want to note that I will not merge this because the CI/CD system is not working and I don't have time nor energy to debug it. So I cannot run the tests and I cannot create a new release.

@AhmadMansy
Copy link
Author

Thanks for the contribution! But I want to note that I will not merge this because the CI/CD system is not working and I don't have time nor energy to debug it. So I cannot run the tests and I cannot create a new release.

No problem, I also left a comment in the issue with a link for the fork, anyone can use it as git or manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Stack overflow when opening Project Auditor
2 participants