Raycast doesn't work in IJobChunk

Doing a raycast in an IJobChunk I get the error:

InvalidOperationException: The native container has been declared as [WriteOnly] in the job, but you are reading from it.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckReadAndThrowNoEarlyOut (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at :0)
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckReadAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at :0)
Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.GetUnsafeReadOnlyPtr[T] (Unity.Collections.NativeArray1[T] nativeArray) (at <dfc62061cb3f4b1bb57c5179a5db6830>:0) Unity.Physics.BoundingVolumeHierarchy..ctor (Unity.Collections.NativeArray1[T] nodes, Unity.Collections.NativeArray`1[T] nodeFilters) (at Library/PackageCache/com.unity.physics@0.2.4-preview/Unity.Physics/Collision/Geometry/BoundingVolumeHierarchy.cs:26)

Putting it into a ComponentSystem solves the problem

Running 2019.3.0b8 btw