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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
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.