Search Issue Tracker
Fixed
Fixed in 2022.3.9f1, 2023.1.12f1, 2023.2.0b9, 2023.3.0a3, 7000.0.0a1
Votes
0
Found in
2022.3.7f1
2023.1.8f1
2023.2.0b4
2023.3.0a2
7000.0.0a1
Issue ID
UUM-45483
Regression
Yes
"Top level scope allocation is permitted only on the main thread." error thrown when using Allocator.Temp
Reproduction steps:
1. Open the attached project "NativeAllocationIssue-2023.1"
2. Enter Play mode
Expected result: no errors in the Console
Actual result: "Top level scope allocation is permitted only on the main thread." and "ArgumentException: Could not allocate native memory." errors in the Console
Reproducible with: 2023.2.0b1, 2022.3.7f1, 2023.1.8f1, 2023.2.0b4
Not reproducible with: 2023.2.0a23
Could not test with: 2021.3.29f1 (compilation errors)
Reproducible on: macOS 13.4.1 (Intel), Windows 10 (user’s)
Note: not reproducible when using Allocator.Persistent or Allocator.TempJob
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment