Search Issue Tracker
Fixed
Fixed in 6000.0.60f1, 6000.2.9f1, 6000.3.0b6, 6000.4.0a2
Votes
0
Found in
6000.0.57f1
6000.2.4f1
6000.3.0b1
6000.4.0a1
Issue ID
UUM-117371
Regression
No
Crash on UnityEngine.UI.RawImage:OnPopulateMesh when playing Raw Image Texture animation with Sprite keyframes
How to reproduce:
1. Open the attached “IN-108884.zip” project
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the crash
OR
1. Create a new project using the 2D URP template
2. Import any image
3. Select the image file in the Project window
4. In the image Import Settings (Inspector), set Texture Type to "Sprite" and Sprite Mode to "Multiple"
4. Open the Sprite Editor (same window)
5. Slice the Sprite so that it is split into at least 2 pieces (by cell count, for example)
6. Apply the changes and close the Sprite Editor
7. In the Project Window, expand the Sprite Sheet (arrow next to the imported Sprite)
8. Select at least 2 sheet pieces and drag them into the Hierarchy
9. Create a new animation when prompted
10. In the Hierarchy, create a new Raw Image Game Object (Left click > UI > Raw Image)
11. Add an Animator Component to the Raw Image Game Object
12. For the Raw Image Animator Component, set the controller as the animation created in Step 9
13. In the Project Window, double click to open the animation created in Step 9
14. Ensure the Raw Image GameObject is selected in the Hierarchy
15. In the Animation window, click on Add Property > Raw Image > Texture
16. Select the keyframes in the Sprite Property (not Texture!) and copy them
17. Paste the keyframes in the Texture property
18. Play the Animation or enter Play Mode
19. Observe the crash
Reproducible in: 2023.1.0a6, 6000.0.57f1, 6000.2.4f1, 6000.3.0b1
Could not test with: 2023.1.0a5
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Note: Cast exception appears in the console when attempting to add sprite keyframes to Raw Image Texture animation in pre-regression versions
Firs few lines of stacktrace:
{noformat}
UnityEngine.UI.RawImage:OnPopulateMesh <0x0030a>
UnityEngine.UI.Graphic:DoMeshGeneration <0x00169>
UnityEngine.UI.Graphic:UpdateGeometry <0x00042>
UnityEngine.UI.Graphic:Rebuild <0x00093>{noformat}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment