Search Issue Tracker

Fixed

Fixed in 1.11.1, 7000.0.0

Votes

0

Found in [Package]

7000.0.0

Issue ID

ISXB-606

Regression

No

Crash on UnityEngine.InputSystem.Utilities.MemoryHelpers:ReadSingleBit when running Test Runner tests a few times when there are null reference exceptions

Package: Input System

-

Reproduction steps:
1. Open the attached project “TestCrash”
2. In the Test Runner Window press Run All
3. Repeat 2nd step until the Editor crashes (usually takes about 3 times)

Expected result: Tests are executed
Actual result: Editor crashes

Reproducible with: 1.5.0 (2023.2.0a8), 1.6.3 (2021.3.29f1, 2022.3.7f1, 2023.1.8f1, 2023.2.0b4)

Reproducible on: MacOS Ventura 13.1 (M1 Max and Intel)
Not reproducible on: Windows 10

First lines of stack trace:
#0 0x000002fd12d9c4 in UnityEngine.InputSystem.Utilities.MemoryHelpers:ReadSingleBit (void*,uint) [

{0x2dda1ebe8}

+ 0x144] [./Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Utilities/MemoryHelpers.cs :: 70u] (0x2fd12d880 0x2fd12da44) [0x12d782a80 - Unity Child Domain]
#1 0x000002fd12c3fc in UnityEngine.InputSystem.LowLevel.InputStateBlock:ReadFloat (void*) [

{0x2dda1eba8}

+ 0x474] [./Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/State/InputStateBlock.cs :: 362u] (0x2fd12bf88 0x2fd12d3ac) [0x12d782a80 - Unity Child Domain]
#2 0x000002fd12be00 in UnityEngine.InputSystem.Controls.AxisControl:ReadUnprocessedValueFromState (void*) [

{0x15e3a2360}

+ 0x138] [./Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Controls/AxisControl.cs :: 237u] (0x2fd12bcc8 0x2fd12bed4) [0x12d782a80 - Unity Child Domain]
#3 0x000002fd12bbb0 in UnityEngine.InputSystem.InputControl{{1<single>:ReadValueFromState (void*) [

{0x600008d276c0}

+ 0x190] [./Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Controls/InputControl.cs :: 1047u] (0x2fd12ba20 0x2fd12bc44) [0x12d782a80 - Unity Child Domain] #4 0x000002fd12b94c in UnityEngine.InputSystem.InputControl}}1<single>:ReadValue () [

{0x600008d25680}

+ 0x10c] [./Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Controls/InputControl.cs :: 1009u] (0x2fd12b840 0x2fd12b9bc) [0x12d782a80 - Unity Child Domain]

  1. Resolution Note (fix version 7000.0.0):

    FIX: Fixed potential crash on Mac when using stale references to deleted InputDevice objects ISXB-606.

  2. Resolution Note (fix version 1.11.1):

    Fixed in upcoming Input System version

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.