Welcome to the Builder Academy

Question Crash on Shutdown

More
06 May 2016 03:54 #5840 by krell
Replied by krell on topic Crash on Shutdown
Hey, are you that proolix guy who shares out ccx mods on github?

Please Log in or Create an account to join the conversation.

More
06 May 2016 13:41 #5844 by prool
Replied by prool on topic Crash on Shutdown
Hi!

Yes, I have the same Prool

With best regards,

Serge V. Pustovoitoff, aka Prool or Proolix

With best regards, Prool

Please Log in or Create an account to join the conversation.

More
06 May 2016 21:00 #5850 by thomas
Replied by thomas on topic Crash on Shutdown

prool wrote: Hello,

I using gdb and found shutdown crash in file utils.c in line:

{ for (k = ch->master->followers; k->next->follower != ch; k = k->next);

And I make very dirty hack for avoid crash:

if (circle_shutdown==1) return; // before this line

Prool


That will most certainly remove the crash. The underlying problem seems to be that ch is not in the followers list of his master. This is an inconsistency in the data that makes no sense...

Please Log in or Create an account to join the conversation.

More
02 Jul 2016 18:45 #6065 by krell
Replied by krell on topic Crash on Shutdown
Thomas,

Is there anything one can do to help find out why ch isn't in the list as is expected? I'd be willing to try out some suggestions as the problem has been a real pain in my backside.

Please Log in or Create an account to join the conversation.

More
02 Jul 2016 20:29 #6066 by krell
Replied by krell on topic Crash on Shutdown
I've also implemented Prool's work-around, but I still get the same errors and fault occurring. I assume that the work-around is supposed to force the game to skip emptying the list when a shutdown has been flagged, but for some reason my copy of the game is still trying to empty the list.

Please Log in or Create an account to join the conversation.

More
03 Jul 2016 20:10 #6078 by thomas
Replied by thomas on topic Crash on Shutdown
Yes, the work-around is supposed to prevent the code from reaching the point where it crashes.

Since this still happens, I'd start putting in some logging. At least a log line before and after the lines you are told is causing the crash. Trust, but verify...

Please Log in or Create an account to join the conversation.

Time to create page: 0.190 seconds