Opened 12 years ago

Closed 10 years ago

#3387 closed defect (fixed)

GTK errors after Remove and Insert sub-menu item

Reported by: mart-k Owned by:
Priority: normal Milestone:
Component: wxGTK Version:
Keywords: wxMenuBar Cc: mart-k
Blocked By: Blocking:
Patch: no

Description

The attached program shows GTK-CRITICAL errors
reported when manipulating an item in a menu, using
RemoveItem and InsertItem, the item with a problem is
a sub-menu.

The program sets up a simple menu with an item with a
sub-menu. The sub-menu item is removed and reinserted
and then further manipulated. During this subsequent
manipulation get errors for removing items from the
sub-menu and for inserting to the main menu.

Output from running:
OSversion (31, 2, 6)
Wx Version 2.6.3.2
One

(python:23656): Gtk-CRITICAL : file gtkwidget.c:
line 1911 (gtk_widget_destroy): assertion
`GTK_IS_WIDGET (widget)' failed
Two

(python:23656): Gtk-CRITICAL : file gtkwidget.c:
line 1911 (gtk_widget_destroy): assertion
`GTK_IS_WIDGET (widget)' failed
Three
Four

(python:23656): Gtk-CRITICAL : file gtkwindow.c:
line 6380 (gtk_window_set_screen): assertion
`GTK_IS_WINDOW (window)' failed
Five

(python:23656): Gtk-CRITICAL : file gtkwindow.c:
line 6562 (gtk_window_group_add_window): assertion
`GTK_IS_WINDOW (window)' failed

(python:23656): Gtk-CRITICAL : file gtkwindow.c:
line 3259 (gtk_window_move): assertion `GTK_IS_WINDOW
(window)' failed

(python:23656): Gtk-CRITICAL : file gtkwidget.c:
line 2560 (gtk_widget_size_request): assertion
`GTK_IS_WIDGET (widget)' failed

(python:23656): Gtk-CRITICAL : file gtkwidget.c:
line 2674 (gtk_widget_size_allocate): assertion
`GTK_IS_WIDGET (widget)' failed

(python:23656): Gtk-CRITICAL : file gtkwidget.c:
line 2221 (gtk_widget_realize): assertion

`GTK_WIDGET_ANCHORED (widget)
GTK_IS_INVISIBLE

(widget)' failed

Attachments (1)

demo_wx.py download (1.1 KB) - added by mart-k 12 years ago.
Demonstration program

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mart-k

Demonstration program

comment:1 Changed 10 years ago by wojdyr

  • Component set to wxGTK
  • Keywords wxMenuBar added
  • Status changed from new to confirmed

I can see Gtk-CRITICAL's also in 2.8.7

comment:2 Changed 10 years ago by arst

I found this bug in trunk some 6 months ago and submitted a patch to it. So it should be corrected there.

So it would need backporting.

Regards
arst

comment:3 Changed 10 years ago by pcor

  • Resolution set to fixed
  • Status changed from confirmed to closed

Fixed in rev 53753.

Note: See TracTickets for help on using tickets.