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. Dismiss Notice

WebGL Wont Build - Crash Monitoring with UnityPerf / GamePerf

Discussion in 'WebGL' started by lsummers, Jan 5, 2016.

  1. lsummers

    lsummers

    Joined:
    Sep 29, 2015
    Posts:
    1
    Hi All,

    I'm wondering what folks are using for Crash Reporting with Unity's WebGL? We'd love to know a client is having issues before they contact us.

    The only downside I see to the Unity Analytics (which seem to be working well for us by the way) is that it doesn't allow us to do any crash reporting.

    I tried jumping on UnityPerf which allows pretty painless crash reporting integration... until we try to build. Using Unity 5.3.1f1 anytime we try to build our project with UnityPerf included, we get the following error in the console log (note: This happens regardless of Strip Engine Code being enabled or changing from NET 2.0 Subset to NET 2.0 ).

    Including the DLL and using UnityEngine.CrashLog; in of itself doesn't seem to cause the error.

    However, when we actually try to the init:

    Code (CSharp):
    1. CrashReporting.Init("...");
    It causes the build error below.

    The error message we are seeing is:
    Code (CSharp):
    1. Failed running C:\Program Files\Unity5.3\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed\tempStrip" -l none -c link -b False -x "C:\Program Files\Unity5.3\Editor\Data\PlaybackEngines\WebGLSupport\Whitelists\Core.xml" -f "C:\Program Files\Unity5.3\Editor\Data\il2cpp\LinkerDescriptors" -x "D:\Development\BitbucketNew\Unity3D/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -d "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed" -a  "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a  "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a  "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a  "D:\Development\BitbucketNew\Unity3D\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll"
    2.  
    3. stdout:
    4. Fatal error in Mono CIL Linker
    5. System.Exception: Error processing method: 'System.Boolean UnityEngine.CrashLog.Util.Rest/<CheckConnection>d__4::MoveNext()' in assembly: 'UnityEngine.CrashLog.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void UnityEngine.Ping::.ctor(System.String)
    6.    at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
    7.    at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
    8.    at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
    9.    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
    10.    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    11.    --- End of inner exception stack trace ---
    12.    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    13.    at Mono.Linker.Steps.MarkStep.Process()
    14.    at Mono.Linker.Pipeline.Process(LinkContext context)
    15.    at Mono.Linker.Driver.RunDriver(Driver driver)
    16. stderr:
    17.  
    18. UnityEngine.Debug:LogError(Object)
    19. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:94)
    20. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:107)
    21. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:100)
    22. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    23. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:131)
    24. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:201)
    25. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135)
    26. UnityEditor.HostView:OnGUI()
    27.  
    28. Exception: C:\Program Files\Unity5.3\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
    29. 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:96)
    30. UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (IEnumerable`1 args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:107)
    31. UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:100)
    32. UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    33. UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:131)
    34. UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:201)
    35. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135)
    36. UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:301)
    37. 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)
    38. UnityEditor.HostView:OnGUI()
    39.  
    40. Error building Player: Exception: C:\Program Files\Unity5.3\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!

    Has anyone had success integrating this into WebGL with Unity 5.3.1 or is it something on my system?
    It looks like exactly the solution we need, so in the offset chance it'll get fixed, I submitted a bug report #
    759297
     
  2. lloydsummers

    lloydsummers

    Joined:
    May 17, 2013
    Posts:
    343
    Accidentally posted this under my work account - posting so I can follow
     
  3. Stream

    Stream

    Joined:
    Oct 28, 2013
    Posts:
    37
    Same problem with UnityEngine.CrashLog. Unity 5.3.3
     
  4. lloydsummers

    lloydsummers

    Joined:
    May 17, 2013
    Posts:
    343
    Fyi

    Unity team confirmed they won't be fixing the bug above and closed the ticket. You may want to open one for CrashLog