Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Is WEBGL working for you?

Discussion in 'Unity 5 Pre-order Beta' started by samuelmorais, Dec 29, 2014.

?

Is WEBGL Build working well for you?

  1. Yes. It is running 100% ok, without any build fail.

    4 vote(s)
    14.8%
  2. Sometimes it works, sometime doesn´t.

    14 vote(s)
    51.9%
  3. It never worked for me.

    9 vote(s)
    33.3%
  4. I didn't try.

    0 vote(s)
    0.0%
  1. samuelmorais

    samuelmorais

    Joined:
    Aug 3, 2012
    Posts:
    63
    I am having some trouble with WEBGL build since Unity 5 b18 and would like to know if it is working well for other Unity users.

    Thank you for your time to answer this poll.
     
  2. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    880
    I've had surprisingly great results so far. What are your troubles?
     
  3. seattlebluesky

    seattlebluesky

    Joined:
    Sep 2, 2014
    Posts:
    170
    All cross-platform issues with the player aside, the WebGL player is v.stable from my experience. In light of the big technology rocks that were moved to make that happen, for example IL2CPP, it is quite an achievement.

    What specific issues are you having with the WebGL player?
     
  4. samuelmorais

    samuelmorais

    Joined:
    Aug 3, 2012
    Posts:
    63
    I am having a problem with a reasonably big project, with this error, that I have no idea where it comes from:

    In file included from C:/Users/Samuel/Documents/Animagol_teste_2/Assets/../Temp/StagingArea/Data\il2cppOutput\GeneratedInvokers.cpp:11230:

    C:/Users/Samuel/Documents/Animagol_teste_2/Assets/../Temp/StagingArea/Data\il2cppOutput/mscorlib_ArrayTypes.h:78:8: error: redefinition of 'mscorlib_mscorlib_System_Collections_Generic_KeyValuePair_2_mscorlib_System_StringU002CU0020mscorlib_System_Int32_arr'

    struct mscorlib_mscorlib_System_Collections_Generic_KeyValuePair_2_mscorlib_System_StringU002CU0020mscorlib_System_Int32_arr : public mscorlib_System_Array

    ^

    C:/Users/Samuel/Documents/Animagol_teste_2/Assets/../Temp/StagingArea/Data\il2cppOutput/mscorlib_System_Collections_Generic_KeyValuePair_2_gen_11.h:10:8: note: previous definition is here

    struct mscorlib_mscorlib_System_Collections_Generic_KeyValuePair_2_mscorlib_System_StringU002CU0020mscorlib_System_Int32_arr

    ^

    1 warning and 1 error generated.

    ERROR root: compiler frontend failed to generate LLVM bitcode, halting
     
  5. seattlebluesky

    seattlebluesky

    Joined:
    Sep 2, 2014
    Posts:
    170
    Could well be an issue with IL2CPP code generation in the context of C# generics, in your case a specific key value pair type. But I'm no expert on IL2CPP. I'm assuming you don't have an issue with the same project as a standalone build?
     
  6. seattlebluesky

    seattlebluesky

    Joined:
    Sep 2, 2014
    Posts:
    170
  7. samuelmorais

    samuelmorais

    Joined:
    Aug 3, 2012
    Posts:
    63
    Finally I got the line which was avoiding it to build:

    Dictionary<string,int[]> variable_name = new Dictionary<string, int[]> ();

    Maybe this type cannot be converted yet. I will do a workaroud, since it is a non-important part of code.

    The other thread was also posted by me, but it is about NGUI, which I am trying to replace by uGUI (not sure yet). Since the error will be fixed in next version, I am not worried about that anymore.

    Thank you for your help.
     
  8. root8888

    root8888

    Joined:
    Jul 25, 2013
    Posts:
    26
    Failed to run "C:\Program Files\Unity 5.0.0b18\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe"
    UnityEngine.Debug:LogError(Object)
    NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:57)
    NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:23)
    UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler:CompileDynamicLibrary(String, IEnumerable`1, IEnumerable`1, IEnumerable`1, IEnumerable`1)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:277)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:204)
    UnityEditor.HostView:OnGUI()
     
  9. seattlebluesky

    seattlebluesky

    Joined:
    Sep 2, 2014
    Posts:
    170
    Can you run with no command arguments

    C:\Program Files\Unity 5.0.0b18\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe

    from the command-line? Ctrl-D will exit the python interpreter that you should see launched. If the python executable launches fine then I guess there's some issue with the command-line arguments.
     
  10. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    WebGL works but without AntiAlias (Bug already reported).
    I would like to have the filesize of the package to upload heavily reduced.
     
  11. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    946
    A custom embedding templates like ones for the Unity Webplayer would be helpful.
    I have got some problems with toggling the fullscreen mode from inside the webgl player.
    First, I just couldn't invoke from the webgl player the SetFullscreen(fullscreen) function inside UniityConfig.js script, using Application.ExternalCall().
    When setting the fullscreen mode from button inside the webgl player with
    Code (CSharp):
    1. Screen.fullScreen = true;
    I have to click anywhere on the canvas for the second time to get this action - see the link:
    http://virtualplayground.d2.pl/WebGL/fullbrowser/
    I also could not get to work SystemInfo.deviceUniqueIdentifier inside webgl player.
     
  12. root8888

    root8888

    Joined:
    Jul 25, 2013
    Posts:
    26
    Yes, I can run from the command line no problem.
     
  13. seattlebluesky

    seattlebluesky

    Joined:
    Sep 2, 2014
    Posts:
    170
    Someone with more knowledge of the inner-workings of this than me will need to help out. I'd suggest submitting a bug if it is reproducible with a reasonably small project.