Search Issue Tracker
Fixed in 1.1.0
Votes
0
Found in [Package]
1.0.2-preview.1
Issue ID
1316957
Regression
Yes
[Polybrush] KeyNotFoundException thrown in Console when saving the Configuration of a Texture that has the Channel set to UV2
How to reproduce:
1. Open the attached 'case_1316957' project
2. Open the 'Test' Scene
3. In the Project window right-click on the StandardTextureBlend shader and select Create > Material
4. Drag the newly created Material onto the Cube
5. In the top bar menu select Tools > Polybrush > Polybrush Window
6. In the Hierarchy select the Cube
7. In the Polybrush Window click on the 'Paint texture on meshes' button
8. Click on the 'Configure' button located next to the Material dropdown
9. Make sure that the Channel of the _MainTex is set to 'UV2'
10. Press the 'Save' button
11. Observe the Console
Expected result: The configurations get saved, no visible errors present
Actual result: Multiple errors appear in the Console
Reproducible with: Polybrush 1.0.2-preview.1, 1.1.0-pre.1 (2018.4.32f1, 2019.4.21f, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6)
Not reproducible with: Polybrush 1.0.1 (2018.4.32f1, 2019.4.21f, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6)
Notes:
- The following errors get thrown in the Console:
KeyNotFoundException: The given key was not present in the dictionary.
NullReferenceException: Object reference not set to an instance of an object.
- Sometimes after pressing the 'Configure' button the Console fills up with NullReferenceException or ArgumentOutOfRangeException exceptions and the _MainTex configuration section is not displayed
- Sometimes the "KeyNotFoundException: The given key was not present in the dictionary." error gets thrown after pressing the 'Configure' button
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
Resolution Note (fix version 1.1.0):
Fixed in 1.1.0 available for 2018.4 and up