-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't crash when printing a recursive structure #2882
Conversation
@thexa4 I just tested this and still got the stack overflow with this example program:
That crashed KSP instantly, with this:
|
Ah, sorry, it seems I only tested the single depth recursion. Will fix. |
While looking at #2894 I noticed that this incorrectly marks all strings as recursive. Fix is in progress. |
I'm trying to test the PR, see if it resolves my issue. It does not.
|
Thanks for testing it, I'll try to reproduce and fix it somewhere this week / next weekend. |
Thank you for working on the patch. I looked at the diff, that's pretty much what I would've tried but have no experience with C#. With the insight I've gained from you I was able to make my code work, after eliminating all attempts to print and run haskey on my 'object'. Thanks again and let me know if there's more I can do to help. |
Closed in favor of #2910 |
Fixes #1598
Will now print
"...recurse..."
for theself
value instead of crashing KSP. Other serializers will end with an exception instead of a crash.