Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.40f1
2022.3.35f1
6000.0.8f1
6000.1.0a7
7000.0.0a1
Issue ID
UUM-74651
Regression
No
Crash on Object::GetCachedScriptingObject when entering Play Mode
Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/CrashKonijn/GOAP/Demos/Complex/Scenes/ComplexDemoScene.unity“ scene
3. Enter Play Mode
4. Observe the crash
Reproducible with: 2021.3.40f1, 2022.3.35f1, 6000.0.8f1
Reproduced on: Windows 10
Not reproducible on: No other environment tested
Notes:
1. Not reproducible when disabling the “ItemCollection“ GameObject in the Hierarchy window
2. Not reproducible in Player
First few lines of the stack trace:
0x00007FFAFD224315 (Unity) Object::GetCachedScriptingObject
0x00007FFAFDF30F02 (Unity) Scripting::ScriptingWrapperFor
0x00007FFAFD128E7E (Unity) Component_Get_Custom_PropGameObject
0x0000026DFFAE412A (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Component:get_gameObject_Injected (intptr)
0x0000026DFFAE3EEB (Mono JIT Code) UnityEngine.Component:get_gameObject ()
0x0000026E8264100B (Mono JIT Code) Demos.Complex.Classes.Items.Apple:Demos.Complex.Interfaces.IHoldable.get_gameObject ()
Comments (1)
-
CrashKonijn
Jul 02, 2024 14:19
Hi there!
This does seem like a unity issue.
Are you getting this on a clean 'install' of my package? Any specific version you're using?
(I can't see the attached files).Thanks!
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
- “Baking ReferencedPrefabAuthoring!” errors are thrown when creating or deleting unrelated GameObjects in a SubScene that references prefabs
- Cannot scroll down to see all UI Builder Inspector items after content is resized
- Crash on SceneTracker::SetObjectDirty when entering Play mode on a project with specific Assets
- UI Toolkit's TextInput element does not inherit layout parameters from the TextField element when TextField.multiline is true
- The TileMap grid in the Tile Palette is not visible when Screen Space Ambient Occlusion is enabled
Resolution Note:
'Something' gets corrupted here and even triggering script compilation (with any changes) fixes it. As a workaround for the customer, we can suggest deleting Library folder.