How to reproduce:
1. Open the attached “IN-138738” project
2. Navigate to File > Build And Run
3. Observe the crash
Reproducible with: 6000.4.0a1, 6000.4.2f1, 6000.5.0b3, 6000.6.0a2
Could not test with: 6000.0.72f1, 6000.3.0a6, 6000.3.13f1, (could not solve errors from downgrading)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- The crash does not occur after removing the 2D Feature set
- The crash only occurs when building the “Menu“ and “Hubby World“ scenes
First few lines of the stack trace:
0x000001FE4DC28372 (Mono JIT Code) [.\Library\PackageCache\com.unity.2d.tilemap.extras@66df903b3633\Runtime\Tiles\RuleTile\RuleTile.cs:577] UnityEngine.RuleTile:RuleMatches (UnityEngine.RuleTile/TilingRule,UnityEngine.Vector3Int,UnityEngine.Tilemaps.ITilemap,int,bool)
0x000001FE4DC25BBB (Mono JIT Code) [.\Library\PackageCache\com.unity.2d.tilemap.extras@66df903b3633\Runtime\Tiles\RuleTile\RuleTile.cs:403] UnityEngine.RuleTile:RuleMatches (UnityEngine.RuleTile/TilingRule,UnityEngine.Vector3Int,UnityEngine.Tilemaps.ITilemap,UnityEngine.Matrix4x4&)
0x000001FE4DC24995 (Mono JIT Code) [.\Library\PackageCache\com.unity.2d.tilemap.extras@66df903b3633\Runtime\Tiles\RuleTile\RuleTile.cs:213] UnityEngine.RuleTile:GetTileData (UnityEngine.Vector3Int,UnityEngine.Tilemaps.ITilemap,UnityEngine.Tilemaps.TileData&)
0x000001FE4DC254E0 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_this__Vector3Int_object_intptr& (object,intptr,intptr,intptr)
0x00007FF838B26C0E (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3445] mono_jit_runtime_invoke