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

IL2CPP

-

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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.