Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2018.3.X
Votes
0
Found in
2018.1.8f1
Issue ID
1096192
Regression
No
[IL2CPP] Project Build process fails due GetObjects function
To reproduce:
1. Download the attached project "il2cpp_gen_bug.zip" and open in Unity
2. Open "SampleScene" scene
3. Go to Edit > Project Settings > Player and set Scripting Backend to IL2CPP
4. Build project on Standalone, iOS or Android
5. Observe that Building process fails with these errors:
L2CPP error for method 'System.Object BugBehaviour::GetObject()' in BugBehaviour.cs:30
Additional information: Sequence contains more than one element
Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --development-mode --dotnetprofile="unityjit" --map-file-parser="/Applications/Unity/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --assembly="/Volumes/livsey-external/projects/il2cpp_gen_bug/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly="/Volumes/livsey-external/projects/il2cpp_gen_bug/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --assembly="/Volumes/livsey-external/projects/il2cpp_gen_bug/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" --assembly="/Volumes/livsey-external/projects/il2cpp_gen_bug/Temp/StagingArea/Data/Managed/UnityEngine.dll" --generatedcppdir="/Volumes/livsey-external/projects/il2cpp_gen_bug/Temp/il2cppOutput/il2cppOutput"
Exception: /Applications/Unity/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll did not run properly!
Build completed with a result of 'Succeeded'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Notes:
- This issue appears on Windows, macOS, iOS, and Android
- If Scripting Backend is set on Mono, everything works fine
- On Unity 2018.2 Console even says the Build completed with a result of "Succeeded", but no files are actually written - the destination project folder is empty
Reproduced on Unity 2017.4.0f1, 2017.4.14f1, 2018.1.9f2, 2018.2.15f1, 2018.3.0b9 and 2019.1.0a8
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
shubhamswaraj2021
Aug 18, 2020 09:46
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
tyron0099
Jun 21, 2020 12:10
Use the best simple ways get free robux,some user try the different option to find the get this game http://freecodeshub.com/get-free-robux you don't any human verification required on this website,easily to click this link.
iGAMONIC
Apr 30, 2020 18:36
i am facing the same error in empty project.
my thread on this topic is here
https://forum.unity.com/threads/failed-running-il2cppcore-dll-il2cppcore-dll-did-not-run-properly-failed-to-build-apk-on-mac.880168/
anyone has some solution please help
bekiryanik
Nov 22, 2019 14:07
I am still having this issue on Unity Version 2018.3.14f1 version.
ShaheelS
May 15, 2019 10:27
Still having this issue in Unity2019.1.2