[bt-devel] Chapter rendering bug
Martin Gruner
mg.pub at gmx.net
Sat Sep 26 09:27:51 MST 2009
Hi,
please ignore this message. There was another old breakpoint in a different file
which confused me. It works fine.
mg
Am Samstag, 26. September 2009 10:57:16 schrieb Martin Gruner:
> Hi Gary,
>
> I found out an odd behaviour in BibleTime. When I click on the "next verse"
> button in a bible, CChapterDisplay::text() gets called 2 times. Therefore
> the entire rendering happens 2 times too. Not useful.
>
> I stepped in with a debugger. Looking at the 2 stacks (attached below), it
> seems that mouseReleaseEvent is fired twice. Do you know why this could be?
>
> Thanks for all help in advance.
>
> Martin
>
>
> Thread [1] (Suspended: Breakpoint hit.)
> 40 Rendering::CChapterDisplay::text()
> /home/dev/bibletime/src/backend/rendering/cchapterdisplay.cpp:20
> 0x000000000051adb3
> 39 CReadWindow::lookupSwordKey()
> /home/dev/bibletime/src/frontend/displaywindow/creadwindow.cpp:108
> 0x0000000000638b99
> 38 CBibleReadWindow::lookupSwordKey()
> /home/dev/bibletime/src/frontend/displaywindow/cbiblereadwindow.cpp:479
> 0x0000000000641f79
> 37 CBibleReadWindow::qt_metacall()
> /home/dev/bibletime/build/src/frontend/displaywindow/moc_cbiblereadwindow.c
> xx:94 0x000000000066dac1
> 36 QMetaObject::activate() 0x00007fe3c0445ea2
> 35 CKeyChooser::keyChanged()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_ckeychooser.cxx:107
> 0x0000000000669d61
> 34 CBibleKeyChooser::refChanged()
> /home/dev/bibletime/src/frontend/keychooser/versekeychooser/cbiblekeychoose
> r.cpp:78 0x000000000061acb0
> 33 CBibleKeyChooser::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_cbibl
> ekeychooser.cxx:85 0x0000000000668796
> 32 QMetaObject::activate() 0x00007fe3c0445ea2
> 31 CKeyReferenceWidget::changed()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_ckeyr
> eferencewidget.cxx:107 0x00000000006689ef
> 30 CKeyReferenceWidget::slotStepVerse()
> /home/dev/bibletime/src/frontend/keychooser/versekeychooser/ckeyreferencewi
> dget.cpp:289 0x000000000061bdd1
> 29 CKeyReferenceWidget::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_ckeyr
> eferencewidget.cxx:92 0x0000000000668af3
> 28 QMetaObject::activate() 0x00007fe3c0445ea2
> 27 CScrollerWidgetSet::change()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_cscrollerwidgetset.cx
> x:97 0x00000000006681d2
> 26 CScrollerWidgetSet::slotScroller()
> /home/dev/bibletime/src/frontend/keychooser/cscrollerwidgetset.cpp:85
> 0x0000000000618697
> 25 CScrollerWidgetSet::slotDownClick()
> /home/dev/bibletime/src/frontend/keychooser/cscrollerwidgetset.cpp:87
> 0x00000000006186b4
> 24 CScrollerWidgetSet::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_cscrollerwidgetset.cx
> x:84 0x0000000000668286
> 23 QMetaObject::activate() 0x00007fe3c0445ea2
> 22 QAbstractButton::clicked() 0x00007fe3c1adae27
> 21 <symbol is not available> 0x00007fe3c1834c6b
> 20 <symbol is not available> 0x00007fe3c18368c2
> 19 QAbstractButton::mouseReleaseEvent() 0x00007fe3c1836b15
> 18 QToolButton::mouseReleaseEvent() 0x00007fe3c190851a
> 17 QWidget::event() 0x00007fe3c150a0bf
> 16 QApplicationPrivate::notify_helper() 0x00007fe3c14b8f4d
> 15 QApplication::notify() 0x00007fe3c14c18ea
> 14 QCoreApplication::notifyInternal() 0x00007fe3c04306ac
> 13 QApplicationPrivate::sendMouseEvent() 0x00007fe3c14c0b38
> 12 <symbol is not available> 0x00007fe3c152ab19
> 11 QApplication::x11ProcessEvent() 0x00007fe3c1529b53
> 10 <symbol is not available> 0x00007fe3c1552454
> 9 g_main_context_dispatch() 0x00007fe3bd47a20a
> 8 <symbol is not available> 0x00007fe3bd47d8e0
> 7 g_main_context_iteration() 0x00007fe3bd47da7c
> 6 QEventDispatcherGlib::processEvents() 0x00007fe3c0459a8f
> 5 <symbol is not available> 0x00007fe3c1551bdf
> 4 QEventLoop::processEvents() 0x00007fe3c042ef42
> 3 QEventLoop::exec() 0x00007fe3c042f314
> 2 QCoreApplication::exec() 0x00007fe3c04315e4
> 1 main() /home/dev/bibletime/src/main.cpp:198 0x000000000065f257
>
> Thread [1] (Suspended: Breakpoint hit.)
> 41 Rendering::CTextRendering::renderKeyRange()
> /home/dev/bibletime/src/backend/rendering/ctextrendering.cpp:208
> 0x0000000000521387
> 40 Rendering::CChapterDisplay::text()
> /home/dev/bibletime/src/backend/rendering/cchapterdisplay.cpp:58
> 0x000000000051b2a6
> 39 CReadWindow::lookupSwordKey()
> /home/dev/bibletime/src/frontend/displaywindow/creadwindow.cpp:108
> 0x0000000000638b99
> 38 CBibleReadWindow::lookupSwordKey()
> /home/dev/bibletime/src/frontend/displaywindow/cbiblereadwindow.cpp:479
> 0x0000000000641f79
> 37 CBibleReadWindow::qt_metacall()
> /home/dev/bibletime/build/src/frontend/displaywindow/moc_cbiblereadwindow.c
> xx:94 0x000000000066dac1
> 36 QMetaObject::activate() 0x00007fe3c0445ea2
> 35 CKeyChooser::keyChanged()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_ckeychooser.cxx:107
> 0x0000000000669d61
> 34 CBibleKeyChooser::refChanged()
> /home/dev/bibletime/src/frontend/keychooser/versekeychooser/cbiblekeychoose
> r.cpp:78 0x000000000061acb0
> 33 CBibleKeyChooser::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_cbibl
> ekeychooser.cxx:85 0x0000000000668796
> 32 QMetaObject::activate() 0x00007fe3c0445ea2
> 31 CKeyReferenceWidget::changed()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_ckeyr
> eferencewidget.cxx:107 0x00000000006689ef
> 30 CKeyReferenceWidget::slotStepVerse()
> /home/dev/bibletime/src/frontend/keychooser/versekeychooser/ckeyreferencewi
> dget.cpp:289 0x000000000061bdd1
> 29 CKeyReferenceWidget::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/versekeychooser/moc_ckeyr
> eferencewidget.cxx:92 0x0000000000668af3
> 28 QMetaObject::activate() 0x00007fe3c0445ea2
> 27 CScrollerWidgetSet::change()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_cscrollerwidgetset.cx
> x:97 0x00000000006681d2
> 26 CScrollerWidgetSet::slotScroller()
> /home/dev/bibletime/src/frontend/keychooser/cscrollerwidgetset.cpp:85
> 0x0000000000618697
> 25 CScrollerWidgetSet::slotDownClick()
> /home/dev/bibletime/src/frontend/keychooser/cscrollerwidgetset.cpp:87
> 0x00000000006186b4
> 24 CScrollerWidgetSet::qt_metacall()
> /home/dev/bibletime/build/src/frontend/keychooser/moc_cscrollerwidgetset.cx
> x:84 0x0000000000668286
> 23 QMetaObject::activate() 0x00007fe3c0445ea2
> 22 QAbstractButton::clicked() 0x00007fe3c1adae27
> 21 <symbol is not available> 0x00007fe3c1834c6b
> 20 <symbol is not available> 0x00007fe3c18368c2
> 19 QAbstractButton::mouseReleaseEvent() 0x00007fe3c1836b15
> 18 QToolButton::mouseReleaseEvent() 0x00007fe3c190851a
> 17 QWidget::event() 0x00007fe3c150a0bf
> 16 QApplicationPrivate::notify_helper() 0x00007fe3c14b8f4d
> 15 QApplication::notify() 0x00007fe3c14c18ea
> 14 QCoreApplication::notifyInternal() 0x00007fe3c04306ac
> 13 QApplicationPrivate::sendMouseEvent() 0x00007fe3c14c0b38
> 12 <symbol is not available> 0x00007fe3c152ab19
> 11 QApplication::x11ProcessEvent() 0x00007fe3c1529b53
> 10 <symbol is not available> 0x00007fe3c1552454
> 9 g_main_context_dispatch() 0x00007fe3bd47a20a
> 8 <symbol is not available> 0x00007fe3bd47d8e0
> 7 g_main_context_iteration() 0x00007fe3bd47da7c
> 6 QEventDispatcherGlib::processEvents() 0x00007fe3c0459a8f
> 5 <symbol is not available> 0x00007fe3c1551bdf
> 4 QEventLoop::processEvents() 0x00007fe3c042ef42
> 3 QEventLoop::exec() 0x00007fe3c042f314
> 2 QCoreApplication::exec() 0x00007fe3c04315e4
> 1 main() /home/dev/bibletime/src/main.cpp:198 0x000000000065f257
>
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
>
More information about the bt-devel
mailing list