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

WebGL Error Building.

Discussion in 'Unity 5 Pre-order Beta' started by john-essy, Dec 12, 2014.

  1. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Hi there, when i try to build i get the following errors.

    Error building Player: Exception: E:\Unity5\Editor\Data\PlaybackEngines\webglsupport/BuildTools\il2cpp/il2cpp.exe did not run properly!

    and

    --copy-level=None --enable-generic-sharing --enable-unity-event-support --enable-stacktrace "C:\Users\johnessy\Documents\GameDevelopment\FrameWorks\ParkingFrameworks\3DParkingAcademyCamperVan\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" "C:\Users\johnessy\Documents\GameDevelopment\FrameWorks\ParkingFrameworks\3DParkingAcademyCamperVan\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll" "C:\Users\johnessy\Documents\GameDevelopment\FrameWorks\ParkingFrameworks\3DParkingAcademyCamperVan\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" "C:\Users\johnessy\Documents\GameDevelopment\FrameWorks\ParkingFrameworks\3DParkingAcademyCamperVan\Temp\StagingArea\Data\il2cppOutput"

    I have no idea what is going on. All i have done is take a perfectly good project and port to webgl and it wont let me LOL.

    Anyone hed the same or similar issues?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    You may try to delete the ScriptAssembly folder withing the Library folder. This helped in some versions but shouldn't be needed anymore as far as I know. If this doesn't help, you most likely need to submit a bug report.
     
  3. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Thanks for answering man, although it didnt work :( I think it is this part that is messing me up. Error building Player: Exception: E:\Unity5\Editor\Data\PlaybackEngines\webglsupport/BuildTools\il2cpp/il2cpp.exe did not run properly!

    It gets all the way to scripts etc on the build bar but fails after that.
     
  4. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    I got this kind of error as well, because something I used in my code wasn't properly translated. After I submitted the bug, it was resolved for the next beta.
     
  5. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Gonna reimport everything and hope that fixes the issue, Im starting to think maybe its becuase i have unity installed on a external drive.
     
  6. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    What beta version are you using? I was building fine in Beta 13 but could not build in Beta 14 or 15. However, it seems to have been fixed in Beta 16 as I'm able to build now.
     
  7. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Yea im using 14 i think it is
     
  8. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Update to at least 16 (or better yet the new 17) and you should be able to build fine.
     
  9. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Thanks man downloading now.
     
  10. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Quiock question before i even get to build, once i have built how do i test? Can i test locally or will i need to host it on my server or dropbox?
     
  11. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Local works.
     
  12. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Tried 17 and still doesn't build for me :( Exact same errors il2ccp.exe did not run properly
     
  13. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
  14. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Its this line the gets me.

    stdout:
    Error writing C++ code for type Newtonsoft.Json.Linq.JEnumerable`1 in assembly C:\Users\johnessy\Documents\GameDevelopment\FrameWorks\ParkingFrameworks\3DParkingAcademyCamperVan\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll.
    stderr:
     
  15. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Ahh... are you using the official Newtonsoft or are you using my JSON .NET asset? My asset is not compatible with WebGL yet. I've submitted a bug to Unity. I can actually build though, there are just runtime errors. And I haven't tried 17 yet, just 16.
     
  16. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Yea im using your asset, no worries man will just have to keep trying as the builds come along.
     
  17. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Yeah the official release won't work. I have a development branch with the proper compilation symbols for web gl. If you want to replicate that, do a find and replace on my asset.

    Replace: UNITY_IOS
    With: UNITY_IOS || UNITY_WEBGL

    That should fix your compile issues at least. Then you can just comment out any code that serializes or deserializes as you'll get a runtime error. The runtime error is what I'm trying to work out.
     
  18. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Ah i get ya, If you get that fixed before unity does an update or something would you be able to give me a heads up mate?
     
  19. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Sure can.
     
  20. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Cheers mate.
     
  21. john-essy

    john-essy

    Joined:
    Apr 17, 2011
    Posts:
    464
    Hi mate, is there any news on compatibilty?
     
  22. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Yes, more news coming soon. :) The Unity team has been testing with JSON .NET for Unity and have implemented IL2CPP fixes but they haven't made the public beta yet. Currently they are in the iOS 64-bit branch but they should work with WebGL as well though I haven't tested yet. These fixes will be coming to the public beta very soon.