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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Resolution Note (fix version 1.1.0):
Fixed in 1.1.0 available for 2018.4 and up