Mixture icon indicating copy to clipboard operation
Mixture copied to clipboard

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

Open TomasKiniulis opened this issue 2 years ago • 0 comments

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:

  • OS: Windows
  • Unity Version: 2022.2.0a9
  • Mixture Version [0.4.0]

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.

TomasKiniulis avatar Mar 25 '22 10:03 TomasKiniulis