Search Issue Tracker
Fixed in 1.1.2
Votes
0
Found in [Package]
preview.11 - 0.2.4
Issue ID
1170768
Regression
No
[Burst] "Unexpected error while processing instruction" error when burst compiling a memory block change
Steps to reproduce:
1. Open user-supplied project
2. Enter Play mode
Expected: no errors in the Console window
Actual: errors appear in the Console window
Reproduced in: 2019.1.10f1, 2019.2.0b10, 2019.3.0a10
Not reproduced in: 2017.4.30f1*, 2018.4.5f1*
Full error:
*Can't run due to compile errors
\...\Assets\MemoryBlock.cs(128,17): error: Unexpected error while processing instruction `IL_0021: ldsfld Containers.Unsafe.NativeSlice`1<T> MemoryUtils.Unsafe.MemoryBlock`1<T>::NULL`. Reason: Object reference not set to an instance of an object
at MemoryUtils.Unsafe.MemoryBlock`1<System.Int32>.GetData(MemoryUtils.Unsafe.MemoryBlock`1<int>* this, ref int size, ref Containers.Unsafe.NativeSlice`1<int> slice) (at D:\Downloads\case_1170768-burst_block\Assets\MemoryBlock.cs:128)
at Test.BJob.Execute(Test.BJob* this) (at D:\Downloads\case_1170768-burst_block\Assets\Test.cs:19)
at Unity.Jobs.IJobExtensions.JobStruct`1<Test.BJob>.Execute(ref Test.BJob data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex)
Internal compiler exception: System.NullReferenceException: Object reference not set to an instance of an object
at Burst.Compiler.IL.ILCompiler.Ldsfld (Burst.Compiler.IL.Syntax.ILInstruction inst) [0x00067] in <2c9ff9fb581642acaeb86844246ad423>:0
at Burst.Compiler.IL.ILCompiler.CompileInternal (Burst.Compiler.IL.Syntax.ILInstruction inst) [0x004f4] in <2c9ff9fb581642acaeb86844246ad423>:0
at Burst.Compiler.IL.ILCompiler.Compile (Burst.Compiler.IL.Syntax.ILInstruction inst) [0x00030] in <2c9ff9fb581642acaeb86844246ad423>:0
at Burst.Compiler.IL.ILCompiler.VisitImpl (Burst.Compiler.IL.Syntax.ILInstruction inst) [0x00066] in <2c9ff9fb581642acaeb86844246ad423>:0
at Burst.Compiler.IL.ILVisitor.Visit (Burst.Compiler.IL.Syntax.ILInstruction instruction) [0x00007] in <2c9ff9fb581642acaeb86844246ad423>:0
While compiling job: System.Void Unity.Jobs.IJobExtensions/JobStruct`1<Test/BJob>::Execute(T&,System.IntPtr,System.IntPtr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,System.Int32)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Only the left screen is rendering when using Render Graph Fullscreen Blit in Meta Quest 2
- Context menu with the "Revert" option doesn't appear when pressing the right mouse button on a "Vector2" or "Vector3" property in the Inspector of a custom shader
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
Add comment