Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

My server don't work when I'm using Android as Server

Discussion in 'Unity Transport' started by Headshoves, Nov 17, 2023.

  1. Headshoves

    Headshoves

    Joined:
    Apr 22, 2020
    Posts:
    7
    I have an application which has a Server and many clients using Unity Transport, my server will be run in a ChromeBook (Android), but when I run the application in the ChromeBook, the application crash and close it.

    OSB: I tried with ther Server in Windows and Android Client and that's work! But the inverse don't work.
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Could you share the logs of the server when it crashes?
     
  3. Headshoves

    Headshoves

    Joined:
    Apr 22, 2020
    Posts:
    7
    I call the method "SelectVideo()" and the next lines are:

    upload_2023-11-20_8-30-43.png
     
  4. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Which version of the transport package are you using? Also, are you using Netcode for GameObjects? Are you using the Unity Relay service? If so, what are the versions of the related packages?
     
  5. Headshoves

    Headshoves

    Joined:
    Apr 22, 2020
    Posts:
    7
    I'm just using Unity Transport, at the 2.1.0 version
     
  6. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    How have you determined that the crash is related to Unity Transport? At a glance from the backtrace it doesn't appear related. Maybe you'd get more relevant advice from the Android section of the forum.
     
  7. Headshoves

    Headshoves

    Joined:
    Apr 22, 2020
    Posts:
    7
    I did some tests, I tried to log a NetworkDriver.ReceiveErrorCode when start a scene, and Crashed too, closing the application. And the same log works in Windows.
     
  8. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    If you can provide a minimum reproduction project (e.g. a small piece of code that on its own can cause a crash), then please file a bug report. You can do so directly from within Unity through the Help menu. And please report the case number here so I can track it internally.
     
  9. Headshoves

    Headshoves

    Joined:
    Apr 22, 2020
    Posts:
    7
    I will try, Thank you!