alelievr / Mixture

Mixture is a powerful node-based tool crafted in unity to generate all kinds of textures in realtime
https://trello.com/b/2JiH2Vsp/mixture
MIT License
1.22k stars 129 forks source link

[BUG] Editor crash when Texture Shape is set to 2D Array #46

Open TomasKiniulis opened 2 years ago

TomasKiniulis commented 2 years ago

What happened? Silent editor crash occurs with the following: StackOverflowException: The requested operation caused a stack overflow. at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 at Mixture.MixtureEditor.RequiresConstantRepaint () [0x00000] in D:\Github\hdrp-scenario-test-ut\scenario-test-ut\Packages\com.alelievr.mixture\Editor\Graph\MixtureInspector.cs:198 ...

To Reproduce Steps to reproduce the behavior:

  1. Create a new project with mixture package added
  2. Import a texture
  3. Set size to 4k (might still repro without 4k)
  4. Select Apply
  5. Observe the editor crash

Setup:

Additional informations Exact texture with repro: https://drive.google.com/file/d/19SNbw2PQmnCbxsFvLuehBrM2d-V0tEGX/view?usp=sharing

Note that after editor is reopened and once texture is selected editor crashes again.