Jürgen Spitzmüller wrote:

> Georg Baum wrote:
> 
>> The attached patch
>> is a shot in the dark.
> 
> Unfortunately, it does not help.

I suspected that, but there was a tiny chance...
 
>> I also notice a lot of uninitialised value warnings for
>> QTransform::fromTranslate() in your valgrind log. When I run with
>> valgrind
>> I  get only two of these warnings, both times in libz when loading an
>> image. Which qt version do you use? Maybe that qt code gives a hint.
> 
> Qt 4.7.2.

I tried to reproduce the problem with a self compiled Qt 4.7.2, but it still 
works fine, and the valgrind report shows only some erors like the attached. 
I don't believe that they are related, but one never knows.

Can you rerun valgrind with

--track-origins=yes

? That should give us a hint where the initialization is missing in your 
case.


Georg
==32232== 1 errors in context 3 of 86:
==32232== Invalid read of size 8
==32232==    at 0x5C97321: ??? (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C9763E: ??? (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C97A13: QTreeView::updateGeometries() (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x575F1AF: QWidget::event(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5B274E5: QFrame::event(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C5D79A: QAbstractItemView::viewportEvent(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C9A454: QTreeView::viewportEvent(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x63A8296: 
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in 
/usr/local/qt/lib/libQtCore.so.4.7.2)
==32232==    by 0x570923B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x570E74C: QApplication::notify(QObject*, QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0xA5EDE4: lyx::frontend::GuiApplication::notify(QObject*, 
QEvent*) (GuiApplication.cpp:2155)
==32232==    by 0x63A8A6B: QCoreApplication::notifyInternal(QObject*, QEvent*) 
(in /usr/local/qt/lib/libQtCore.so.4.7.2)
==32232==  Address 0xf9709e0 is 752 bytes inside a block of size 1,016 free'd
==32232==    at 0x4C240FD: free (vg_replace_malloc.c:366)
==32232==    by 0x5C9BA4E: QTreeView::doItemsLayout() (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C97BE4: QTreeView::sizeHintForColumn(int) const (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C66CA8: ??? (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C67828: QHeaderView::visualIndexAt(int) const (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C9718D: QTreeView::indexRowSizeHint(QModelIndex const&) 
const (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C9738B: ??? (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C9763E: ??? (in /usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C97A13: QTreeView::updateGeometries() (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x575F1AF: QWidget::event(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5B274E5: QFrame::event(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)
==32232==    by 0x5C5D79A: QAbstractItemView::viewportEvent(QEvent*) (in 
/usr/local/qt/lib/libQtGui.so.4.7.2)


Reply via email to