Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Multiplay Dedicated Server - Could not get subscription with channel[server#45456644] from subscript

Discussion in 'Game Server Hosting' started by bduckstudios, Mar 21, 2023.

  1. bduckstudios

    bduckstudios

    Joined:
    Jan 25, 2023
    Posts:
    11
    Hi,
    When trying to initialize the server,
    I occasionally get those errors, then the server crashes:

    [Wire]: Could not get subscription with channel[server#45456644] from subscription repository!
    [Wire]: Could not get direct subscription channel[] Defaulting to first subscription!
    The Wire server is sending publications related to an unknown channel.


    Full logs are attached.

    Those are called when calling the MultiplayService.Instance.SubscribeToServerEventsAsync().

    Does someone have a possible solution for this?

    There are literally no reproduction steps, it just happens sometimes, sometimes not. Looks totally random.

    Thanks in advance,
    Omer
     
  2. SuperBytes

    SuperBytes

    Joined:
    Jan 28, 2020
    Posts:
    8
    Same here!

    I think it shouldn't be Random. i'll try to explore on the timings of the operations because probably it's related to try to subscribe to something that isn't ready yet...
     
  3. jackw_unity

    jackw_unity

    Unity Technologies

    Joined:
    Oct 12, 2022
    Posts:
    11
    Good day both,

    We've been working on investigating the root cause of this one internally but it has been tough for SDK engineers to reliably reproduce also. It is believed that this issue likely lies within the Embedded Wire package version that is provided as part of the pre 7 release of our SDK.

    A custom package has been created for this which I recall Omer has tried with some success should you like to try it SuperBytes.

    Would you be willing to add it to your game to see if that helps somewhat?

    Engineers provided this information to help with manual integration of the package:

    Attached is a modified version of 1.0.0-pre.8 with EmbedWire updated to use code from Wire version 1.1.4 .

    The customer can load this package tarball with the instructions from here (they should remove any other Multiplay SDK versions first).​


    Due to Forum limitations around file extension names please firstly download the zip file and extract it to get the file com.unity.services.multiplay-1.0.0-EmbedWireUpdated.tgz before following the above instructions.


    Additionally, if you're uncomfortable downloading files via our forum please submit a support ticket to us via support.unity.com and I will be happy to provide files there.
     

    Attached Files: