Search Issue Tracker
Won't Fix
Won't Fix in 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
- "Custom Function" Node "Input" type changes do not immediately show mistmatch errors when set to an incompatible type in Shader Graph
- My Assets list is populated with Asset Packages when setting how many Packages to display before clicking the Load button
- Hub shows 6.0 as Latest LTS when opening a project after deleting its 6.3 Editor version
- Localization Group Rules bypasses Locale logic when SharedGroup asset provided
- UI Toolkit World UI Text Field unfocuses immediately when clicking on it using XR Controller
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.
Resolution Note (2023.1.X):
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.