Search Issue Tracker
Won't Fix
Unknown (hidden) 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X
Votes
0
Found in
2020.3.40f1
2021.3.10f1
2022.1.17f1
2022.2.0b8
2023.1.0a10
Issue ID
UUM-15358
Regression
No
Getting the current process name returns Null when building with IL2CPP
How to reproduce:
1. Open user-attached project “2022.2 Beta Project”
2. Build the project with the IL2CPP Scripting Backend
3. Observe the Player.log
Expected result: The process name is written in the Player.log
Actual result: Null Exception error message
Reproducible with: 2020.3.40f1, 2021.3.10f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a10
Reproduced on: Windows 11 Pro
Note: Not reproduced with Mono Scripting Backend and in Editor
Full error message:
ArgumentNullException: Collection cannot be null.
Parameter name: c
at System.Collections.ArrayList.InsertRange (System.Int32 index, System.Collections.ICollection c) \[0x00000] in <00000000000000000000000000000000>:0
at System.Diagnostics.Process.get_Modules () \[0x00000] in <00000000000000000000000000000000>:0
at System.Diagnostics.Process.get_MainModule () \[0x00000] in <00000000000000000000000000000000>:0
at B.Init () \[0x00000] in <00000000000000000000000000000000>:0
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [RenderGraph] [CameraStacking] Passes are failing when CameraStacking and RG are enabled
- Physics and Raycast have different behavior when enum is exposed in the Editor
- TextField's text is mixed up and overlapping when "Noto Sans-Display" font is used
- TutorialManager Warnings are thrown when creating Test Track, LEGO or 2D Platform microgame template projects
- Incorrect ScrollToItem behavior when called on a deattached ListView
Resolution Note:
The Process API is not supported by IL2CPP, so this code won't work as expected. We do plan to improve the error message in this case, clearly throwing a NotSupportedException.