Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4.0f1
2019.4.19f1
2020.2
2021.1
2021.2
Issue ID
1317164
Regression
Yes
'PPtr cast failed when dereferencing! Casting from ScriptMapper to Texture!' when baking a second Reflection Probe in the Scene
Jira: https://jira.unity3d.com/browse/GFXGI-500
Reproduction steps:
1. Create an empty project
2. In the Hierarchy window, create a new Reflection Probe
3. In the Inspector window, select Bake
4. In the Hierarchy window, create a new Reflection Probe again
5. In the Inspector window, select Bake
6. Observe the Console window
Expected result: There are no errors and the Reflection Probe is baked
Actual result: "PPtr cast failed when dereferencing! Casting from ScriptMapper to Texture!" error appears
Reproducible with: 2019.4.0f1, 2019.4.20f1, 2020.2.7f1, 2021.1.0b9, 2021.2.0a7
Not reproducible with: 2018.4.32f1, 2019.3.16f1
The error is different with different Unity versions:
1. With 2019.4.20f1 it is "PPtr cast failed when dereferencing! Casting from ScriptMapper to Texture!"
2. With 2020.2.0a1 - 2021.2.a7 it is "PPtr it is cast failed when dereferencing! Casting from Shader to Texture!"
Comments (1)
-
nathan2019spence
Mar 21, 2023 02:58
Have the error in Unity 2022.2
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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.16f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.16f1