Search Issue Tracker

By Design

Votes

0

Found in

2019.4

2019.4.28f1

2020.3

Issue ID

1378444

Regression

No

[Android][IL2CPP] ExecutionEngineException error message appears in Android Logcat when using IL2CPP Scripting Backend in Build

IL2CPP

-

Reproduction steps:
1. Open the attached Unity project "ErrorBug.zip"
2. Open the "testbed.unity" Scene
3. In the Editor open the Android Logcat window
4. Build and install the application on a device
5. Observe the error message that appears in the Android Logcat window

Expected result: No error appears
Actual result: An error message appear: "ExecutionEngineException: Attempting to call method 'LanguageExt.ListModule+ListEnumerator`1+NewStack[[Rayark.Data, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]::New' for which no ahead of time (AOT) code was generated."

Reproducible with: 2019.4.33f1, 2020.3.23f1
Could not test with: 2021.2.3f1, 2022.1.0a16 (Editor freeze when trying to build project)

Reproduces with these devices:
VLNQA00219 - Samsung Galaxy Note9 USA (SM-N960U), OS: 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno 630
VLNQA00070 - LENOVO PHAB2 Pro (Lenovo PB2-690M), OS: 6.0.1, CPU: Snapdragon 617 MSM8952, GPU: Adreno 510
VLNQA00121 - Samsung Galaxy S9 (SM-G960F), OS: 9.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00006 - Samsung Galaxy S7 (SM-G930F), OS: 8.0.0, CPU: Exynos 8 Octa (8890), GPU: Mali-T880
VLNQA00277 - Asus ROG Phone (ASUS_Z01QD), OS: 9.0.0, CPU: Snapdragon 845 SDM845, GPU: Adreno 630
VLNQA00410 - Galaxy Z Fold3 5G (SM-F926U), OS: 11, CPU: Snapdragon 888, GPU: Adreno 660
VLNQA00404 - Galaxy Z Flip3 5G (SM-F711B), OS: 11, CPU: Snapdragon 888, GPU: Adreno 660
VLNQA00034 - Google Nexus 4 (mako), OS: 5.1.1, CPU: Snapdragon S4 Pro APQ8064, GPU: Adreno 320

Not reproducible with these devices:
VLNQA00147 - Razer Phone (Cheryl), OS: 8.1.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno 540
VLNQA00109 - Xiaomi Mi Note Pro (MI NOTE Pro), OS: 7.0.0, CPU: Snapdragon 810 MSM8994, GPU: Adreno 430

Notes:
- Issue is not reproducible with Mono Scripting Backend

  1. Resolution Note (2022.1.X):

    This is a limitation of IL2CPP. The error message means that IL2CPP could not find the generic code using a value-type generic argument to match this at compile time. There is some information about how to work around this limitation in the general case here:

    https://docs.unity3d.com/Manual/ScriptingRestrictions.html

    This limitation is not present for JIT code generation, so it works with Mono. In Unity 2022.1 and later this limitation has been removed from IL2CPP.

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.