Jump to content
  • NullReferenceException: Object reference not set to an instance of an object error prevents joining the server


    Flar

    Summary: erroring out on joining a dedicated server ive previously played on. 

     

    Game Version: A20 B233

    Platform: PC

    OS/Version: Windows 10 21H1

    CPU Model: AMD Ryzen 5 2600

    System Memory: 16 GB

    GPU Model and VRAM: AMD RX 580 8 GB

    Screen Resolution: 1080p

    Video Settings: low \ medium

    Game mode: MP Client

     

    Did you wipe old saves? YES 

    Did you start a new game? YES 

    Did you validate your files? YES

    Are you using any mods? NO

    EAC on or off? ON

     

    Status: NEW

     

    Bug Description:
    After my client updated from b231 to b233, i can no longer join a dedicated server that i was playing approxh 10+ hours since A20 went to Experimental. 
    When joining the server, at the stage of Creating Character, console shows me NullReferenceException: Object reference not set to an instance of an object
     

    In the log file more detailed 
     NullReferenceException: Object reference not set to an instance of an object
      at GameManager.PlayerId (System.Int32 _playerId, System.Int32 _teamNumber, PlayerDataFile _playerDataFile, System.Int32 _chunkViewDim) [0x0005d] in <e905376b19ea4fabb0377334749ef142>:0 
      at NetPackagePlayerId.ProcessPackage (World _world, GameManager _callbacks) [0x00000] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection, ClientInfo _clientInfo) [0x000c8] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.Update () [0x000f6] in <e905376b19ea4fabb0377334749ef142>:0 
     

    Detailed steps to reproduce the bug:
    Unknown.
    Validated the server and client. Same error on joining. Re-downloaded client and server files from scratch. Same error. 
    Checked same map file locally - works fine. Loaded into several other dedicated servers - works fine. 
    Changed Player Profile to a new, empty one. Same error on joining.
    Cleared game data trough launcher (before updating to Experimental AND after seeing this issue). Same error.
    Manually removed 7DTD folder from my Windows profile so the game would recreate it. Same error. 

    Other player (using Proton on Linux) can join server without an issue. Will attempt to check if another Windows player can join the server. 
     
    Actual result: loading to dedicated server stops with an error above

     

    Expected result: load to this specific dedicated server. 

    No GenerationInfo.txt found within the GeneratedWorlds corresponding folder. 

     


    User Feedback

    Recommended Comments

    15 minutes ago, 3ternalDamned said:

    Does it show the server as having been updated to A20 b233? Or is it possible that it is still on A20 b231?

    server is certainly updated to B233 version by cleaning up previous install and re-downloading it with current experimental branch. Seeing it on the server browser. 

    Testing a few options right now. So far my suspicion is that something weird happened with my save file\character file. Trying to use A20 generated map we`ve already played on. 

    however, now when i think of it, ive seen this issue first when my client updated itself to b233 but server wasnt (runned by a friend, i don`t have access to update it but i can grab servers logs\saves\config from him if that`ll help with this one)

    Link to comment
    Share on other sites

    testing around, we did next:

    Stopped the server. Archived it. Left the MAP, but not character save files. Downloaded default config file.
    Ive managed to login - with a new, fresh character.

    Trying to restore server from the backup to see if it changed anything, yet i`m keep loading in with "new", blank character, even tho save files on the server is restored. 
    I was still thinking that the error i was gettting is related to my save-file somehow but can`t prove it as of now. 

    Link to comment
    Share on other sites

    Nope. Same deal when we restore server with my character.

    Some more logs, might be important, idk

     

    NullReferenceException: Object reference not set to an instance of an object
      at GameManager.PlayerId (System.Int32 _playerId, System.Int32 _teamNumber, PlayerDataFile _playerDataFile, System.Int32 _chunkViewDim) [0x0005d] in <e905376b19ea4fabb0377334749ef142>:0 
      at NetPackagePlayerId.ProcessPackage (World _world, GameManager _callbacks) [0x00000] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection, ClientInfo _clientInfo) [0x000c8] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.Update () [0x000f6] in <e905376b19ea4fabb0377334749ef142>:0 

    2021-12-19T02:37:24 520.931 INF 32811 EntityVehicle PostInit [type=EntityBicycle, name=vehicleBicycle, id=7820], (1511.9, 43.0, -782.2) (chunk 94, -49), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 520.950 INF 32811 EntityVehicle PostInit [type=EntityVJeep, name=vehicle4x4Truck, id=15016], (1497.2, 34.0, -774.4) (chunk 93, -49), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 520.952 INF 32811 EntityVehicle PostInit [type=EntityVJeep, name=vehicle4x4Truck, id=14740], (1509.7, 34.0, -791.3) (chunk 94, -50), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 521.000 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:25 521.770 INF Warming dynamic mesh
    2021-12-19T02:37:25 521.770 INF Creating dynamic mesh manager
    2021-12-19T02:37:25 521.774 INF Dynamic mesh manager awake
    2021-12-19T02:37:25 521.774 INF Mesh location: C:\Users\Flar\AppData\Roaming/7DaysToDie/SavesLocal/E73DEF46711EAC4CB227965D3E2E7166/DynamicMeshes/
    2021-12-19T02:37:25 521.775 INF Loading Items: C:\Users\Flar\AppData\Roaming/7DaysToDie/SavesLocal/E73DEF46711EAC4CB227965D3E2E7166/DynamicMeshes/
    2021-12-19T02:37:25 521.786 INF Loaded Items: 0
    2021-12-19T02:37:25 521.787 INF Client package items: 0
    2021-12-19T02:37:25 521.787 INF Sending client arrive message. Items: 0
    2021-12-19T02:37:25 521.788 WRN Loading all items took: 0.0130007 seconds.
    2021-12-19T02:37:25 521.791 INF Clearing queues.
    2021-12-19T02:37:25 521.792 INF Cleared queues.
    2021-12-19T02:37:25 521.794 INF Dynamic thread starting
    2021-12-19T02:37:25 521.797 INF Dymesh door replacement: imposterBlock
    2021-12-19T02:37:26 522.902 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:27 523.219 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:28 524.252 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:28 524.452 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:30 526.736 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:35 531.422 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:35 531.702 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:40 537.035 INF Missing paint ID XML entry: 255 for block 'concreteShapes:cube'
    2021-12-19T02:37:45 541.585 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:46 543.102 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:47 543.302 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:47 544.119 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:48 545.085 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:49 545.519 INF Discarding NetPackagePlayerStats for entity Id=175



    weirded out as seeing this entity id=175. Seen it few times before, but not _every_ time.

    I can share a save file with the character or a world if required\helpful. 

    Link to comment
    Share on other sites

    do i need to upload a save file\map\server config for this to be looked at? 
    I can just kill my savefile from the server and start a new character, we are going to wipe anyway when this update goes to a Stable branch, but still.

    Link to comment
    Share on other sites

    On 12/18/2021 at 4:48 PM, 3ternalDamned said:

    Does it show the server as having been updated to A20 b233? Or is it possible that it is still on A20 b231?

    I've recently made a new world a week ago and one of my friends ran into this exact error code. We've done as much as we could think of to fix it and have seen no fix so far. Here are some photos of what appears on my friends screen as he's trying to join. (The second photo was taken after tweaking a few settings in the game settings)spacer.pngspacer.png 

    1 minute ago, TKT_Shawn said:

    I've recently made a new world a week ago and one of my friends ran into this exact error code. We've done as much as we could think of to fix it and have seen no fix so far. Here are some photos of what appears on my friends screen as he's trying to join. (The second photo was taken after tweaking a few settings in the game settings)spacer.pngspacer.png 

    Forgot to point at that this started to occur after the update B233

    Link to comment
    Share on other sites

    I have the same problem. When alpha 20 experimental was launched I could generate new worlds. But at a certain point after an update (don't know which one) it became impossible to generate a new world. When the generation reaches Writing Data Map Complete stays there eternally.

    Link to comment
    Share on other sites

    just to point out - this is most probably related to updates between B231 to B233. Couldn`t get that character of my back at all.
    Since A20 went to Stable, we generated new world and Clients have cleaned theyr saves (as we should) and it was working okay so far, for a brief test.
    If old save is required i might still be able to get it to be looked at as we have a backup system for our server in case something hardware or os like would crash. Currently, with fresh map and character, i do not see the issue, however im very concerned it`s been there. Not very keen on loosing a character progression if this reoccurs. 

    Link to comment
    Share on other sites

    Screenshots of the error are not helpful. MUST include FULL client and server output logs from the same session.

    Also, experimental is experimental for a reason. Please start a new save game in stable and let us know if you have anymore issues. 

    Link to comment
    Share on other sites

    Stable so far been fine.
    I will take a look if i have still those full logs, will include if so.

    ...However ive posted already exact errors from the log

     NullReferenceException: Object reference not set to an instance of an object
      at GameManager.PlayerId (System.Int32 _playerId, System.Int32 _teamNumber, PlayerDataFile _playerDataFile, System.Int32 _chunkViewDim) [0x0005d] in <e905376b19ea4fabb0377334749ef142>:0 
      at NetPackagePlayerId.ProcessPackage (World _world, GameManager _callbacks) [0x00000] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection, ClientInfo _clientInfo) [0x000c8] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.Update () [0x000f6] in <e905376b19ea4fabb0377334749ef142>:0 

    And another case, same issue

     

    NullReferenceException: Object reference not set to an instance of an object
      at GameManager.PlayerId (System.Int32 _playerId, System.Int32 _teamNumber, PlayerDataFile _playerDataFile, System.Int32 _chunkViewDim) [0x0005d] in <e905376b19ea4fabb0377334749ef142>:0 
      at NetPackagePlayerId.ProcessPackage (World _world, GameManager _callbacks) [0x00000] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.ProcessPackages (INetConnection _connection, NetPackageDirection _disallowedDirection, ClientInfo _clientInfo) [0x000c8] in <e905376b19ea4fabb0377334749ef142>:0 
      at ConnectionManager.Update () [0x000f6] in <e905376b19ea4fabb0377334749ef142>:0 

    2021-12-19T02:37:24 520.931 INF 32811 EntityVehicle PostInit [type=EntityBicycle, name=vehicleBicycle, id=7820], (1511.9, 43.0, -782.2) (chunk 94, -49), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 520.950 INF 32811 EntityVehicle PostInit [type=EntityVJeep, name=vehicle4x4Truck, id=15016], (1497.2, 34.0, -774.4) (chunk 93, -49), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 520.952 INF 32811 EntityVehicle PostInit [type=EntityVJeep, name=vehicle4x4Truck, id=14740], (1509.7, 34.0, -791.3) (chunk 94, -50), rbPos (0.0, 0.0, 0.0)
    2021-12-19T02:37:24 521.000 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:25 521.770 INF Warming dynamic mesh
    2021-12-19T02:37:25 521.770 INF Creating dynamic mesh manager
    2021-12-19T02:37:25 521.774 INF Dynamic mesh manager awake
    2021-12-19T02:37:25 521.774 INF Mesh location: C:\Users\Flar\AppData\Roaming/7DaysToDie/SavesLocal/E73DEF46711EAC4CB227965D3E2E7166/DynamicMeshes/
    2021-12-19T02:37:25 521.775 INF Loading Items: C:\Users\Flar\AppData\Roaming/7DaysToDie/SavesLocal/E73DEF46711EAC4CB227965D3E2E7166/DynamicMeshes/
    2021-12-19T02:37:25 521.786 INF Loaded Items: 0
    2021-12-19T02:37:25 521.787 INF Client package items: 0
    2021-12-19T02:37:25 521.787 INF Sending client arrive message. Items: 0
    2021-12-19T02:37:25 521.788 WRN Loading all items took: 0.0130007 seconds.
    2021-12-19T02:37:25 521.791 INF Clearing queues.
    2021-12-19T02:37:25 521.792 INF Cleared queues.
    2021-12-19T02:37:25 521.794 INF Dynamic thread starting
    2021-12-19T02:37:25 521.797 INF Dymesh door replacement: imposterBlock
    2021-12-19T02:37:26 522.902 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:27 523.219 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:28 524.252 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:28 524.452 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:30 526.736 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:35 531.422 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:35 531.702 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:40 537.035 INF Missing paint ID XML entry: 255 for block 'concreteShapes:cube'
    2021-12-19T02:37:45 541.585 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:46 543.102 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:47 543.302 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:47 544.119 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:48 545.085 INF Discarding NetPackagePlayerStats for entity Id=175
    2021-12-19T02:37:49 545.519 INF Discarding NetPackagePlayerStats for entity Id=175

     

    Link to comment
    Share on other sites

    Understood. Will take a look when finish with work, if  logs are still there, and if yes - will upload a few files. Have quite a few as experimented around this for quite a lot, if they arent been deleted by clearing game data.

    Link to comment
    Share on other sites

    First
    https://pastebin.com/QiNUdGHX

    Second
    https://pastebin.com/67gJtVVS

    Third
    https://pastebin.com/4TswwTLR

    unfortunately, i`ve deleted rest of the files when were doing clean reinstall of the client while trying to diagnose what caused this issue, but this are 3 log files that has this error.
    Im sure ive been logging into same server at the time.
    Im sure i have not seen same error logging to another server \ locally. 

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...