Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4.5f1
2020.2
Issue ID
1267967
Regression
No
Crash on x86 architecture with a native access violation on _initPointerInputDetector
How to reproduce:
1. Open the attached "IL2CPPIssueRepro.zip" project
2. Open the Build Settings Window -> Set the Architecture to x86
3. Build and Run
Expected result: The project builds successfully
Actual result: The project crashes on a native access violation when _initPointerInputDetector tries to access the members of the WebViewPrefab instance
Reproducible with: 2018.4.26f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0b1
Notes:
- Only IL2CPP backend is affected
- The issue is only reproducible on Standalone and UWP with x86 architecture
- The issue does not appear when using x86_64 architecture
- WebViewPrefab.cs executes WebViewPrefab._initPointerInputDetector from WebViewPrefab._initWebViewIfReady, which itself is called from an Action<T>
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
- Performing Undo Redo for Convert to Property action creates a ghost Node
- Crash on GameObject::IsActiveIgnoreImplicitPrefab when opening a specific project
- Default Input Action Asset creates unsaved changes when clicking on Button actions
- Crash on CleanupAfterLoad() when exiting Play Mode during Async Scene load/unload Events
- Can't set Visual Element height in UI Builder
Resolution Note:
The native library in this case assume the managed method it is calling uses the __cdecl calling convention. Instead, it should use the __stdcall calling convention.