One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 Re: Bug Discussion » Linux segfault » 2018-04-15 19:36:59

I'm keep having segfault in Linux before the game start, black screen, no map.

gdb traced to the number of strings with getObject(id) returned NULL
I fixed like 4 or 5 such strings in game source with NULL-pointer check
(ObjectRecord *obj = getObject(id) ... if (obj) { ... })

After that I was able to play for a 2 seconds or so till the next crash.

I'm not sure if it's normal to get NULL pointer object for positive object ID.

So, did anybody else get same problem on Linux?

I run ./pullAndBuildLatest, then ./runToBuild and ./OneLifeApp
Therefore I should have latest version, right?

Okay, I just deleted everything and run ./pullAndBuildLatest
after that problem has gone.

Board footer

Powered by FluxBB