Search Unity

Bug Building for WebGL results in failure in 5.4.0b13

Discussion in 'Linux' started by JKarkkainen, Apr 29, 2016.

  1. JKarkkainen

    JKarkkainen

    Joined:
    Mar 5, 2013
    Posts:
    11
    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:
     
  2. JKarkkainen

    JKarkkainen

    Joined:
    Mar 5, 2013
    Posts:
    11
    Just updated to 5.4.0b15. Same thing happens, can't build for WebGL.
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    @JKarkkainen

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

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
  5. JKarkkainen

    JKarkkainen

    Joined:
    Mar 5, 2013
    Posts:
    11
    @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.
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    @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.
     
  7. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    We've found the issue with this - it should be fixed in an upcoming build.
     
    bumbleblee and spacepluk like this.
  8. jimmack

    jimmack

    Joined:
    May 2, 2016
    Posts:
    20
    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.
     
  9. rodrigorila

    rodrigorila

    Joined:
    Oct 30, 2015
    Posts:
    4
    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.Action`1 setupStartInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:100)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 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 <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__AnonStorey1`2[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__AnonStorey1`2[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

    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__AnonStorey1`2[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

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:98)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, 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()
     
  10. cernys

    cernys

    Joined:
    Jun 1, 2016
    Posts:
    18
    hi,
    I up the post 'cause i've got the same problem. Anything new ?
     
  11. Instability

    Instability

    Joined:
    Apr 16, 2012
    Posts:
    288
    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.
     
  12. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    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
     

    Attached Files:

  13. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    fixed, put Api level set to .NET 2.0 in the player settings
     
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    @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.
     
  15. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    also its a problem on webgl because not show error when play on the web and stop the game
     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    Sorry, I don't follow. Is this the same error listed above? If so, when does it occur now?
     
  17. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    its another error, i will make a photo and also i put link with player here to test it, thanks for respond fast.
     
  18. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    im coming with a strange error
    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 !
     
  19. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    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.
     
  20. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    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
     
    Last edited: Aug 22, 2016
  21. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Could you make a development build, and post the stack trace from that?
     
  22. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240
    i will make
     
  23. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    240