Title: Cannot build to WebGL · Issue #3 · MidLevel/MLAPI.WebSockets · GitHub
Open Graph Title: Cannot build to WebGL · Issue #3 · MidLevel/MLAPI.WebSockets
X Title: Cannot build to WebGL · Issue #3 · MidLevel/MLAPI.WebSockets
Description: It's not possible to build to WebGL if using WebSocketTransport Exception: /home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe did not run properly! Failed running "/home/raph/Unity/Hub/Editor/2...
Open Graph Description: It's not possible to build to WebGL if using WebSocketTransport Exception: /home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe did not run properly! Faile...
X Description: It's not possible to build to WebGL if using WebSocketTransport Exception: /home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe did not run properly! F...
Opengraph URL: https://github.com/MidLevel/MLAPI.WebSockets/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot build to WebGL","articleBody":"It's not possible to build to WebGL if using WebSocketTransport\r\n```\r\nException: /home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe did not run properly!\r\n\r\nFailed running \"/home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe\" @\"/home/raph/Unity/IsWebSocketDead/Temp/StagingArea/Data/Managed/response.rsp\" \r\n\r\nstdout:\r\nFatal error in Unity CIL Linker\r\nMono.Linker.MarkException: Error processing method: 'MLAPI.Transports.NetEventType WebSocketTransport.WebSocketTransport::PollEvent(System.UInt64\u0026,System.String\u0026,System.ArraySegment`1\u003cSystem.Byte\u003e\u0026,System.Single\u0026)' in assembly: 'WebSocketTransport.dll' ---\u003e Mono.Cecil.ResolutionException: Failed to resolve System.UInt64 MLAPI.WebSockets.WebSocketServerEvent::Id\r\n at Mono.Linker.Steps.MarkStep.HandleUnresolvedField (Mono.Cecil.FieldReference reference) [0x00018] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.MarkField (Mono.Cecil.FieldReference reference) [0x0002d] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) [0x00044] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x000e9] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Unity.Linker.Steps.UnityMarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00001] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x001ca] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Unity.Linker.Steps.UnityMarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00041] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00021] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n --- End of inner exception stack trace ---\r\n at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00052] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue () [0x00019] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.Process () [0x0013c] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000e] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Unity.Linker.Steps.UnityMarkStep.Process (Mono.Linker.LinkContext context) [0x00058] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Mono.Linker.Pipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x0000e] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Unity.Linker.UnityPipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x00018] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00014] in \u003cc0c87e19439140b78d011a4c4a5bddd0\u003e:0 \r\n at Unity.Linker.UnityDriver.Run () [0x0009b] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling () [0x00007] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\n at Unity.Linker.UnityDriver.RunDriver () [0x00002] in \u003c8770b367edc74e678284d672346206ea\u003e:0 \r\nstderr:\r\n\r\nUnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)\r\nUnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)\r\nUnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String\u0026 out, System.String\u0026 err, System.String linkerPath, System.String workingDirectory) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:168)\r\nUnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String\u0026 output, System.String\u0026 error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:159)\r\nUnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:303)\r\nUnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:180)\r\nUnityEditorInternal.IL2CPPBuilder.Run () (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:490)\r\nUnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:235)\r\nUnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)\r\nUnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:932)\r\nUnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties\u0026 outProperties) (at /home/bokken/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:29)\r\nUnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:340)\r\nUnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)\r\n```\r\nSteps to reproduce the behavior:\r\n Create a new 3D Project (Unity 2019.14.16)\r\n Import MLAPI with MLAPI-installer.unity\r\n Install MLAPI v11.11.4 (also tried with v12.1.7)+ WebSocketTransport (latest from the installer)\r\n Create a new NetworkingManager with WebSocket as transport\r\n Build to WebGL\r\n\r\nOS: Archlinux (btw)\r\nUnity Version: 2019.4\r\nMLAPI Version: v11.11.4 and v.12.7\r\nMLAPI Commit: [e.g. https://github.com/MidLevel/MLAPI/commit/c102935df1d7e0928283b48948fe96e5d96dd961]","author":{"url":"https://github.com/wesraph","@type":"Person","name":"wesraph"},"datePublished":"2021-02-01T23:26:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/MLAPI.WebSockets/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a6db732a-66d3-d57f-e812-ab4d2252d5ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8CC:14AB50:861359E:AD69727:6975DC8A |
| html-safe-nonce | c9ff79316550a0c3699762983b8f2f98670a40d9ee6077838c0a7d0b7c1a9331 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOENDOjE0QUI1MDo4NjEzNTlFOkFENjk3Mjc6Njk3NURDOEEiLCJ2aXNpdG9yX2lkIjoiMzI0MTQ3NDg3MDE4MDQzNzEzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8e6c2fc5a8eca0ad2027c4cbf1d54b5051d09738715eb1d351cb230d41b1e4f4 |
| hovercard-subject-tag | issue:798791645 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MidLevel/MLAPI.WebSockets/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a536b2ebe7257d13069d3519206f5c8a2b86db426a44dc794096f5eb9632ef2b/MidLevel/MLAPI.WebSockets/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a536b2ebe7257d13069d3519206f5c8a2b86db426a44dc794096f5eb9632ef2b/MidLevel/MLAPI.WebSockets/issues/3 |
| og:image:alt | It's not possible to build to WebGL if using WebSocketTransport Exception: /home/raph/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/UnityLinker.exe did not run properly! Faile... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wesraph |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6 |
| turbo-cache-control | no-preview |
| go-import | github.com/MidLevel/MLAPI.WebSockets git https://github.com/MidLevel/MLAPI.WebSockets.git |
| octolytics-dimension-user_id | 39769196 |
| octolytics-dimension-user_login | MidLevel |
| octolytics-dimension-repository_id | 189246889 |
| octolytics-dimension-repository_nwo | MidLevel/MLAPI.WebSockets |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 189246889 |
| octolytics-dimension-repository_network_root_nwo | MidLevel/MLAPI.WebSockets |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fcca2b8ef702b5f7f91427a6e920fa44446fe312 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width