Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Nested DataDictionary inside a DataList are prone to crash when reloading script assemblies (Compiling/Going into Playmode) #160

Open
KyrowoVRC opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KyrowoVRC
Copy link

Describe the bug in detail:
I'm declaring a DataList and it's first and only entry is a DataDictionary. Whenever I go into playmode or compile it's prone to crashing. It crashes unity around 90% of the time.

Provide steps/code to reproduce the bug:
New Project with VRChat SDK - Worlds 3.5.2
My code snippet:

    private DataList _playerlist = new DataList() {
        new DataDictionary()
            {
                {"Name", "PlayerDefaultName"},
                {"Lives",3},
                {"Score",0}
            }
    };

Expected behavior:
Not crash unity most of the time and compile properly.

Additional Information:
crash.dmp
Editor.log

@KyrowoVRC KyrowoVRC added the bug Something isn't working label Apr 1, 2024
@xantoz-vrc
Copy link

xantoz-vrc commented Jun 27, 2024

I'm seeing this too.

I had to change over to using JSON TextAssets for my project which is a lot less convenient than writing the data inline, no compile-time syntax checking, doesn't let me use consts declared in the code, nor insert any type boxable by DataToken; all numbers become Doubles and no ability to insert Objects.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants