Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Ubuntu 20.04 #32

Open
Varollo opened this issue Oct 21, 2021 · 1 comment
Open

Crash on Ubuntu 20.04 #32

Varollo opened this issue Oct 21, 2021 · 1 comment

Comments

@Varollo
Copy link

Varollo commented Oct 21, 2021

When trying to run a dedicated server on Ubuntu 20.04 I keep getting this error:

NullReferenceException: Object reference not set to an instance of an object
  at kcp2k.KcpTransport.ServerStart () [0x00000] in <3f58c2d5ab6045e99072d494f8577adc>:0
  at Mirror.NetworkServer.Listen (System.Int32 maxConns) [0x00012] in <3f58c2d5ab6045e99072d494f8577adc>:0
  at Mirror.NetworkManager.SetupServer () [0x00066] in <3f58c2d5ab6045e99072d494f8577adc>:0
  at Mirror.NetworkManager.StartServer () [0x00019] in <3f58c2d5ab6045e99072d494f8577adc>:0
  at Mirror.NetworkManager.Start () [0x00008] in <3f58c2d5ab6045e99072d494f8577adc>:0

Steps to reproduce:

  • Create a mirror project using Kcp Transport or clone this test repository
  • Build it with IL2CPP
  • Run on Ubuntu version 20.04

What fixed for me

To not get the error I had to run it on an older version of ubuntu (18.04).

@miwarnec
Copy link
Collaborator

miwarnec commented Jan 6, 2022

@Varollo please debug to see which line this exception happens on.
please try without IL2CPP.
please try with IL2CPP but without 'nonalloc' option.
and report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants