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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Adding com.unity.transport 1.0.0-pre.12 package causes compilation error on WebGL platform

Discussion in 'Unity Transport' started by michal_unity171, Feb 3, 2022.

  1. michal_unity171

    michal_unity171

    Joined:
    Apr 14, 2021
    Posts:
    4
    Hi,

    One of our target platforms is WebGL and obviously I'm going to use different transport for it, but for now I want to experiment with several of them including Unity Transport.

    But just adding the com.unity.transport 1.0.0-pre.12 package will throw error during compilation:

    Code (csharp):
    1.  
    2. Library/PackageCache/com.unity.transport@1.0.0-pre.12/Runtime/NetworkSettings.cs(166,36): error CS0246: The type or namespace name 'BaselibNetworkParameter' could not be found (are you missing a using directive or an assembly reference?)
    3. Library/PackageCache/com.unity.transport@1.0.0-pre.12/Runtime/NetworkSettings.cs(168,30): error CS0246: The type or namespace name 'BaselibNetworkParameter' could not be found (are you missing a using directive or an assembly reference?)
    4. Library/PackageCache/com.unity.transport@1.0.0-pre.12/Runtime/NetworkSettings.cs(171,50): error CS0103: The name 'BaselibNetworkParameterExtensions' does not exist in the current context
    5. Library/PackageCache/com.unity.transport@1.0.0-pre.12/Runtime/NetworkSettings.cs(174,47): error CS0103: The name 'BaselibNetworkParameterExtensions' does not exist in the current context
    6. Library/PackageCache/com.unity.transport@1.0.0-pre.12/Runtime/NetworkSettings.cs(177,48): error CS0103: The name 'BaselibNetworkParameterExtensions' does not exist in the current context
    7.  
    8. /home/bokken/buildslave/unity/build/External/baselib/builds/Include/C/Internal/Baselib_Semaphore_FutexBased.inl.h(151): Assertion failed (count >= 0) - Destruction is not allowed when there are still threads waiting on the semaphore.
    9.  
    10. Caught fatal signal - signo:5 code:128 errno:0 addr:(nil)
    11. Obtained 17 stack frames.
    12. #0  0x0055e9ec40106c in RegisterRuntimeInitializeAndCleanup::ExecuteCleanup()
    13. #1  0x0055e9ec2b31e0 in RuntimeCleanup()
    14. #2  0x0055e9ed30ce34 in DoQuitEditorWithExitCode(int)
    15. #3  0x0055e9ec414876 in CheckBatchModeErrorString(core::basic_string<char, core::StringStorageDefault<char> > const&)
    16. #4  0x0055e9ed3ebf86 in RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
    17. #5  0x0055e9ed3cbbf2 in StopAssetImportingV2(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*)
    18. #6  0x0055e9ed3cbe81 in InitialScriptRefreshV2(bool)
    19. #7  0x0055e9ece835de in Application::InitializeProject()
    20. #8  0x0055e9ed30db58 in InitializeUnity(void*)
    21. #9  0x007f7c5bdb5e23 in g_source_get_time
    22. #10 0x007f7c5bdb53a5 in g_main_context_dispatch
    23. #11 0x007f7c5bdb5770 in g_main_context_dispatch
    24. #12 0x007f7c5bdb5a82 in g_main_loop_run
    25. #13 0x007f7c5cdbca25 in gtk_main
    26. #14 0x0055e9ed30d63c in main
    27. #15 0x007f7c5a84fbf7 in __libc_start_main
    28. #16 0x0055e9eb8ab029 in _start
    29. Trace/breakpoint trap (core dumped)
    30. Build failed, with exit code 133
    31.  
    I don't expect Unity Transport to work on WebGL, but at least it should be configured to not compile on WebGL by having proper platforms in asmdef.
    Is there any workaround for this? Or do I have to make my own version of the package?
     
  2. michal_unity171

    michal_unity171

    Joined:
    Apr 14, 2021
    Posts:
    4
  3. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    150
    Yes, until we get this fixed more officially, I think a local package is the most straightforward workaround.
     
    Syn_Ua and KingKRoecks like this.
  4. Syn_Ua

    Syn_Ua

    Joined:
    Sep 5, 2015
    Posts:
    3
    Have this error too, on version v 1.0.0 - March 31, 2022

    -langversion:9.0
    3078/deterministic
    3079/optimize+
    3080/debug:portable
    3081/nologo
    3082/RuntimeMetadataVersion:v4.0.30319
    3083/nowarn:0169
    3084/nowarn:0649
    3085/nowarn:1701
    3086/nowarn:1702
    3087/utf8output
    3088/preferreduilang:en-US
    3089-warn:0
    3090##### Custom Environment Variables
    3091DOTNET_MULTILEVEL_LOOKUP=0
    3092##### ExitCode
    3093134
    3094##### Output
    3095No usable version of libssl was found
    3096Aborted (core dumped)
    3097*** Tundra build failed (5.57 seconds), 214 items updated, 433 evaluated
    3098No usable version of libssl was found
    3099Aborted (core dumped)
    3100No usable version of libssl was found
    3101Aborted (core dumped)
    3102AssetDatabase: script compilation time: 7.126949s
    3103Scripts have compiler errors.
    3104Aborting batchmode due to failure:
    3105Scripts have compiler errors.
    3106/home/bokken/buildslave/unity/build/External/baselib/builds/Include/C/Internal/Baselib_Semaphore_FutexBased.inl.h(151): Assertion failed (count >= 0) - Destruction is not allowed when there are still threads waiting on the semaphore.
    3107Caught fatal signal - signo:5 code:128 errno:0 addr:(nil)
    3108Obtained 13 stack frames.
    3109#0 0x0055f3fe0bdbdc in RegisterRuntimeInitializeAndCleanup::ExecuteCleanup()
    3110#1 0x0055f3fdf25b60 in RuntimeCleanup()
    3111#2 0x0055f3ff490b0f in DoQuitEditorWithExitCode(int, bool)
    3112#3 0x0055f3fe0b5442 in CheckBatchModeErrorString(core::basic_string<char, core::StringStorageDefault<char> > const&)
    3113#4 0x0055f3ff844f13 in RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
    3114#5 0x0055f3ff81c32a in StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*, char const*)
    3115#6 0x0055f3ff81ea49 in InitialRefreshV2(bool)
    3116#7 0x0055f3ff3e945f in Application::InitializeProject()
    3117#8 0x0055f3ff491e2d in InitializeUnity(void*)
    3118#9 0x0055f3ff4914b4 in main
    3119#10 0x007f50e401fd90 in __libc_init_first
    3120#11 0x007f50e401fe40 in __libc_start_main
    3121#12 0x0055f3fd68a029 in _start
    3122Trace/breakpoint trap (core dumped)
    3123Cleaning up project directory and file based variables
     
  5. Syn_Ua

    Syn_Ua

    Joined:
    Sep 5, 2015
    Posts:
    3