[KPhotoAlbum] problem with gps tagged images on kphotoalbum 5.2 and 5.3, possible fix proposed

Constantin Orăsan c.orasan at gmail.com
Thu Jul 19 10:52:12 BST 2018


Hello,


> > When the program starts scanning for images, I get
> >
> > [dinel at localhost build]$ kphotoalbum
> > Gtk-Message: 15:20:47.354: GtkDialog mapped without a transient parent.
> > This is discouraged.
> > ASSERT: "s_instance" in file
> > /home/dinel/kphotoalbum/ImageManager/ThumbnailBuilder.cpp, line 110
> > Aborted (core dumped)
> >
> > Any idea what causes this?
>
> So I'm not able to reproduce it.  Can you run it under a debugger and
> get the stack trace when it dies?
>
> Here is the stack trace:

#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=0x7fffffffba30, 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  0x000000000056a738 in ImageManager::ThumbnailBuilder::instance() () at
/home/dinel/kphotoalbum/ImageManager/ThumbnailBuilder.cpp:110
#6  0x0000000000587e7c in DB::NewImageFinder::loadExtraFile(DB::FileName
const&, DB::MediaType) (this=0x7fffffffbfb0, newFileName=...,
type=DB::Image) at /home/dinel/kphotoalbum/DB/NewImageFinder.cpp:647
#7  0x0000000000586ccf in DB::NewImageFinder::loadExtraFiles()
(this=0x7fffffffbfb0) at /home/dinel/kphotoalbum/DB/NewImageFinder.cpp:505
#8  0x0000000000585dd1 in DB::NewImageFinder::findImages()
(this=0x7fffffffbfb0) at /home/dinel/kphotoalbum/DB/NewImageFinder.cpp:395
#9  0x000000000058394b in DB::ImageDB::slotRescan() (this=0xd74f60) at
/home/dinel/kphotoalbum/DB/ImageDB.cpp:90
#10 0x0000000000538095 in MainWindow::Window::delayedInit() (this=0xa9ea50)
at /home/dinel/kphotoalbum/MainWindow/Window.cpp:252
#11 0x000000000063c636 in MainWindow::Window::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=0xa9ea50,
_c=QMetaObject::InvokeMetaMethod, _id=52, _a=0x1014df0)
    at
/home/dinel/kphotoalbum/build/kphotoalbum_autogen/WCPGUQ57CZ/moc_Window.cpp:429
#12 0x00007ffff34f3a26 in QObject::event(QEvent*) (this=0xa9ea50,
e=<optimized out>) at kernel/qobject.cpp:1247
#13 0x00007ffff47c804b in QWidget::event(QEvent*) (this=this at entry=0xa9ea50,
event=event at entry=0x1015aa0) at kernel/qwidget.cpp:9343
#14 0x00007ffff48dda68 in QMainWindow::event(QEvent*)
(this=this at entry=0xa9ea50,
event=event at entry=0x1015aa0) at widgets/qmainwindow.cpp:1342
#15 0x00007ffff661ee2b in KMainWindow::event(QEvent*)
(this=this at entry=0xa9ea50,
ev=ev at entry=0x1015aa0) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kmainwindow.cpp:865
#16 0x00007ffff66684f9 in KXmlGuiWindow::event(QEvent*) (this=0xa9ea50,
ev=0x1015aa0) at
/usr/src/debug/kf5-kxmlgui-5.44.0-1.fc28.x86_64/src/kxmlguiwindow.cpp:119
#17 0x00007ffff4787e95 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) (this=<optimized out>, receiver=0xa9ea50, e=0x1015aa0) at
kernel/qapplication.cpp:3732
#18 0x00007ffff478f83a in QApplication::notify(QObject*, QEvent*)
(this=0x7fffffffd1c0, receiver=0xa9ea50, e=0x1015aa0) at
kernel/qapplication.cpp:3491
#19 0x00007ffff34ca376 in QCoreApplication::notifyInternal2(QObject*,
QEvent*) (receiver=0xa9ea50, event=0x1015aa0) at
kernel/qcoreapplication.cpp:1050
#20 0x00007ffff34cd09b in QCoreApplication::sendEvent(QObject*, QEvent*)
(event=0x1015aa0, receiver=0x0) at kernel/qcoreapplication.h:234
#21 0x00007ffff34cd09b in
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
(receiver=0x0, event_type=0, data=0x94b510) at
kernel/qcoreapplication.cpp:1740
#22 0x00007ffff34cd4ec in QCoreApplication::sendPostedEvents(QObject*, int)
(receiver=receiver at entry=0x0, event_type=event_type at entry=0) at
kernel/qcoreapplication.cpp:1594
#23 0x00007ffff351aec7 in postEventSourceDispatch(GSource*, GSourceFunc,
gpointer) (s=0xac0750) at kernel/qeventdispatcher_glib.cpp:276
#24 0x00007fffebf677cd in g_main_dispatch (context=0x7fffd0004ff0) at
gmain.c:3177
#25 0x00007fffebf677cd in g_main_context_dispatch
(context=context at entry=0x7fffd0004ff0)
at gmain.c:3830
#26 0x00007fffebf67b98 in g_main_context_iterate
(context=context at entry=0x7fffd0004ff0,
block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at
gmain.c:3903
#27 0x00007fffebf67c30 in g_main_context_iteration (context=0x7fffd0004ff0,
may_block=may_block at entry=1) at gmain.c:3964
#28 0x00007ffff351ac13 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0xb86a60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007fffda56d065 in
QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0xb86a60, flags=...) at qeventdispatcher_glib.cpp:69
#30 0x00007ffff34c912b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7fffffffc8d0, flags=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:71
#31 0x00007ffff4979ded in QDialog::exec() (this=0x101c240) at
dialogs/qdialog.cpp:546
#32 0x00007ffff51b82a6 in KMessageBox::createKMessageBox(QDialog*,
QDialogButtonBox*, QIcon const&, QString const&, QStringList const&,
QString const&, bool*, QFlags<KMessageBox::Option>, QString const&,
QMessageBox::Icon) (dialog=0x101c240, buttons=0x101c630, icon=...,
text=..., strlist=..., ask=..., checkboxReturn=0x7fffffffcc47, options=...,
details=..., notifyType=QMessageBox::Information)
    at /usr/include/c++/8/bits/atomic_base.h:82
#33 0x00007ffff51b8720 in KMessageBox::createKMessageBox(QDialog*,
QDialogButtonBox*, QMessageBox::Icon, QString const&, QStringList const&,
QString const&, bool*, QFlags<KMessageBox::Option>, QString const&)
(dialog=dialog at entry=0x101c240, buttons=buttons at entry=0x101c630,
icon=icon at entry=QMessageBox::Information, text=..., strlist=..., ask=...,
checkboxReturn=0x7fffffffcc47, options=..., details=...)
    at /usr/include/qt5/QtCore/qrefcount.h:73
#34 0x00007ffff51bc17f in KMessageBox::informationListInternal(QDialog*,
QString const&, QStringList const&, QString const&, QString const&,
KMessageBox::Options) (dialog=0x101c240, text=..., strlist=...,
caption=..., dontShowAgainName=..., options=..., options at entry=...) at
/usr/include/qt5/QtCore/qarraydata.h:123
#35 0x00007ffff51bc367 in KMessageBox::informationList(QWidget*, QString
const&, QStringList const&, QString const&, QString const&,
QFlags<KMessageBox::Option>) (parent=<optimized out>, text=...,
strlist=..., caption=..., dontShowAgainName=..., options=...) at
/usr/src/debug/kf5-kwidgetsaddons-5.44.0-1.fc28.x86_64/src/kmessagebox.cpp:933
#36 0x00007ffff51bc3a8 in KMessageBox::information(QWidget*, QString
const&, QString const&, QString const&, QFlags<KMessageBox::Option>)
(parent=<optimized out>, text=..., caption=..., dontShowAgainName=...,
options=...) at
/usr/src/debug/kf5-kwidgetsaddons-5.44.0-1.fc28.x86_64/src/kmessagebox.cpp:900
#37 0x0000000000547239 in MainWindow::Window::checkIfMplayerIsInstalled()
(this=0xa9ea50) at /home/dinel/kphotoalbum/MainWindow/Window.cpp:1898
#38 0x00000000005378e2 in MainWindow::Window::Window(QWidget*)
(this=0xa9ea50, parent=0x0, __in_chrg=<optimized out>,
__vtt_parm=<optimized out>) at
/home/dinel/kphotoalbum/MainWindow/Window.cpp:225
#39 0x00000000004663fd in main(int, char**) (argc=1, argv=0x7fffffffd768)
at /home/dinel/kphotoalbum/main.cpp:115

Cheers,

Constantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20180719/f0311876/attachment.htm>


More information about the Kphotoalbum mailing list