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
- Shader warnings appear when Painting Trees on Terrain using Terrain Sample Assets
- Environment Samples count resets to 2048 when entering a higher number
- GameObject cannot be disabled when an Animator references an Animation Clip containing the GameObject's "IsActive" property
- Console errors are thrown when resolving Scene view shortcut conflicts with "Rebind to selected command" checked
- Spots of bad lighting appear on assets when the lighting is generated in a Scene
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.