Search Issue Tracker

Fixed

Fixed in 1.1.0-exp.1 - Entities

Votes

0

Found in [Package]

1.1.X - Entities

Issue ID

ECSB-102

Regression

No

[DOTS]Crash on System.Runtime.InteropServices.GCHandle:Free when setting a GO to static in a SubScene

Package: Entity Component System (ECS)

-

Reproduction steps:
1. Open the user’s attached project
2. Open "phys" scene
3. In the Hierarchy select and open “New Sub Scene”
4. Enter Play mode
5. Mark “Cube” object in SubScene as static

Expected result: GameObject becomes static
Actual result: Editor crashes

Reproducible with: 1.0.0-exp.8 (2022.2.0b8)
Could not test with: 0.51.1-preview.21, 0.17.0-preview.42 - couldn’t downgrade (Library/PackageCache/com.unity.collections@2.1.0-exp.4/Unity.Collections/CollectionHelper.cs(229,31): error CS0117: 'UnsafeUtility' does not contain a definition for 'IsNativeContainerType')

Reproducible on: macOS Monterey 12.6 (M1 Max)
Not reproducible on: Windows 10

Firs few lines of Stack trace:
#0  0x00000325c9c888 in  System.Runtime.InteropServices.GCHandle:Free () [\{0x151e084d8} + 0x28]  (0x325c9c860 0x325c9c8f0) [0x136f02a80 - Unity Child Domain]
#1  0x000003436ada64 in  Unity.Entities.EntityCommandBuffer:CleanupManaged (Unity.Entities.EntityCommandBufferChain*) [\{0x150175428} + 0x24] [/Users/i.mikutaviciute/Downloads/IN-18105_HS Core Test Project w DOTS Upgrade/Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/EntityCommandBuffer.cs :: 1734u] (0x3436ada40 0x3436ada98) [0x136f02a80 - Unity Child Domain]
#2  0x000003436ad6c8 in  Unity.Entities.EntityCommandBuffer:FreeChain (Unity.Entities.EntityCommandBufferChain*,Unity.Entities.PlaybackPolicy,bool) [\{0x153ad25f0} + 0x40] [/Users/i.mikutaviciute/Downloads/IN-18105_HS Core Test Project w DOTS Upgrade/Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/EntityCommandBuffer.cs :: 1682u] (0x3436ad688 0x3436ad8a0) [0x136f02a80 - Unity Child Domain]
#3  0x000003436ad478 in  Unity.Entities.EntityCommandBuffer:Dispose () [\{0x32da3c4d0} + 0xa8] [/Users/i.mikutaviciute/Downloads/IN-18105_HS Core Test Project w DOTS Upgrade/Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/EntityCommandBuffer.cs :: 1656u] (0x3436ad3d0 0x3436ad538) [0x136f02a80 - Unity Child Domain]

  1. Resolution Note (fix version 1.1.0-exp.1 - Entities):

    This was fixed in 1.1.0 entities.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.