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

Matthias Buelow mkb at incubus.de
Wed Feb 13 06:55:41 PST 2008


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--------------------






More information about the wx-users mailing list