bugFreeciv - Bugs: bug #17608, gtk_table_resize: assertion...

 
 
Show feedback again

bug #17608: gtk_table_resize: assertion `n_cols > 0 && n_cols <= 65535' failed

Submitted by:  Daniel Markstedt <dmarks>
Submitted on:  Sun 30 Jan 2011 06:19:22 AM UTC  
 
Category: client-gtk-2.0Severity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: Jacob Nevins <jtn>Open/Closed: Closed
Release: 2.3.0-beta3Operating System: GNU/Linux
Planned Release: 2.3.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue 15 Feb 2011 09:50:39 PM UTC, SVN revision 19348:

Fix Gtk error when "Arrange widgets for small displays" is enabled:
Gtk-CRITICAL **: gtk_table_resize: assertion `n_cols > 0 && n_cols <= 65535' failed

Reported by Daniel Markstedt (dmarks@gna), Angelo Locritani (alocritani@gna),
and Joan Creus (jcreus@gna).

See gna bug #17608.

(Browse SVN revision 19348)

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Tue 15 Feb 2011 09:48:24 PM UTC, SVN revision 19347:

Fix Gtk error when "Arrange widgets for small displays" is enabled:
Gtk-CRITICAL **: gtk_table_resize: assertion `n_cols > 0 && n_cols <= 65535' failed

Reported by Daniel Markstedt (dmarks@gna), Angelo Locritani (alocritani@gna),
and Joan Creus (jcreus@gna).

See gna bug #17608.

(Browse SVN revision 19347)

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Sun 13 Feb 2011 02:34:34 PM UTC, comment #6:

Looks like it was caused by the fix for bug #17456: in gui-gtk-2.0/gui_main.c:populate_unit_pixmap_table(), num_units_below is set to 0, which is passed to gtk_table_resize(), which then complains. Which raises the question of how it ever worked; perhaps some versions of Gtk are fussier than others?

(Still investigating.)

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Sun 13 Feb 2011 02:27:17 PM UTC, comment #5:

Here's a backtrace (although I've not built with Gtk debugging symbols). Code is S2_3 r19324.

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Sun 13 Feb 2011 02:24:31 PM UTC, comment #4:

I wrote:

> is there a way of forcing GTK to segfault or otherwise get a
> backtrace when it hits a "Gtk-CRITICAL"?

Yes: "freeciv-gtk2 -- --g-fatal-warnings".

> Otherwise, perhaps it's some setting difference?

Oops, dmarks already answered that in comment #2; if I set gui_gtk2_small_display_layout, I can see the problem.

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Sun 13 Feb 2011 02:16:39 PM UTC, comment #3:

Also seen by alocritani (duplicate bug #17724).

Not sure how to debug this -- is there a way of forcing GTK to segfault or otherwise get a backtrace when it hits a "Gtk-CRITICAL"?

Otherwise, perhaps running the client as something like "freeciv-gtk2 -d 4 >logfile 2>&1" and attaching "logfile" will give us a clue whenabouts this is happening?

Otherwise, perhaps it's some setting difference? Can someone who sees this attach their ~/.freeciv-client-rc-2.3?

Jacob Nevins <jtn>
Project AdministratorIn charge of this item.
Sat 05 Feb 2011 08:53:08 PM UTC, comment #2:

And again in 2.3.0-beta3 code.

Just starting a new game triggers the message.

One additional clue: 'small screen' setting seems to be a prerequisite.

Daniel Markstedt <dmarks>
Project Administrator
Sun 30 Jan 2011 09:20:44 PM UTC, comment #1:

This could be related to the citizens patches. It adds a new gtk widget for the list of citizens. I can not recreate the message.

Matthias Pfafferodt <syntron>
Project Member
Sun 30 Jan 2011 06:19:22 AM UTC, original submission:

S2_3 r19149, debugging enabled; the following appeared twice in the terminal while using the client:

(freeciv-gtk2:28028): Gtk-CRITICAL **: gtk_table_resize: assertion `n_cols > 0 && n_cols <= 65535' failed

Still unclear what triggers it.

Daniel Markstedt <dmarks>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #12429:  trunk-S2_3-moreunits-arrow-small-display.diff added by jtn (2kB - text/x-diff - trunk/S2_3 r19324: avoid Gtk-CRITICAL error when configured for small displays)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by jtn
  • -unavailable- added by syntron (Posted a comment)
  • -unavailable- added by dmarks (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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 15 Feb 2011 09:50:59 PM UTCjtnStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 13 Feb 2011 05:58:57 PM UTCjtnAttached File-=>Added trunk-S2_3-moreunits-arrow-small-display.diff, #12429
      Priority3 - Low=>5 - Normal
      StatusConfirmed=>Ready For Test
      Assigned toNone=>jtn
    Sun 13 Feb 2011 02:24:31 PM UTCjtnStatusNone=>Confirmed
      ReleaseS2_3=>2.3.0-beta3
      Planned Release=>2.3.0
    Sun 13 Feb 2011 02:15:14 PM UTCjtnCarbon-Copy-=>Added alocritani
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup