<div dir="ltr">Hello,<div><br></div><div>I haven't programmed in C for a very loooooong time, so my gdb stills are very rusty (to put it mildly).</div><div><br></div><div>After struggling with dnf to get the correct debuginfo for packages (Fedora seems to be a bit problematic about this), I managed to produce the following backtrace.</div><div><br></div><div><div><font face="times new roman, serif">(gdb) bt 20</font></div><div><font face="times new roman, serif">#0  0x00007ffff2595f4b in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50</font></div><div><font face="times new roman, serif">#1  0x00007ffff2580591 in __GI_abort () at abort.c:79</font></div><div><font face="times new roman, serif">#2  0x00007ffff77491a8 in std::__replacement_assert(char const*, int, char const*, char const*) (__file=__file@entry=0x7ffff78644b0 "/usr/include/c++/8/bits/stl_vector.h", __line=__line@entry=950, __function=__function@entry=0x7ffff78671a0 <std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > >::operator[](unsigned long) const::__PRETTY_FUNCTION__> "std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = std::pair<unsigned int, unsigned int>; _Alloc = std::allocator<std"..., __condition=__condition@entry=0x7ffff7864480 "__builtin_expect(__n < this->size(), true)") at /usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2389</font></div><div><font face="times new roman, serif">#3  0x00007ffff7760dab in std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > >::operator[](unsigned long) const (__n=<optimized out>, this=<optimized out>) at ../include/exiv2/value.hpp:1719</font></div><div><font face="times new roman, serif">#4  0x00007ffff7760dab in Exiv2::ValueType<std::pair<unsigned int, unsigned int> >::toRational(long) const (this=<optimized out>, n=<optimized out>)</font></div><div><font face="times new roman, serif">    at ../include/exiv2/value.hpp:1719</font></div><div><font face="times new roman, serif">#5  0x00000000005e7d59 in Exif::RationalExifElement::valueFromExif(Exiv2::ExifData&) const ()</font></div><div><font face="times new roman, serif">#6  0x00000000005ce1e0 in Exif::Database::insert(QList<QPair<DB::FileName, Exiv2::ExifData> >) ()</font></div><div><font face="times new roman, serif">#7  0x00000000005cd161 in Exif::Database::add(DB::FileNameList const&) ()</font></div><div><font face="times new roman, serif">#8  0x00000000004a435e in XMLDB::Database::forceUpdate(DB::ImageInfoList const&) ()</font></div><div><font face="times new roman, serif">#9  0x00000000004a46f6 in XMLDB::Database::addImages(DB::ImageInfoList const&, bool) ()</font></div><div><font face="times new roman, serif">#10 0x000000000057d9fc in DB::NewImageFinder::loadExtraFiles(bool) ()</font></div><div><font face="times new roman, serif">#11 0x000000000057cc35 in DB::NewImageFinder::findImages() ()</font></div><div><font face="times new roman, serif">#12 0x000000000057a793 in DB::ImageDB::slotRescan() ()</font></div><div><font face="times new roman, serif">#13 0x0000000000533cf9 in MainWindow::Window::delayedInit() ()</font></div><div><font face="times new roman, serif">#14 0x000000000062c9fe in MainWindow::Window::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()</font></div><div><font face="times new roman, serif">#15 0x00007ffff34f3a26 in QObject::event(QEvent*) (this=0xaeaa00, e=<optimized out>) at kernel/qobject.cpp:1247</font></div><div><font face="times new roman, serif">#16 0x00007ffff47c804b in QWidget::event(QEvent*) (this=this@entry=0xaeaa00, event=event@entry=0xffbe30) at kernel/qwidget.cpp:9343</font></div><div><font face="times new roman, serif">#17 0x00007ffff48dda68 in QMainWindow::event(QEvent*) (this=this@entry=0xaeaa00, event=event@entry=0xffbe30) at widgets/qmainwindow.cpp:1342</font></div><div><font face="times new roman, serif">#18 0x00007ffff661ee2b in KMainWindow::event(QEvent*) (this=this@entry=0xaeaa00, ev=ev@entry=0xffbe30)</font></div><div><font face="times new roman, serif">    at /usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kmainwindow.cpp:865</font></div><div><font face="times new roman, serif">#19 0x00007ffff66684f9 in KXmlGuiWindow::event(QEvent*) (this=0xaeaa00, ev=0xffbe30)</font></div><div><font face="times new roman, serif">    at /usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kxmlguiwindow.cpp:119</font></div><div><font face="times new roman, serif">#20 0x00007ffff4787e95 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0xaeaa00, e=0xffbe30)</font></div><div><font face="times new roman, serif">    at kernel/qapplication.cpp:3732</font></div></div><div><br></div><div>Does it make any sense? If you give me pointers, I can dig deeper. I compiled the version from git, but I should be able to repeat the process with kpa5.3.</div><div><br></div><div>Thank you,</div><div><br></div><div>Constantin </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 May 2018 at 14:09, Constantin Orăsan <span dir="ltr"><<a href="mailto:c.orasan@gmail.com" target="_blank">c.orasan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tobias,<div><br></div><div>Thank you for the reply. I will try to debug later today. I need to install lots of debuginfos and I prefer to do it in a virtual machine. I will get back to you as soon as I have any hints.</div><div><br></div><div>Regards,</div><div><br></div><div>Constantin </div><div><br></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, 14 May 2018 at 13:32 Tobias Leupold <<a href="mailto:tobias.leupold@gmx.de" target="_blank">tobias.leupold@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Constantin!<br>
<br>
I don't see such an error here using Gentoo, Qt 5.9.4 and gcc 6.4.0.<br>
<br>
Could you send a complete backtrack (e. g. by using gdb)? Best thing would be <br>
to find out where exactly the problem happens. Try to start the git self-<br>
compiled version using "gdb ./kphotoalbum" and then "run", do whatever causes <br>
the crash and see what's happening. Most probably, you'll find some hint where <br>
we have the problem (cpp file, line).<br>
<br>
I'm pretty sure we can fix this, with a bit more information ;-)<br>
<br>
Thanks in advance for your effort!<br>
<br>
Cheers, Tobias<br>
<br>
Am Montag, 14. Mai 2018, 14:06:34 CEST schrieb Constantin Orăsan:<br>
> Hello,<br>
> <br>
> It seems that after I upgraded to F28 I can no longer start KPA. The crash<br>
> happens while it imports about 1000 new images, but it does not seem to be<br>
> related to a particular photo/movie because the progress bar reaches<br>
> various points (once it even finished).<br>
> <br>
> I get the following error message on 2 different computers. On one of them<br>
> I tried KPA 5.2.7 (the version that comes with F28), KPA5.3 and the version<br>
> from git. The last two were compiled me.<br>
> <br>
> ----<br>
> /usr/include/c++/8/bits/stl_<wbr>vector.h:950: std::vector<_Tp,<br>
> _Alloc>::const_reference std::vector<_Tp,<br>
> _Alloc>::operator[](std::<wbr>vector<_Tp, _Alloc>::size_type) const [with _Tp =<br>
> std::pair<unsigned int, unsigned int>; _Alloc =<br>
> std::allocator<std::pair<<wbr>unsigned int, unsigned int> >; std::vector<_Tp,<br>
> _Alloc>::const_reference = const std::pair<unsigned int, unsigned int>&;<br>
> std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion<br>
> '__builtin_expect(__n < this->size(), true)' failed.<br>
> Aborted (core dumped)<br>
> ----<br>
> <br>
> Any idea where to start debugging? KPA is complaining that I have mplayer<br>
> installed, but I suppose it should not cause a crash.<br>
> <br>
> Thank you,<br>
> <br>
> Constantin<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
KPhotoAlbum mailing list<br>
<a href="mailto:KPhotoAlbum@mail.kdab.com" target="_blank">KPhotoAlbum@mail.kdab.com</a><br>
<a href="https://mail.kdab.com/mailman/listinfo/kphotoalbum" rel="noreferrer" target="_blank">https://mail.kdab.com/mailman/<wbr>listinfo/kphotoalbum</a><br>
</blockquote></div></div></div></blockquote></div><br></div>