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
- Spring Joint shows only one anchor gizmo in Scene view when "Auto Configure Connected Anchor" is enabled
- Crash on _platform_memmove after entering large value in Graphics settings Preloaded Shaders field
- Disproportionally large impact on CPU frame time when writing to a rendering entity's LocalToWorld
- "Constant Force" Component numeric fields drift out of view while entering a really big value in the Inspector
- Scene view camera speed pop-up appears empty or cut off when Scene view is very narrow
Add comment