Building for WebGL results in failure in 5.4.0b13

Building for WebGL with version 5.4.0b13 results in failure. I think it worked before, can’t be sure though. The error I get is “System.NotSupportedException: Don’t know how to get python path on current platform!”

A more detailed error log as follows:

Just updated to 5.4.0b15. Same thing happens, can’t build for WebGL.

@JKarkkainen

Which OS are you using to run the Unity editor in this case?

I’m getting the same error on Archlinux using 5.4.0b15. WebGL builds used to work for me using this workaround:

But this looks like something new.

Cheers,

@JoshPeterson Ah, I usually remember to tell my OS. Anyhow, I’m using Linux Mint 17.3. However, I have an inkling that this is a general linux issue, and not reflective of my distribution.

@JKarkkainen

Thanks for the information. I agree, this is likely a general issue on Linux. Can you submit a bug report for this issue and let me know the bug number? This is something that we should be able to correct.

We’ve found the issue with this - it should be fixed in an upcoming build.

2 Likes

Cool! The WebGL bug has been a pain, so thanks for getting onto it so quickly. In fact, thanks for all the work you’ve done getting Unity to work on Linux. It’s very much appreciated.

I tried with an empty project with an empty Scene. This is what I get:


Exception: /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1 setupStartInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:100) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:353)
UnityEditorInternal.IL2CPPBuilder.Run () (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:213)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:139)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:392)
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, UnityEditor.BuildReporting.BuildReport report) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:177)
UnityEditor.HostView:OnGUI()


Failed running /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe --convert-to-cpp --output-format=Compact --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript” --configuration=“Release” --outputpath=“/home/rod/Development/Unity/EmptyProject/Assets /…/Temp/StagingArea/Data/Native/UserAssembly.bc” --cachedirectory=“/home/rod/Development/Unity/EmptyProject/Assets/…/Library/il2cpp_cache” --compiler-flags=“-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --linker-flags=”-Oz -s NO_EXIT_RUNTIME=1" --additional-include-directories=“/home/rod/Development/Unity/EmptyProject/Assets/…/Temp/StagingArea/Data/Native/UserAssembly.bc” --extra-types.file=“/opt/Unity/Editor/Data/il2cpp/il2cpp_default_extra_types.txt” --assembly=“/home/rod/Development/Unity/EmptyProject/Temp/StagingArea/Data/Managed/UnityEngine.dll” --generatedcppdir=“/home/rod/Development/Unity/EmptyProject/Temp/StagingArea/Data/il2cppOutput”

stdout:
stderr:

Unhandled Exception:
System.NotSupportedException: Don’t know how to get python path on current platform!
at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in :0
at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in :0
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in :0
at Unity.IL2CPP.Building.ParallelFor+c__AnonStorey12[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in <filename unknown>:0 at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Don't know how to get python path on current platform! at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in <filename unknown>:0 at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in <filename unknown>:0 at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in <filename unknown>:0 at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey12[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0

Unhandled Exception:
System.NotSupportedException: Don’t know how to get python path on current platform!
at Unity.IL2CPP.Building.ToolChains.EmscriptenPaths.get_Python () [0x00000] in :0
at Unity.IL2CPP.Building.ToolChains.EmscriptenToolChain.CompilerExecutableFor (NiceIO.NPath sourceFile) [0x00000] in :0
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.CppCompilationInstruction cppCompilationInstruction) [0x00000] in :0
at Unity.IL2CPP.Building.ParallelFor+c__AnonStorey1`2[Unity.IL2CPP.Building.CppCompilationInstruction,Unity.IL2CPP.Building.ProvideObjectResult].<>m__0 (System.Object o) [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:98) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:353)
UnityEditorInternal.IL2CPPBuilder:Run() (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:213)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:139)
UnityEditor.HostView:OnGUI()

hi,
I up the post 'cause i’ve got the same problem. Anything new ?

It looks like you did! After updating to 5.3.5f1 (see here) on Ubuntu 15.04, I was able to make a successful WebGL export. Thank you so much for fixing this! Also my impression was that CPU usage has gone down, but is still significant.

helló, i move it my project from unity 5.3.5f1 to unity 5.4.0f3 and dont working to build webgl ,

i have installed on my computer unity5.3.5 and unity 5.4.0f3

fixed, put Api level set to .NET 2.0 in the player settings

@mentolatux

I’m glad you were able to correct this. Unfortunately the error message here is rather cryptic. We’ve improved it in Unity 5.5 though to detect this case and provide a clearer indication of how to correct the problem.

also its a problem on webgl because not show error when play on the web and stop the game

Sorry, I don’t follow. Is this the same error listed above? If so, when does it occur now?

its another error, i will make a photo and also i put link with player here to test it, thanks for respond fast.

im coming with a strange error [quote]
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
uncaught exception: abort(133) at jsStackTrace@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:22715
stackTrace@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:22898
abort@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:41:56226
N1t@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:34:1
gJr@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:33:1
KWt@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:34:1
invoke_iii@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:368688
FIk@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:16:1
EIk@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:16:1
Ypm@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:22:1
wXt@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:34:1
invoke_iiii@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:375924
rpr@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:11:1
Vor@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:11:1
f2a@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:17:1
krb@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:20:1
Kob@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:20:1
Mob@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:20:1
sob@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:20:1
fJa@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:17:1
Ilb@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:20:1
Grc@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:10:1
WWt@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:34:1
Runtime.dynCall@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:6786
Browser_mainLoop_runner/<@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:212659
Browser.mainLoop.runIter@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:244838
Browser_mainLoop_runner@blob:null/3e7d326a-1282-4195-b523-19cf6d90c9d3:1:212555

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
[/quote]

my settings on web gl are
Webgl memory size - 256
Enable exception - Explicitly thrown exception
Data caching - V


IF i setup :
Webgl memory size - 512
Enable exception -Full
Data caching - V
the game will run without error but sadly with lag
Maybe is here someone to help me with this setting because i want to join in that program Alpha testers for facebook:
Tanks !

Can you try a build with the memory increased to 512?

Webgl memory size - 512
Enable exception - Explicitly thrown exception
Data caching - V

This feels like something that might be a memory issue, but I’m not sure. I doubt the exception settings would have an impact. We can probably confirm that with this data point.

Webgl memory size - 512
Enable exception - full
Data caching - V

i play in map about 10 seconds then appear :
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
NS_ERROR_UNEXPECTED:
here is the link if you want to test it http://www.playbestgames.co/other/test_unity5.4a/
now i will test it like this :
Webgl memory size - 512
Enable exception - full
Data caching - V
here is the link http://www.playbestgames.co/other/test_unity5.4b/
also i get error on this

At final i will remain at unity 5.3.5 is better than last update , maybe on the next update will be better