Skip to content

Commit 32b13c3

Browse files
author
Rene Damm
authored
FIX: StackOverflowException in PlayerInput (#1033, #1039).
1 parent f1aaff9 commit 32b13c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ however, it has to be formatted properly to pass verification tests.
2929
- Removing a callback from actions from the callback itself no longer throws `ArgumentOutOfRangeException` ([case 1192972](https://issuetracker.unity3d.com/issues/input-system-package-argumentoutofrangeexception-error-is-thrown-when-the-callback-is-removed-while-its-being-triggered)).
3030
- "Invalid user" `ArgumentException` when turning the same `PlayerInput` on and off ([case 1198889](https://issuetracker.unity3d.com/issues/input-system-package-argumentexception-invalid-user-error-is-thrown-when-the-callback-disables-game-object-with-playerinput)).
3131
- The list of device requirements for a control scheme in the action editor no longer displays devices with their internal layout name rather than their external display name.
32+
- `StackOverflowException` when `Invoke Unity Events` is selected in `PlayerInput` and it cannot find an action (#1033).
3233

3334
### Added
3435

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,14 +1160,14 @@ private void InitializeActions()
11601160
{
11611161
// We have an action name. Show in message.
11621162
Debug.LogError(
1163-
$"Cannot find action '{actionEvent.actionName}' with ID '{actionEvent.actionId}' in '{actions}",
1163+
$"Cannot find action '{actionEvent.actionName}' with ID '{actionEvent.actionId}' in '{m_Actions}",
11641164
this);
11651165
}
11661166
else
11671167
{
11681168
// We have no action name. Best we have is ID.
11691169
Debug.LogError(
1170-
$"Cannot find action with ID '{actionEvent.actionId}' in '{actions}",
1170+
$"Cannot find action with ID '{actionEvent.actionId}' in '{m_Actions}",
11711171
this);
11721172
}
11731173
}

0 commit comments

Comments
 (0)