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

IL2CPP

-

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>

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

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.