r3274 Console warning on quitting the game.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Enjay
 
 
Posts: 26938
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

r3274 Console warning on quitting the game.

Post by Enjay »

Whenever I play a game, when I quit, the following message is sent to the console:

Code: Select all

Warning: 'Object' is freed outside the GC process.
To replicate, start a game with a log file running, enter the first map then quit. The above line should be at the end of your log file. Happens to me every time in Zdoom and GZdoom and in any of the supported games. It doesn't seem to have a detrimental effect, but it's there, so I reported it.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: r3274 Console warning on quitting the game.

Post by Edward-san »

Do you mean running it like this:

Code: Select all

zdoom +logfile foo.log
?
In that case I cannot reproduce this in linux Ubuntu 10.10 x86-64 release and debug, r3274. The last message in console is this:

Code: Select all

+MAP01 - entryway
Also, can you reproduce this in r3271 and below?
User avatar
Enjay
 
 
Posts: 26938
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: r3274 Console warning on quitting the game.

Post by Enjay »

Edward-san wrote:Do you mean running it like this:
Yes.

Full log
Spoiler:
Edward-san wrote:Also, can you reproduce this in r3271 and below?
Of the revisions that I have quick access to, r3263 shows this behaviour but r3249 does not. So the change that caused this happened sometime between those two revisions.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: r3274 Console warning on quitting the game.

Post by Edward-san »

Two lines are interesting:

Code: Select all

16 bots read from bots.cfg
and

Code: Select all

ACS scripts unloaded.
I don't have these ones. What happens if you don't use bots?

That warning message is displayed in the destructor of the DObject class:

Code: Select all

		if (!(ObjectFlags & OF_YesReallyDelete))

		{

			Printf ("Warning: '%s' is freed outside the GC process.\n",

				type != NULL ? type->TypeName.GetChars() : "==some object==");

		}
I checked the changes on the file dobject.cpp, an this has only a new include in r3259:

Code: Select all

#include "farchive.h"
And in dobject.h this is added (r3263):

Code: Select all

	// For cleanup

	void DelSoftRootHead();
User avatar
Enjay
 
 
Posts: 26938
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: r3274 Console warning on quitting the game.

Post by Enjay »

Edward-san wrote:Two lines are interesting:

Code: Select all

16 bots read from bots.cfg
and

Code: Select all

ACS scripts unloaded.
The first line is normal if you have a bots.cfg file in a zcajun sub folder of Zdoom. It does not mean that I am using bots, merely that Zdoom has loaded the definitions for 16 bots from the file. Removing my zcajun folder removes the "16 bots" message but does not change the "GC process" message.

The "ACS scripts unloaded" is a message that you get if the map is question is in ZdoomHexen format but does not have any scripts. Specifically, in this case, my Doom2 IWAD has been run through ZWADCONV for editing purposes. However, using an unaltered IWAD still gives the "GC process" message.
User avatar
Kappes Buur
 
 
Posts: 4168
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: r3274 Console warning on quitting the game.

Post by Kappes Buur »

For me

Warning: 'Object' is freed outside the GC process.

first happens with

GZDoom 1221 2011-07-06 12:47:47 gez /trunk/ * Updated to ZDoom r3249:
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Post by Gez »

Funnily enough, I don't get that bug in GZDoom r1224 or earlier... It appears in r1225 for me.

Checking the corresponding ZDoom versions, I get the expected results: there's no such warning message in r3262; which is the version that corresponds to GZDoom r1224; but the warning message does appear in r3263, which corresponds to GZDoom r1225.


Fixed in GZDoom.
Post Reply

Return to “Closed Bugs [GZDoom]”