Search Issue Tracker
Fixed in 4.6.8
Votes
0
Found in
5.1.1p4
Issue ID
712713
Regression
Yes
[IL2CPP] No ahead of time (AOT) code was generated error for Enumerator
To Reproduce:
1. Open the attached project in 5.1 and attach IL2CPPBugs.cs to any gameobject.
2. Deploy to device:
"ExecutionEngineException: Attempting to call method 'EffectTypeEnum[]::System.Collections.Generic.IEnumerable`1.GetEnumerator' for which no ahead of time (AOT) code was generated.
at BattleEffectTypeDO.GetAllTypes () [0x00000] in <filename unknown>:0
at IL2CPPBugs.Start () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
"
is thrown.
Not reproducible on 5.2.0b3 (7277f6f3686a)
Comments (3)
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
- Scene Views breaks and errors are spammed in the Console when the Game view is shrunk vertically to the minimum, and the Aspect Ratio is 16:9 or 16:10
- Slider Fill Area disappears after undoing “Set Native Size” change
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
- Asset Bundles non-deterministic behavior with CRCs and hash when a video has Transcoding enabled and Sprite Atlas has an override option enabled
shubhamswaraj2021
Aug 18, 2020 16:09
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
___Petr___
May 23, 2016 08:44
ConnectSceneNGUIController.RegimGame is enum
___Petr___
May 23, 2016 08:43
Looks like similiar bug appears in 5.3.4p2. Will try to reproduce and report
ExecutionEngineException: Attempting to call method 'ConnectSceneNGUIController+RegimGame[]::System.Collections.Generic.IEnumerable`1.GetEnumerator' for which no ahead of time (AOT) code was generated.
at System.Collections.Generic.HashSet`1[T]..ctor (IEnumerable`1 collection, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateExceptIterator>c__Iterator4`1[TSource].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[T].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[TSource] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at OUR_APPS_METHOD (System.Collections.Generic.Dictionary`2 q, Boolean restore, System.String questId) [0x00000] in <filename unknown>:0
...