bugFreeciv - Bugs: bug #19064, g_object_ref: assertion...

Show feedback again

bug #19064: g_object_ref: assertion `object->ref_count > 0' failed

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Sun Nov 27 21:22:23 2011  
Category: client-gtk-2.0Severity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: S2_3 r20613Operating System: GNU/Linux
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Nov 28 00:22:34 2011, comment #3:

Well, I commented out the g_object_unref() and connected to that server a few times and didn't get warnings, but I'm not sure that proves anything; I could just be quietly leaking resources, and when I saw this behaviour on this server once before, it didn't seem reproducible (although it seems so now).

Attached a screenshot of the featured text in question, partly to give some idea about reproducing and partly because it's cute. ;)

(file #14610)

Jacob Nevins <jtn>
Project Administrator
Mon Nov 28 00:11:06 2011, comment #2:

I don't have a complete picture of what's going on yet, but I'm a little dubious about this code in gui-gtk-2.0/chatline.c:apply_text_tag():

Looking at the gtk_text_buffer_create_tag() docs, I think that the ownership of the created tag is passed to a structure inside 'buf', so the caller doesn't have to free it. The annotation "transfer none" apparently means "Don't free data after the code is done", which I think may corroborate my argument.

The same applies to case TTT_LINK.

This server uses loads of colours, though, so I'm not sure why we're not seeing loads of these warnings. Perhaps the reference count only drops below zero in unusual circumstances. Or perhaps this possible thing I've found has nothing to do with these warnings.

Jacob Nevins <jtn>
Project Administrator
Sun Nov 27 22:26:33 2011, comment #1:

Should have said, I'm connected as a global observer.

Jacob Nevins <jtn>
Project Administrator
Sun Nov 27 21:22:23 2011, original submission:

Getting some Gtk warnings from the client (S2_3 r20613, circa 2.3.1) on initial connection to the server "freeciv-debian.ns0.it" (which can be found on the metaserver at the moment).

This server sends some funky featured text on connect with a colour ASCII-art picture of a soldier; I suspect this is implicated, but I haven't investigated further.

The warnings from a normal run:

With "-d 3 -l file -- --g-fatal-warnings", it dies at the first of these, with the following backtrace:

Last few entries from the log:

Jacob Nevins <jtn>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #14610:  freeciv-debian.ns0.it.png added by jtn (170kB - image/png - screenshot of featured text from freeciv-debian.ns0.it)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jtn (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Nov 28 00:22:34 2011jtnAttached File-=>Added freeciv-debian.ns0.it.png, #14610
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup