Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[wx 2.8.7, GTK 2, gcc 4.1.2] assertion failures in AUI

6 views
Skip to first unread message

Matthias Buelow

unread,
Feb 13, 2008, 8:27:09 AM2/13/08
to
Hi folks,

with wxGTK 2.8.7 on Debian 4.0/x86_x64, I always get failed assertions
when undocking or re-docking an AUI pane from/to a window, and when
trying to rearrange the tab panes in an AUI notebook. AFAIR, this didn't
happen in the version I used before (I think it was 2.8.6). The
following is from the auidemo that comes with wxWidgets:

[Debug] 02:20:57 PM: ./src/gtk/frame.cpp(330): assert "(m_wxwindow !=
NULL)" failed in GtkOnSize(): invalid frame

Here's the backtrace:

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 47194108852864 (LWP 8475)]
0x00002aec3b4f22ac in raise () from /lib/libpthread.so.0
(gdb) bt
#0 0x00002aec3b4f22ac in raise () from /lib/libpthread.so.0
#1 0x0000000000436fbc in wxTrap () at ./src/common/appbase.cpp:672
#2 0x00000000004c69ee in wxGUIAppTraits::ShowAssertDialog
(this=0x9bc430, msg=@0x7fff71b8bb90)
at ./src/gtk/utilsgtk.cpp:392
#3 0x000000000043715c in ShowAssertDialog (szFile=0x6e4400, nLine=330,
szFunc=0xc6e2d8, szCond=0x6e4470,
szMsg=0x6e4378, traits=0x9bc430) at ./src/common/appbase.cpp:839
#4 0x00000000004373f4 in wxAppConsole::OnAssertFailure (this=0x97af20,
file=0x6e4400, line=330,
func=0xc6e2d8, cond=0x6e4470, msg=0x6e4378) at
./src/common/appbase.cpp:443
#5 0x00000000004a5a3c in wxApp::OnAssertFailure (this=0x97af20,
file=0x6e4400, line=330, func=0xc6e2d8,
cond=0x6e4470, msg=0x6e4378) at ./src/gtk/app.cpp:552
#6 0x000000000043726c in wxOnAssert (szFile=0x6e4400, nLine=330,
szFunc=0x6e494c "GtkOnSize",
szCond=0x6e4470, szMsg=0x6e4378) at ./src/common/appbase.cpp:712
#7 0x00000000004dade6 in wxFrame::GtkOnSize (this=0xdb7600) at
./src/gtk/frame.cpp:330
#8 0x00000000004c3fd8 in wxTopLevelWindowGTK::Show (this=0xdb7600,
show=true) at ./src/gtk/toplevel.cpp:921
#9 0x00000000005bff8c in wxAuiManager::ShowHint (this=0xcabc40,
rect=@0x7fff71b8c0c0)
at ./src/aui/framemanager.cpp:3169
#10 0x00000000005cbfda in wxAuiManager::DrawHintRect (this=0xcabc40,
pane_window=0xdb4a00,
pt=@0x7fff71b8c160, offset=@0x7fff71b8c150) at
./src/aui/framemanager.cpp:3396
#11 0x00000000005e437e in wxAuiNotebook::OnTabDragMotion (this=0xcaba00,
evt=@0x7fff71b8c4e0)
at ./src/aui/auibook.cpp:3925
#12 0x0000000000436e28 in wxAppConsole::HandleEvent (this=0x97af20,
handler=0xcaba00, func=
{__pfn = 0x5e3ec6
<wxAuiNotebook::OnTabDragMotion(wxCommandEvent&)>, __delta = 0},
event=@0x7fff71b8c4e0) at ./src/common/appbase.cpp:320
#13 0x00000000004929fe in wxEvtHandler::ProcessEventIfMatches
(entry=@0x94a988, handler=0xcaba00,
event=@0x7fff71b8c4e0) at ./src/common/event.cpp:1225
#14 0x0000000000496a29 in wxEventHashTable::HandleEvent (this=0x94a880,
event=@0x7fff71b8c4e0, self=0xcaba00)
at ./src/common/event.cpp:898
#15 0x0000000000496b6b in wxEvtHandler::ProcessEvent (this=0xcaba00,
event=@0x7fff71b8c4e0)
at ./src/common/event.cpp:1287
#16 0x0000000000496ba7 in wxEvtHandler::ProcessEvent (this=0xcabc40,
event=@0x7fff71b8c4e0)
at ./src/common/event.cpp:1294
#17 0x0000000000545c86 in wxWindowBase::TryParent (this=0xdc06a0,
event=@0x7fff71b8c4e0)
at ./src/common/wincmn.cpp:2612
#18 0x0000000000496bcc in wxEvtHandler::ProcessEvent (this=0xdc06a0,
event=@0x7fff71b8c4e0)
at ./src/common/event.cpp:1300
#19 0x00000000005d84f6 in wxAuiTabCtrl::OnMotion (this=0xdc06a0,
evt=@0x7fff71b8c850)
at ./src/aui/auibook.cpp:2582
#20 0x0000000000436e28 in wxAppConsole::HandleEvent (this=0x97af20,
handler=0xdc06a0, func=
{__pfn = 0x5d8222 <wxAuiTabCtrl::OnMotion(wxMouseEvent&)>, __delta
= 0}, event=@0x7fff71b8c850)
at ./src/common/appbase.cpp:320
#21 0x00000000004929fe in wxEvtHandler::ProcessEventIfMatches
(entry=@0x94a750, handler=0xdc06a0,
event=@0x7fff71b8c850) at ./src/common/event.cpp:1225
#22 0x0000000000496a29 in wxEventHashTable::HandleEvent (this=0x94a580,
event=@0x7fff71b8c850, self=0xdc06a0)
at ./src/common/event.cpp:898
#23 0x0000000000496b6b in wxEvtHandler::ProcessEvent (this=0xdc06a0,
event=@0x7fff71b8c850)
at ./src/common/event.cpp:1287
#24 0x00000000004c9368 in wxWindow::GTKProcessEvent (this=0xdc06a0,
event=@0x7fff71b8c850)
at ./src/gtk/window.cpp:1399
#25 0x00000000004d026a in gtk_window_motion_notify_callback
(widget=0xc84340, gdk_event=0xbcff30,
win=0xdc06a0) at ./src/gtk/window.cpp:1752
#26 0x00002aec3962164d in _gtk_marshal_BOOLEAN__BOXED () from
/usr/lib/libgtk-x11-2.0.so.0
#27 0x00002aec3a8aa479 in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#28 0x00002aec3a8b9ae1 in g_signal_chain_from_overridden () from
/usr/lib/libgobject-2.0.so.0
#29 0x00002aec3a8bab5e in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#30 0x00002aec3a8baf73 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#31 0x00002aec396f7e4e in gtk_widget_get_default_style () from
/usr/lib/libgtk-x11-2.0.so.0
#32 0x00002aec3961b2ae in gtk_propagate_event () from
/usr/lib/libgtk-x11-2.0.so.0
#33 0x00002aec3961c357 in gtk_main_do_event () from
/usr/lib/libgtk-x11-2.0.so.0
#34 0x00002aec3996452c in _gdk_events_init () from
/usr/lib/libgdk-x11-2.0.so.0
#35 0x00002aec3ac14913 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#36 0x00002aec3ac1775d in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#37 0x00002aec3ac17a46 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#38 0x00002aec3961c6b2 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#39 0x00000000006261ee in wxEventLoop::Run (this=0xde3a10) at
./src/gtk/evtloop.cpp:76
#40 0x00000000004f2a5a in wxAppBase::MainLoop (this=0x97af20) at
./src/common/appcmn.cpp:312
#41 0x00000000004f24ad in wxAppBase::OnRun (this=0x97af20) at
./src/common/appcmn.cpp:367
#42 0x0000000000464717 in wxEntry (argc=@0x93f670, argv=0x9548e0) at
./src/common/init.cpp:456
#43 0x00000000004647e2 in wxEntry (argc=@0x7fff71b8d28c,
argv=0x7fff71b8d368) at ./src/common/init.cpp:468
#44 0x000000000042e770 in main (argc=1, argv=0x7fff71b8d368) at
./auidemo.cpp:50

My apologies if the bug is already known. If this isn't the correct list
to send bug reports to, please let me know where I should send this.

TIA. mkb.

Riccardo Cohen

unread,
Feb 13, 2008, 8:45:37 AM2/13/08
to
I don't have this on wx2.9 gtk2

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>
>

--
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
For additional commands, e-mail: wx-use...@lists.wxwidgets.org

Matthias Buelow

unread,
Feb 13, 2008, 9:55:41 AM2/13/08
to
Riccardo Cohen wrote:

> I don't have this on wx2.9 gtk2

With the freshly checked-out svn version, rearranging the tabs doesn't
crash but re-docking a pane gets:

--------------------snip--------------------

(auidemo:27124): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion
`height >= -1' failed
[Debug] 03:51:22 PM: ../src/gtk/dcclient.cpp(1938): assert "IsOk()"
failed in SetBackground(): invalid window dc

Program received signal SIGTRAP, Trace/breakpoint trap.

[Switching to Thread 47630120540800 (LWP 27124)]
0x00002b51bfa182ac in raise () from /lib/libpthread.so.0
(gdb) bt
#0 0x00002b51bfa182ac in raise () from /lib/libpthread.so.0
#1 0x000000000043b630 in wxTrap () at ../src/common/appbase.cpp:815
#2 0x00000000004f4253 in wxGUIAppTraits::ShowAssertDialog
(this=0x9d9d40, msg=@0x7fffed666200)
at ../src/gtk/utilsgtk.cpp:437
#3 0x000000000043ba6b in ShowAssertDialog (szFile=@0x7fffed666450,
nLine=1938,
szFunc=@0x7fffed666430, szCond=@0x7fffed666410,
szMsg=@0x7fffed6663f0, traits=0x9d9d40)
at ../src/common/appbase.cpp:1054
#4 0x000000000043c7a1 in wxAppConsoleBase::OnAssertFailure
(this=0x9ea6b0, file=0xef3480,
line=1938, func=0xe7c840, cond=0xee5da0, msg=0xef7460) at
../src/common/appbase.cpp:575
#5 0x00000000004e09c0 in wxApp::OnAssertFailure (this=0x9ea6b0,
file=0xef3480, line=1938,
func=0xe7c840, cond=0xee5da0, msg=0xef7460) at ../src/gtk/app.cpp:551
#6 0x000000000043bc2f in wxDoOnAssert (szFile=@0x7fffed666660, nLine=1938,
szFunc=@0x7fffed666640, szCond=@0x7fffed666620, szMsg=@0x7fffed666600)
at ../src/common/appbase.cpp:854
#7 0x000000000043bd8e in wxOnAssert (szFile=0x7a22d9
"../src/gtk/dcclient.cpp", nLine=1938,
szFunc=0x7a30c3 "SetBackground", szCond=0x7a2630 "IsOk()",
szMsg=0x7a25e8)
at ../src/common/appbase.cpp:928
#8 0x0000000000687507 in wxWindowDCImpl::SetBackground (this=0xef6ed0,
brush=@0x7fffed666730)
at ../src/gtk/dcclient.cpp:1938
#9 0x000000000068f3d6 in wxMemoryDCImpl::SetBackground (this=0xef6ed0,
brushOrig=@0x7fffed6668a0)
at ../src/gtk/dcmemory.cpp:120
#10 0x0000000000501054 in wxDC::SetBackground (this=0x7fffed666830,
brush=@0x7fffed6668a0)
at ../include/wx/dc.h:659
#11 0x00000000005f07ad in wxHtmlWindow::OnPaint (this=0xe1fb70) at
../src/html/htmlwin.cpp:1020
#12 0x000000000043b44c in wxAppConsoleBase::HandleEvent (this=0x9ea6b0,
handler=0xe1fb70, func=
{__pfn = 0x5f05f2 <wxHtmlWindow::OnPaint(wxPaintEvent&)>, __delta
= 0},
event=@0x7fffed666ca0) at ../src/common/appbase.cpp:417
#13 0x00000000004c8e7a in wxEvtHandler::ProcessEventIfMatches
(entry=@0x9bb810, handler=0xe1fb70,
event=@0x7fffed666ca0) at ../src/common/event.cpp:1229
#14 0x00000000004cde0f in wxEventHashTable::HandleEvent (this=0x9bb6e0,
event=@0x7fffed666ca0,
self=0xe1fb70) at ../src/common/event.cpp:908
#15 0x00000000004cdf51 in wxEvtHandler::ProcessEvent (this=0xe1fb70,
event=@0x7fffed666ca0)
at ../src/common/event.cpp:1291
#16 0x00000000004cdf8d in wxEvtHandler::ProcessEvent (this=0x9caa50,
event=@0x7fffed666ca0)
at ../src/common/event.cpp:1301
#17 0x00000000005afd51 in wxScrollHelperEvtHandler::ProcessEvent
(this=0x9caa50,
event=@0x7fffed666ca0) at ../src/generic/scrlwing.cpp:206
#18 0x00000000004cb3a9 in wxEvtHandler::SafelyProcessEvent
(this=0x9caa50, event=@0x7fffed666ca0)
at ../src/common/event.cpp:1315
#19 0x000000000058a765 in wxWindowBase::HandleWindowEvent
(this=0xe1fb70, event=@0x7fffed666ca0)
at ../src/common/wincmn.cpp:1071
#20 0x00000000004f9387 in wxWindow::GtkSendPaintEvents (this=0xe1fb70)
at ../src/gtk/window.cpp:3620
#21 0x00000000004ff455 in gtk_window_expose_callback
(gdk_event=0x7fffed6674e0, win=0xe1fb70)
at ../src/gtk/window.cpp:320
#22 0x00002b51bdb4764d in _gtk_marshal_BOOLEAN__BOXED () from
/usr/lib/libgtk-x11-2.0.so.0
#23 0x00002b51bedd0479 in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#24 0x00002b51beddfae1 in g_signal_chain_from_overridden () from
/usr/lib/libgobject-2.0.so.0
#25 0x00002b51bede0b5e in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#26 0x00002b51bede0f73 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#27 0x00002b51bdc1de4e in gtk_widget_get_default_style () from
/usr/lib/libgtk-x11-2.0.so.0
#28 0x00002b51bdb424d0 in gtk_main_do_event () from
/usr/lib/libgtk-x11-2.0.so.0
#29 0x00002b51bde7670e in gdk_window_is_viewable () from
/usr/lib/libgdk-x11-2.0.so.0
#30 0x00002b51bde767e8 in gdk_window_process_updates () from
/usr/lib/libgdk-x11-2.0.so.0
#31 0x00000000004f9483 in wxWindow::GtkUpdate (this=0xe1fb70) at
../src/gtk/window.cpp:3498
#32 0x00000000004f9513 in wxWindow::GtkUpdate (this=0xd17300) at
../src/gtk/window.cpp:3509
#33 0x00000000004f9563 in wxWindow::Update (this=0xd17300) at
../src/gtk/window.cpp:3486
#34 0x000000000061c777 in wxAuiManager::Update (this=0xabcef8) at
../src/aui/framemanager.cpp:2543
#35 0x0000000000620c7c in wxAuiManager::OnFloatingPaneMoved
(this=0xabcef8, wnd=0xc7ff40, dir=wxUP)
at ../src/aui/framemanager.cpp:3588
#36 0x00000000006285bb in wxAuiFloatingFrame::OnMoveFinished (this=0xe858e0)
at ../src/aui/floatpane.cpp:303
#37 0x00000000006280de in wxAuiFloatingFrame::OnIdle (this=0xe858e0,
event=@0x7fffed667b00)
at ../src/aui/floatpane.cpp:270
#38 0x000000000043b44c in wxAppConsoleBase::HandleEvent (this=0x9ea6b0,
handler=0xe858e0, func=
{__pfn = 0x628092 <wxAuiFloatingFrame::OnIdle(wxIdleEvent&)>,
__delta = 0},
event=@0x7fffed667b00) at ../src/common/appbase.cpp:417
#39 0x00000000004c8e7a in wxEvtHandler::ProcessEventIfMatches
(entry=@0x9bc2e0, handler=0xe858e0,
event=@0x7fffed667b00) at ../src/common/event.cpp:1229
#40 0x00000000004cde0f in wxEventHashTable::HandleEvent (this=0x9bc200,
event=@0x7fffed667b00,
self=0xe858e0) at ../src/common/event.cpp:908
#41 0x00000000004cdf51 in wxEvtHandler::ProcessEvent (this=0xe858e0,
event=@0x7fffed667b00)
at ../src/common/event.cpp:1291
#42 0x00000000004cdf8d in wxEvtHandler::ProcessEvent (this=0xe85c98,
event=@0x7fffed667b00)
at ../src/common/event.cpp:1301
#43 0x0000000000520370 in wxAppBase::SendIdleEvents (this=0x9ea6b0,
win=0xe858e0,
event=@0x7fffed667b00) at ../src/common/appcmn.cpp:396
#44 0x00000000005203d3 in wxAppBase::SendIdleEvents (this=0x9ea6b0,
win=0xabcbd0,
event=@0x7fffed667b00) at ../src/common/appcmn.cpp:405
---Type <return> to continue, or q <return> to quit---
#45 0x0000000000520a3b in wxAppBase::ProcessIdle (this=0x9ea6b0) at
../src/common/appcmn.cpp:363
#46 0x00000000004e0bc7 in wxApp::DoIdle (this=0x9ea6b0) at
../src/gtk/app.cpp:193
#47 0x00000000004e0ca9 in wxapp_idle_callback () at ../src/gtk/app.cpp:165
#48 0x00002b51bf13a913 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#49 0x00002b51bf13d75d in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#50 0x00002b51bf13da46 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#51 0x00002b51bdb426b2 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#52 0x00000000004eaed5 in wxGUIEventLoop::Run (this=0xcc6c90) at
../src/gtk/evtloop.cpp:79
#53 0x000000000043bf9b in wxAppConsoleBase::MainLoop (this=0x9ea6b0)
at ../src/common/appbase.cpp:301
#54 0x000000000043b25a in wxAppConsoleBase::OnRun (this=0x9ea6b0) at
../src/common/appbase.cpp:249
#55 0x0000000000520b3e in wxAppBase::OnRun (this=0x9ea6b0) at
../src/common/appcmn.cpp:292
#56 0x000000000048314d in wxEntry (argc=@0x9b1990, argv=0x9c2fb0) at
../src/common/init.cpp:460
#57 0x0000000000483218 in wxEntry (argc=@0x7fffed667f1c,
argv=0x7fffed667ff8)
at ../src/common/init.cpp:472
#58 0x0000000000430976 in main (argc=1, argv=0x7fffed667ff8) at
../../../samples/aui/auidemo.cpp:50

--------------------snap--------------------

0 new messages