miwarnec / DOTSNET

Public DOTSNET issue tracker
20 stars 0 forks source link

Headless build crashes #15

Closed rotolonico closed 3 years ago

rotolonico commented 4 years ago

Describe the bug After building the Physics example scene in headless mode, the App crashes on startup.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Physics scene
  2. Build the scene with the "Server build" Unity setting ticked on
  3. Run the App

Desktop (please complete the following information):

Additional Info I have attached the Player.log file Player.log

miwarnec commented 4 years ago

hey, just checked your log. there is a Nullreferencexception:

NullReferenceException: Object reference not set to an instance of an object at DOTSNET.NetworkServerSystem.StartServer () [0x00022] in :0 at DOTSNET.NetworkServerAuthoring.Awake () [0x00039] in :0

Can you check if there is anything null that shouldn't be?

rotolonico commented 4 years ago

After doing some debugging I found out the game would not crash if I deactivated all spawnable gameobjects (the 4 walls in the Physics scene). So the problem might be in the Gameobject to Entity conversion? Anyway, since it's a server build, those gameobjects weren't needed anyway so that solved my problem.

miwarnec commented 3 years ago

hm ok. I’ll still try a server build later

miwarnec commented 3 years ago

ok tried it myself. I used Unity 2020.1.16 and google cloud debian, ran it in xterm. works fine with physics demo.

if anyone else has this problem then feel free to reopen.