Jump to content
Sign in to follow this  
arawra

Null Pointer on map generation

Recommended Posts

Dedicated Server

Debian 10.2

 

2020-01-29T21:26:08 1.123 INF WorldStaticData.Init() needed 0.268s
2020-01-29T21:26:08 1.130 INF Started Telnet on 8081
2020-01-29T21:26:08 1.131 INF Awake done in 1071 ms
2020-01-29T21:26:12 5.273 INF Started thread RWG
2020-01-29T21:26:12 5.274 INF WorldGenerator:Generating South Nefoyi County
2020-01-29T21:26:12 5.275 INF WorldGenerator:Generating Socket Data
Receiving unhandled NULL exception
#0  0x007fbe86e1e535 in abort
#1  0x007fbe846abb3a in GC_unmap
#2  0x007fbe846abba7 in GC_unmap_old
#3  0x007fbe846aea9d in GC_finish_collection
#4  0x007fbe846aed06 in GC_collect_a_little_inner
#5  0x007fbe846af174 in GC_allocobj
#6  0x007fbe846affa6 in GC_generic_malloc_inner
#7  0x007fbe846b2e1e in GC_generic_malloc
#8  0x007fbe846b3086 in GC_malloc_kind_global
#9  0x007fbe84686135 in mono_gc_register_root
#10 0x007fbe8463c3de in mono_runtime_exec_managed_code
#11 0x007fbe8463c555 in mono_runtime_exec_managed_code
#12 0x007fbe8463c59d in mono_object_new_specific
#13 0x00000040b92f37 in (wrapper managed-to-native) object:__icall_wrapper_ves_icall_object_new_specific (intptr)

Share this post


Link to post
Share on other sites

This seems to be a bug related to the physics engine on the Unity developer's side.

 

I'm trying to see if removing spaces from "WorldGenSeed" and "GameName" and adding a trailing slash "/" at the end of "UserDataFolder" and "SaveGameFolder" make a difference.

Share this post


Link to post
Share on other sites

Does the game have permission to the path you chose for game/player save data?

I use the game folder to make sure it has access.

 

This is what my path on a linux server looks like. I use the trailing slash. Same folder

for all data. (from Serverconfig.xml)

 

<property name="UserDataFolder" value="/home/beelzybud/.steam/steam/steamapps/common/7 Days to Die Dedicated Server/111/" />

Share this post


Link to post
Share on other sites

<property name="UserDataFolder"		    		value="/home/7dtd/7dtdserver/saves/" />
<property name="SaveGameFolder"				    value="/home/7dtd/7dtdserver/saves/" />

 

7dtd@daggoth:~/7dtdserver$ ls -l
total 75264
drwxr-xr-x  6 7dtd 7dtd     4096 Jan 29 22:38 7DaysToDieServer_Data  
-rwxr-xr-x  1 7dtd 7dtd 26239852 Jan 29 20:19 7DaysToDieServer.x86   
-rwxr-xr-x  1 7dtd 7dtd 27877680 Jan 29 20:20 7DaysToDieServer.x86_64
drwxr-xr-x 10 7dtd 7dtd     4096 Jan 29 20:26 Data
-rwxr-xr-x  1 7dtd 7dtd   922064 Jan 29 20:26 libstdc++.so.6
drwxr-xr-x  2 7dtd 7dtd     4096 Jan 29 20:26 Licenses
drwxrwxrwx  6 7dtd 7dtd     4096 Jan 29 20:34 Mods
drwxr-xr-x  4 7dtd 7dtd     4096 Jan 30 03:19 saves
-rwxr-xr-x  1 7dtd 7dtd    13479 Jan 30 03:21 serverconfig.xml       
-rwxr-xr-x  1 7dtd 7dtd      819 Jan 29 22:38 startserver.sh
-rwxr-xr-x  1 7dtd 7dtd        6 Jan 29 20:25 steam_appid.txt        
drwxr-xr-x  5 7dtd 7dtd     4096 Jan 29 20:26 steamapps
-rwxr-xr-x  1 7dtd 7dtd 21967073 Jan 29 20:20 steamclient.so

Share this post


Link to post
Share on other sites

I don't know if it's a problem, but you don't need this line:

<property name="SaveGameFolder" value="/home/7dtd/7dtdserver/saves/" />

because you're using the same path as UserDataFolder.

 

Setting the UserDataFolder path includes all data; player profiles and saves. You would

only use the SaveGameFolder property if it were a different folder than the user data.

Share this post


Link to post
Share on other sites

Again, I don't know if it's an issue, but my server gives write permissions to group,

yours does not. (I didn't change permissions, these were the defaults when I installed)

 

Also, your steamapps folder is in the game folder, whereas my game folder is in the

steamapps folder. Seems weird.

 

beelzybud@beelzybud-VirtualBox:~/.steam/steam/steamapps/common/7 Days to Die Dedicated Server$ ls -a -l
total 75264
drwxrwxr-x   4 beelzybud beelzybud     4096 Nov 24 23:44 111
drwxrwxr-x   6 beelzybud beelzybud     4096 Jan  3 20:56 7DaysToDieServer_Data
-rwxrwxr-x   1 beelzybud beelzybud 26239852 Nov 24 16:58 7DaysToDieServer.x86
-rwxrwxr-x   1 beelzybud beelzybud 27877680 Nov 24 16:58 7DaysToDieServer.x86_64
drwxrwxr-x  10 beelzybud beelzybud     4096 Nov 24 17:33 Data
-rwxrwxr-x   1 beelzybud beelzybud   922064 Nov 24 17:32 libstdc++.so.6
drwxrwxr-x   2 beelzybud beelzybud     4096 Nov 24 17:33 Licenses
-rwxrwxr-x   1 beelzybud beelzybud    12903 Nov 25 02:19 serverconfig.xml
-rwxrwxr-x   1 beelzybud beelzybud      847 Nov 24 17:32 startserver.sh
-rwxrwxr-x   1 beelzybud beelzybud        6 Nov 24 17:32 steam_appid.txt
-rwxrwxr-x   1 beelzybud beelzybud 21967073 Nov 24 17:32 steamclient.so
beelzybud@beelzybud-VirtualBox:~/.steam/steam/steamapps/common/7 Days to Die Dedicated Server$

Edited by Beelzybub (see edit history)

Share this post


Link to post
Share on other sites
Also, your steamapps folder is in the game folder, whereas my game folder is in the

steamapps folder. Seems weird.

 

I specified a force_install_dir in steamcmd when installing the server.

 

I don't know if it's a problem, but you don't need this line:

<property name="SaveGameFolder" value="/home/7dtd/7dtdserver/saves/" />

because you're using the same path as UserDataFolder.

 

This made no difference.

Share this post


Link to post
Share on other sites

Since there is malloc() involved, what size of world do you try to generate and how big is the memory of your machine?

Share this post


Link to post
Share on other sites
Since there is malloc() involved, what size of world do you try to generate and how big is the memory of your machine?

This is a good point.

 

It would be best if the OP provided both the full log, and the config file map settings.

 

Don't forget to use Pastebin.

Share this post


Link to post
Share on other sites

Log right before crash

https://pastebin.com/Vr5zN1Zn

 

Config

https://pastebin.com/zegzXGP3

 

- - - Updated - - -

 

Persistent Issue

7dtd@daggoth:~/7dtdserver$ ls -l
total 75264
drwxrwxr-x  6 7dtd 7dtd     4096 Jan 29 22:38 7DaysToDieServer_Data
-rwxrwxr-x  1 7dtd 7dtd 26239852 Jan 29 20:19 7DaysToDieServer.x86
-rwxrwxr-x  1 7dtd 7dtd 27877680 Jan 29 20:20 7DaysToDieServer.x86_64
drwxrwxr-x 10 7dtd 7dtd     4096 Jan 29 20:26 Data
-rwxrwxr-x  1 7dtd 7dtd   922064 Jan 29 20:26 libstdc++.so.6
drwxrwxr-x  2 7dtd 7dtd     4096 Jan 29 20:26 Licenses
drwxrwxr-x  6 7dtd 7dtd     4096 Jan 30 22:08 Mods
drwxrwxr-x  6 7dtd 7dtd     4096 Jan 30 18:35 saves
-rwxrwxr-x  1 7dtd 7dtd    13487 Jan 30 18:34 serverconfig.xml
-rwxrwxr-x  1 7dtd 7dtd      819 Jan 29 22:38 startserver.sh
-rwxrwxr-x  1 7dtd 7dtd        6 Jan 29 20:25 steam_appid.txt
drwxrwxr-x  5 7dtd 7dtd     4096 Jan 29 20:26 steamapps
-rwxrwxr-x  1 7dtd 7dtd 21967073 Jan 29 20:20 steamclient.so

Share this post


Link to post
Share on other sites

You need a minimum of 32GB RAM to make a 16k map, and it will probably take 6-9 hours to do so if you have that much.

 

Your issue is not enough RAM for an unsupported map size.

 

- - - Updated - - -

 

Well in testing, with 24 cores and 64GB RAM, the map took about 9 hours to make. I haven't made a serious attempt since 18.1 though.

Share this post


Link to post
Share on other sites
You need a minimum of 32GB RAM to make a 16k map, and it will probably take 6-9 hours to do so if you have that much.

 

Your issue is not enough RAM for an unsupported map size.

 

- - - Updated - - -

 

Well in testing, with 24 cores and 64GB RAM, the map took about 9 hours to make. I haven't made a serious attempt since 18.1 though.

 

This is literally false as I have made 16k maps before with 16GB RAM. Someone else I know has done so as well. This is on varying architecture as well. The main difference in this situation is that it is on Debian vs. Windows.

 

I would also ask for documentation or a source material on this assertion.

Share this post


Link to post
Share on other sites
This is literally false as I have made 16k maps before with 16GB RAM. Someone else I know has done so as well. This is on varying architecture as well. The main difference in this situation is that it is on Debian vs. Windows.

 

I would also ask for documentation or a source material on this assertion.

 

With the same version of 7D2D? RWG code changes all the time.

 

I don't know what memory a 16k map needs but I can tell you that Sylen is definitely correct with the statement that 16k maps are not supported by vanilla 7D2D since A17. And RWG needs lots of memory and time on machines where the GPU can't be used for generation.

 

There is a dependable solution though: As far as I know, Nitrogen is able to generate 16k maps. Nitrogen is a separate program made by a modder here on the forum that generates a map suitable for 7D2D

Edited by meganoth (see edit history)

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...