Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2019.1.0a1
2019.1.0a9
2019.2.0a1
Issue ID
1139667
Regression
No
[IL2CPP] ETW events are not triggered by EventSource class
Steps to reproduce:
1. Download 1139667_repro.zip
2. Check if "Test" Scene is added to Build Scene list
3. Build for Standalone player with IL2CPP backend
4. Start recording TraceLogging Events as described in: https://docs.microsoft.com/en-us/windows/desktop/tracelogging/tracelogging-record-and-display-tracelogging-events
5. Launch player
6. Stop recording TraceLogging Events
7. View TraceLogging data in Windows Performance Analyzer
Results: Event isn't logged by Windows Performance Recorder.
Reproduced with: 2019.2.0a10, 2019.1.0b10, 2018.3.12f1, 2017.4.24f1
Note:
-Tested with UWP and Standalone platforms
- Not reproducible with .NET and mono backends
- Reproducible with x64 and x86
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
- Memory access out of bounds error is thrown when launching Web builds with C/C++ Multithreading enabled
- Warning text is not aligned in Project Settings > In-App Purchasing tab
- "In-App Purchases" name mismatch in Project Settings window and Package Manager Window
- An opaque Texture has semi-transparent edges when packed in a Sprite Atlas
- Player builds with android:installLocation="0" when Install Location is set to "Automatic"
Resolution Note:
The plugin the project is trying to use is not AOT friendly and therefore cannot be supported by IL2CPP. The EventSource initialization function is trying to marshal a delegate that points to an instance method to native code and we can only support static methods in this case. A possible workaround would be to PInvoke to a native method that uses the native API for the windows event tracing system.