[Qt-interest] QT Creator hangs drawing window

Andrew Brooks arb at sat.dundee.ac.uk
Thu Apr 9 11:29:16 CEST 2009


Hello

I've just built Qt-4.5.0 and Qt-Creator-1.0.0 but it hangs.  It opens a window
which is totally grey, no content whatsoever, and gets stuck consuming CPU time
but not making any system calls.  I tried on two different linux boxes and used
strace to verify the latter.

Then I ran it under gdb, waited a while to make sure it was hanging and pressed
CTRL-C; below is the call stack.

Does anyone have any clues why it's hanging?

Andrew

(gdb) run
Starting program: /software/qt/qt-creator-1.0.0-src/bin/qtcreator
[Thread debugging using libthread_db enabled]
[New Thread 1095475360 (LWP 2322)]
[New Thread 1142127536 (LWP 2390)]
[Thread 1142127536 (LWP 2390) exited]
[New Thread 1150520240 (LWP 2391)]
[Thread 1150520240 (LWP 2391) exited]
[New Thread 1150520240 (LWP 2392)]
[New Thread 1142127536 (LWP 2393)]
Detaching after fork from child process 2394.
Detaching after fork from child process 2395.
Detaching after fork from child process 2397.
[New Thread 1158958000 (LWP 2398)]
[New Thread 1167350704 (LWP 2399)]
[New Thread 1175743408 (LWP 2400)]
[Thread 1158958000 (LWP 2398) exited]
[Thread 1167350704 (LWP 2399) exited]
[Thread 1175743408 (LWP 2400) exited]
[Thread 1150520240 (LWP 2392) exited]

Program received signal SIGINT, Interrupt.
[Switching to Thread 1095475360 (LWP 2322)]

0x404cb690 in QRasterizer::rasterize (this=0x827af60, path=@0xbfffc710,
    fillRule=Qt::OddEvenFill) at qpainterpath.h:381
(gdb) where
#0  0x404cb690 in QRasterizer::rasterize (this=0x827af60, path=@0xbfffc710, fillRule=Qt::OddEvenFill) at qpainterpath.h:381
#1  0x404f463e in QRasterPaintEngine::fillPath (this=0x847da00, path=@0xbfffcc80, fillData=0x848ec58) at qtransform.h:331
#2  0x4050a20b in QRasterPaintEngine::drawPath (this=0x847da00, path=@0xbfffcc80) at painting/qpaintengine_raster.cpp:1887
#3  0x4048081d in QPainter::drawPath (this=0x0, path=@0xbfffcc80) at painting/qpainter.cpp:3212
#4  0x4047ab55 in QPainterPrivate::draw_helper (this=0x83bbfb8, originalPath=@0xbfffcc80, op=QPainterPrivate::StrokeAndFillDraw) at painting/qpainter.cpp:451
#5  0x4047cba7 in QPainter::drawRects (this=0x0, rects=0xbfffcea0, rectCount=1) at painting/qpainter.cpp:3421
#6  0x4047cd8a in QPainter::fillRect (this=0x827d8f0, r=@0xbfffcea0, brush=@0xbfffcdf0) at qpainter.h:615
#7  0x416126fe in StyleHelper::menuGradient () from /net/titan/local_hde9/software/qt/qt-creator-1.0.0-src/lib/qtcreator/plugins/Nokia/libCore.so
#8  0x4161d897 in ManhattanStyle::drawControl () from /net/titan/local_hde9/software/qt/qt-creator-1.0.0-src/lib/qtcreator/plugins/Nokia/libCore.so
#9  0x4080b46a in QMenuBar::paintEvent (this=0x8152df8, e=0xbfffdb20) at widgets/qmenubar.cpp:993
#10 0x403a594f in QWidget::event (this=0x8152df8, event=0xbfffdb20) at kernel/qwidget.cpp:7654
#11 0x4080f8a0 in QMenuBar::event (this=0x8152df8, e=0xbfffdb20) at widgets/qmenubar.cpp:1508
#12 0x4034c69f in QApplicationPrivate::notify_helper (this=0x8054250, receiver=0x8152df8, e=0xbfffdb20) at kernel/qapplication.cpp:4084
#13 0x4034da45 in QApplication::notify (this=0xbfffede0, receiver=0x8054250, e=0xbfffdb20) at kernel/qapplication.cpp:4049
#14 0x410c323c in QCoreApplication::notifyInternal (this=0xbfffede0, receiver=0x8152df8, event=0xbfffdb20) at kernel/qcoreapplication.cpp:602
#15 0x403a2c57 in QWidgetPrivate::drawWidget (this=0x815a880, pdev=0x8153284, rgn=@0xbfffdc90, offset=@0xbfffdc40, flags=4, sharedPainter=0x0, backingStore=0x8152fb8) at qcoreapplication.h:216
#16 0x403a34b0 in QWidgetPrivate::paintSiblingsRecursive (this=0x811f8f8, pdev=0x8153284, siblings=@0x811f904, index=135606916, rgn=@0xbfffddd0, offset=@0x8152fdc, flags=4, sharedPainter=0x0, backingStore=0x8152fb8) at qpoint.h:154
#17 0x403a335e in QWidgetPrivate::paintSiblingsRecursive (this=0x811f8f8, pdev=0x8153284, siblings=@0x811f904, index=44, rgn=@0xbfffe100, offset=@0x8152fdc, flags=4, sharedPainter=0x0, backingStore=0x8152fb8) at kernel/qwidget.cpp:5143
#18 0x403a26cb in QWidgetPrivate::drawWidget (this=0x811f8f8, pdev=0x8153284, rgn=@0xbfffe100, offset=@0x8152fdc, flags=4, sharedPainter=0x0, backingStore=0x8152fb8) at qlist.h:117
#19 0x4058b473 in QWidgetBackingStore::sync (this=0x8152fb8) at qwidget.h:144
#20 0x4058b80c in QWidgetBackingStore::sync (this=0x8152fb8, exposedWidget=0x811d210, exposedRegion=@0xbfffe360) at painting/qbackingstore.cpp:1073
#21 0x40393ea6 in QWidgetPrivate::syncBackingStore (this=0x811d210, region=@0xbfffe360) at qwidget_p.h:210
#22 0x403c18ca in QETWidget::translatePaintEvent (this=0x811d210, event=0x0) at kernel/qapplication_x11.cpp:5125
#23 0x403c3419 in QApplication::x11ProcessEvent (this=0xbfffede0, event=0xbfffe8c0) at kernel/qapplication_x11.cpp:3443
#24 0x403e8f12 in x11EventSourceDispatch (s=0x8057a10, callback=0, user_data=0x0) at qcoreapplication.h:102
#25 0x411f72dd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
(gdb)




More information about the Qt-interest-old mailing list