Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.29f1
Issue ID
UUM-44020
Regression
No
“System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation” error is thrown when running a deserialization test
Reproduction steps:
1. Open the attached “ASDQWE” project
2. Open the Test Runner Window (Windows > General > Test Runner)
3. Inside the Test Runner Window, select the “Run All Tests” Button
Expected result: All tests pass
Actual result: “DeserializationTestPassOnEditorFailOnIL2CPP” test fails with “System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation” error
Reproducible with: 2021.3.29f1, 2022.1.0a14
Not reproducible on: 2022.3.6f1, 2023.1.6f1, 2023.2.0b1
Fixed in: 2022.1.0a15
Reproducible on: Intel macOS 13.4.1
Notes:
* Not reproducible on Mono Scripting Backend or when manually running the “DeserializationTests” test
* The error might be displayed in the Console Window or in the Player
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
- Crash on DynamicHeapAllocator::CreateTLSFBlock when opening a specific project
- Scene flickers when using Mesh Output with SpriteLit Shader in 2D project
- “Cache Management” text is misaligned in Preferences > Package Manager
- [macOS] network permission shows the name of previously closed app when different app requests network access
- Delta value returned by mouse movementsMonitor is different when changing Screen Resolution
Resolution Note:
This is expected behavior for IL2CPP. In Unity 2022 and later, this behavior is changed, and serialization of these types will work correctly.