IL2CPP error ( exception )

Hello,

After few days … and few cry :frowning: I cannot compile my Unity project with WebGL.
No problem when i try to compile in StandAlone or WebPlayer.

I watched few threads, few forums, i have the same error :frowning:

I have 2 errors :

1st error :
[quote]
Exception: C:\Program Files\Unity\Editor\Data\il2cpp/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:68)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:418)** **UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:275)** **UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
[/quote]

2nd error
[quote]
Failed running C:\Program Files\Unity\Editor\Data\il2cpp/il2cpp.exe --copy-level=None --enable-generic-sharing --enable-unity-event-support --output-format=Compact --extra-types.file=“C:\Program Files\Unity\Editor\Data\il2cpp\il2cpp_default_extra_types.txt” “D:\99-Dev\Proto\ProtoUnity5\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll” “D:\99-Dev\InSphereEiffelProto\Eiffel\ProtoUnity5\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll” “D:\99-Dev\lProto\Eiffel\ProtoUnity5\Temp\StagingArea\Data\Managed\UnityTools.dll” “D:\99-Dev\Proto\Eiffel\ProtoUnity5\Temp\StagingArea\Data\il2cppOutput”
stdout:
IL2CPP error (no further information about what managed code was being converted is available)
Additional information: Build a development build for more information. Exception has been thrown by the target of an invocation.
stderr:
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation… ( more then 100)
[/quote]
PS : Version of unity : 5.0.1f1

Is there any further information in the log after these messages?

Also, what is UnityTools.dll ? perhaps it’s causing some issues during the compilation process ? What types does it contain ?

Thank for your reply !

No any further information …
UnityTools it’s a custom lib, maybe i must to move all src in Assembly dll ?

Ok after removed my custom dll compilation work !
But :frowning:

When i try to launch my webgl page, i have errors, not same when i use Firefox or Chrome !

Chrome says me :

Invoking error handler due to
Uncaught SyntaxError: Unexpected number
fileloader.js:3 Uncaught SyntaxError: Unexpected number
UnityConfig.js:74 Invoking error handler due to
Uncaught RangeError: Invalid typed array length
WebGL_Build.js:1 Uncaught RangeError: Invalid typed array length

Firefox says me :
Invoking error handler due to uncaught exception: out of memory

I set the memory of webgl at 1024Mb, nothing to change.

The chrome “Unexpected number” thing happens randomly for me - try reloading the page.

Yes after try 2 or 3 time, the page is loading …
Right now he’s not working with Firefox …