[KPhotoAlbum] Problem running in Fedora 28

Constantin Orăsan c.orasan at gmail.com
Tue May 22 19:18:28 CEST 2018


Hello,

I did not get the chance to try this earlier. The first finding is that I
need to run

cmake -DCMAKE_BUILD_TYPE=Debug ..

to have the -g flag at the compilation time.

Below you can find two traces. In the first case I have a number of images
in the directory. In the second case, I have only one video, but I did not
install the support to generate thumbnails from videos. I see that the
traces are different. This is done using the latest version from github. I
hope it helps.

Thank you,

Constantin

Thread 1 "kphotoalbum" received signal SIGABRT, Aborted.
__GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50   return ret;
(gdb) bt 20
#0  0x00007ffff2595f4b in __GI_raise (sig=sig at entry=6) at
../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff2580591 in __GI_abort () at abort.c:79
#2  0x00007ffff77491a8 in std::__replacement_assert(char const*, int, char
const*, char const*) (__file=__file at entry=0x7ffff78644b0
"/usr/include/c++/8/bits/stl_vector.h", __line=__line at entry=950,
__function=__function at 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 at entry=0x7ffff7864480 "__builtin_expect(__n <
this->size(), true)") at
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2389
#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
#4  0x00007ffff7760dab in Exiv2::ValueType<std::pair<unsigned int, unsigned
int> >::toRational(long) const (this=<optimized out>, n=<optimized out>) at
../include/exiv2/value.hpp:1719
#5  0x00000000005ecceb in
Exif::RationalExifElement::valueFromExif(Exiv2::ExifData&) const
(this=0x1e9b510, data=...) at
/home/dinel/kphotoalbum/Exif/DatabaseElement.cpp:143
#6  0x00000000005d2fbe in Exif::Database::insert(QList<QPair<DB::FileName,
Exiv2::ExifData> >) (this=0x13f5120, map=...) at
/home/dinel/kphotoalbum/Exif/Database.cpp:341
#7  0x00000000005d1f3b in Exif::Database::add(DB::FileNameList const&)
(this=0x13f5120, list=...) at /home/dinel/kphotoalbum/Exif/Database.cpp:244
#8  0x00000000004a5012 in XMLDB::Database::forceUpdate(DB::ImageInfoList
const&) (this=0xd704f0, images=...) at
/home/dinel/kphotoalbum/XMLDB/Database.cpp:203
#9  0x00000000004a53aa in XMLDB::Database::addImages(DB::ImageInfoList
const&, bool) (this=0xd704f0, images=..., doUpdate=true) at
/home/dinel/kphotoalbum/XMLDB/Database.cpp:247
#10 0x0000000000581bc2 in DB::NewImageFinder::loadExtraFiles(bool)
(this=0x7fffffffbfa0, storeExif=false) at
/home/dinel/kphotoalbum/DB/NewImageFinder.cpp:178
#11 0x0000000000580dfb in DB::NewImageFinder::findImages()
(this=0x7fffffffbfa0) at /home/dinel/kphotoalbum/DB/NewImageFinder.cpp:64
#12 0x000000000057e931 in DB::ImageDB::slotRescan() (this=0xd704f0) at
/home/dinel/kphotoalbum/DB/ImageDB.cpp:90
#13 0x000000000053644f in MainWindow::Window::delayedInit() (this=0xa51810)
at /home/dinel/kphotoalbum/MainWindow/Window.cpp:252
#14 0x0000000000633bbe in MainWindow::Window::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=0xa51810,
_c=QMetaObject::InvokeMetaMethod, _id=52, _a=0x1235ac0)
    at
/home/dinel/kphotoalbum/build/kphotoalbum_autogen/WCPGUQ57CZ/moc_Window.cpp:429
#15 0x00007ffff34f3a26 in QObject::event(QEvent*) (this=0xa51810,
e=<optimized out>) at kernel/qobject.cpp:1247
#16 0x00007ffff47c804b in QWidget::event(QEvent*) (this=this at entry=0xa51810,
event=event at entry=0xebff70) at kernel/qwidget.cpp:9343
#17 0x00007ffff48dda68 in QMainWindow::event(QEvent*)
(this=this at entry=0xa51810,
event=event at entry=0xebff70) at widgets/qmainwindow.cpp:1342
#18 0x00007ffff661ee2b in KMainWindow::event(QEvent*)
(this=this at entry=0xa51810,
ev=ev at entry=0xebff70) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kmainwindow.cpp:865
#19 0x00007ffff66684f9 in KXmlGuiWindow::event(QEvent*) (this=0xa51810,
ev=0xebff70) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kxmlguiwindow.cpp:119
#20 0x00007ffff4787e95 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) (this=<optimized out>, receiver=0xa51810, e=0xebff70) at
kernel/qapplication.cpp:3732



#0  0x00007ffff2595f4b in __GI_raise (sig=sig at entry=6) at
../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff2580591 in __GI_abort () at abort.c:79
#2  0x00007ffff32e2ea3 in qt_message_fatal (context=..., message=<synthetic
pointer>...) at global/qlogging.cpp:1716
#3  0x00007ffff32e2ea3 in QMessageLogger::fatal(char const*, ...) const
(this=this at entry=0x7fffffffbe90, msg=msg at entry=0x7ffff3578f80 "ASSERT:
\"%s\" in file %s, line %d") at global/qlogging.cpp:822
#4  0x00007ffff330479c in qt_assert(char const*, char const*, int)
(assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at
global/qglobal.cpp:3126
#5  0x00000000005666d4 in ImageManager::ThumbnailBuilder::instance() () at
/home/dinel/kphotoalbum/ImageManager/ThumbnailBuilder.cpp:71
#6  0x0000000000580e94 in DB::NewImageFinder::findImages()
(this=0x7fffffffbfa0) at /home/dinel/kphotoalbum/DB/NewImageFinder.cpp:76
#7  0x000000000057e931 in DB::ImageDB::slotRescan() (this=0xd2f4e0) at
/home/dinel/kphotoalbum/DB/ImageDB.cpp:90
#8  0x000000000053644f in MainWindow::Window::delayedInit() (this=0xa7a800)
at /home/dinel/kphotoalbum/MainWindow/Window.cpp:252
#9  0x0000000000633bbe in MainWindow::Window::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=0xa7a800,
_c=QMetaObject::InvokeMetaMethod, _id=52, _a=0x13a2180)
    at
/home/dinel/kphotoalbum/build/kphotoalbum_autogen/WCPGUQ57CZ/moc_Window.cpp:429
#10 0x00007ffff34f3a26 in QObject::event(QEvent*) (this=0xa7a800,
e=<optimized out>) at kernel/qobject.cpp:1247
#11 0x00007ffff47c804b in QWidget::event(QEvent*) (this=this at entry=0xa7a800,
event=event at entry=0x139c050) at kernel/qwidget.cpp:9343
#12 0x00007ffff48dda68 in QMainWindow::event(QEvent*)
(this=this at entry=0xa7a800,
event=event at entry=0x139c050) at widgets/qmainwindow.cpp:1342
#13 0x00007ffff661ee2b in KMainWindow::event(QEvent*)
(this=this at entry=0xa7a800,
ev=ev at entry=0x139c050) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kmainwindow.cpp:865
#14 0x00007ffff66684f9 in KXmlGuiWindow::event(QEvent*) (this=0xa7a800,
ev=0x139c050) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kxmlguiwindow.cpp:119
#15 0x00007ffff4787e95 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) (this=<optimized out>, receiver=0xa7a800, e=0x139c050) at
kernel/qapplication.cpp:3732
#16 0x00007ffff478f83a in QApplication::notify(QObject*, QEvent*)
(this=0x7fffffffd1b0, receiver=0xa7a800, e=0x139c050) at
kernel/qapplication.cpp:3491
#17 0x00007ffff34ca376 in QCoreApplication::notifyInternal2(QObject*,
QEvent*) (receiver=0xa7a800, event=0x139c050) at
kernel/qcoreapplication.cpp:1050
#18 0x00007ffff34cd09b in QCoreApplication::sendEvent(QObject*, QEvent*)
(event=0x139c050, receiver=0x0) at kernel/qcoreapplication.h:234
#19 0x00007ffff34cd09b in
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
(receiver=0x0, event_type=0, data=0x93e510) at
kernel/qcoreapplication.cpp:1740
#20 0x00007ffff34cd4ec in QCoreApplication::sendPostedEvents(QObject*, int)
(receiver=receiver at entry=0x0, event_type=event_type at entry=0) at
kernel/qcoreapplication.cpp:1594



On 18 May 2018 at 22:05, Johannes Zarl-Zierl <johannes at zarl-zierl.at> wrote:

> Hello Constantin,
>
>
>
> Am Donnerstag, 17. Mai 2018, 17:44:55 CEST schrieb Constantin Orăsan:
>
> > On 16 May 2018 at 20:30, Tobias Leupold <tobias.leupold at gmx.de> wrote:
>
> > I followed the guidelines from
>
> > https://www.kphotoalbum.org/download/compiling/#compiling_kpa-itself and
>
> > I added -DCMAKE_BUILD_TYPE=RelWithDebInfo and some other versions I
> found
>
> > on the web, but none seem to give the debugging info I need.
>
>
>
> "RelWithDebInfo" should usually be sufficient to enable debug info. You
> could also try out "Debug", but that results in a slower program with
> assertions enabled.
>
>
>
> Can you check if the "-g" flag is used by your build? You can build with
> "make VERBOSE=1" to see the build commands as they are run.
>
>
>
> Cheers,
>
> Johannes
>
>
>
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kdab.com/pipermail/kphotoalbum/attachments/20180522/28dc3124/attachment.html>


More information about the KPhotoAlbum mailing list