Page 1 of 1
0.99.7 Linux: Crash with videos' info panels
Posted: Wed Mar 23, 2022 7:25 am
by Spfnym
XnView: MP 0.99.7- 64 bit
OS: Arch Linux 64bit
With all the options except "Preview as tab" selected for the Info panels, I get this crash when looking at a video file in the browsing mode:
Code: Select all
############################################ InfoPropertiesView
Create Tree : File
Create Tree : Video
Create Tree : Audio
############################################ InfoPropertiesView
Create Tree : File
Segmentation fault (core dumped)
code 139
With the Preview disabled under Info panels, XnView crashes on the second selected video file instead of the first one, and the error message is now more like this:
Code: Select all
### ThumbLoaderThread :: setFirstItemToLoad
** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######### CategoryModel :: checkAndSave()
LOAD INFO <filenamehere.webm>
######ThumbLoaderThread :: forever 2 : 2821cd0
CHECK <0>
######ThumbLoaderThread :: forever : 2821cd0
** start condition wait
my_error_exit...<Not a JPEG file: starts with 0x1a 0x45>
############################################ InfoPropertiesView
Create Tree : File
Create Tree : Image
Segmentation fault (core dumped)
code 139
for a webm file and like this:
Code: Select all
############################################ InfoPropertiesView
Create Tree : File
Create Tree : Image
Create Tree : Video
Create Tree : Audio
######### CategoryModel :: checkAndSave()
### ThumbLoaderThread :: setFirstItemToLoad
** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######### CategoryModel :: checkAndSave()
######ThumbLoaderThread :: forever 2 : 2625bf0
CHECK <0>
######ThumbLoaderThread :: forever : 2625bf0
** start condition wait
############################################ InfoPropertiesView
Create Tree : File
Create Tree : Image
Segmentation fault (core dumped)
code 139
for a mp4.
When everything under Info panels disabled, I can select video files without crashing.
Effect: XnView crashes
To reproduce:
1. Browse a folder with video files.
2. Select first video file.
Actual behaviour (bug): XnView crashes
Expected behaviour: No crash and information in the Info panels is displayed.
Re: 0.99.7 Crash with videos' info panels
Posted: Sun Mar 27, 2022 3:42 pm
by Spfnym
Some extra info. The way it crashes is freezing for like two seconds and only then crashing.
I would have ran it through gdb or something, but XnView seems to open through a script, and the binary /opt/xnviewmp/XnView complains about missing libraries.
I noticed that there's something akin to my problem described in
this thread.
I tried the mentioned settings videoMode=false and videoMode=true, but I don't think they mattered for me, or I'm not putting them in the correct place. That's a possibility too.
I did manage to run XnView through gdb with the command:
Code: Select all
LD_LIBRARY_PATH="/opt/xnviewmp/lib:/opt/xnviewmp/Plugins:$LD_LIBRARY_PATH" QT_PLUGIN_PATH="/opt/xnviewmp/lib:$QT_PLUGIN_PATH" gdb /opt/xnviewmp/XnView
Here's the backtrace. No debugging symbols unfortunately, though.
Code: Select all
Thread 1 "XnView" received signal SIGSEGV, Segmentation fault.
0x00007fffc7976469 in MediaInfoLib::MediaInfo::Option(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) () from /usr/lib/libmediainfo.so.0
(gdb) bt
#0 0x00007fffc7976469 in MediaInfoLib::MediaInfo::Option(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
() from /usr/lib/libmediainfo.so.0
#1 0x00007fffc7e2d731 in MediaInfo_Option () from /usr/lib/libmediainfo.so.0
#2 0x00007fffc7e2df64 in MediaInfoA_Option () from /usr/lib/libmediainfo.so.0
#3 0x000000000063203a in ?? ()
#4 0x0000000000763649 in ?? ()
#5 0x0000000000832684 in ?? ()
#6 0x00000000008335dc in ?? ()
#7 0x0000000000834f63 in ?? ()
#8 0x000000000083785c in ?? ()
#9 0x0000000000837e3f in ?? ()
#10 0x00007ffff34d743f in ?? () from /opt/xnviewmp/lib/libQt5Core.so.5
#11 0x0000000000a4a691 in MyThumbView::itemSelected(int) ()
#12 0x000000000081dbf6 in ?? ()
#13 0x000000000081ee87 in ?? ()
#14 0x0000000000a4b027 in ?? ()
#15 0x00007ffff34d743f in ?? () from /opt/xnviewmp/lib/libQt5Core.so.5
#16 0x00007ffff344fae7 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /opt/xnviewmp/lib/libQt5Core.so.5
#17 0x00007ffff34545d9 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /opt/xnviewmp/lib/libQt5Core.so.5
#18 0x00007ffff34571a5 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /opt/xnviewmp/lib/libQt5Core.so.5
#19 0x00007ffff5be2e10 in QListView::setSelection(QRect const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#20 0x00007ffff5ba86ee in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#21 0x000000000080bf73 in ?? ()
#22 0x00007ffff59a2491 in QWidget::event(QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#23 0x00007ffff5a4acae in QFrame::event(QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#24 0x00007ffff5baf58c in QAbstractItemView::viewportEvent(QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#25 0x00007ffff349e990 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Core.so.5
#26 0x00007ffff59634e2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#27 0x00007ffff596ac18 in QApplication::notify(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#28 0x00007ffff349ebf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Core.so.5
#29 0x00007ffff59695ea in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#30 0x00007ffff59bb358 in ?? () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#31 0x00007ffff59be063 in ?? () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#32 0x00007ffff596350c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#33 0x00007ffff5969fd0 in QApplication::notify(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Widgets.so.5
#34 0x00007ffff349ebf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/xnviewmp/lib/libQt5Core.so.5
#35 0x00007ffff4770785 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /opt/xnviewmp/lib/libQt5Gui.so.5
#36 0x00007ffff4771b85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /opt/xnviewmp/lib/libQt5Gui.so.5
#37 0x00007ffff474d9db in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/xnviewmp/lib/libQt5Gui.so.5
#38 0x00007fffe7466cca in ?? () from /opt/xnviewmp/lib/libQt5XcbQpa.so.5
#39 0x00007ffff7117ee3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0x00007ffff716e0f9 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007ffff7115455 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0x00007ffff34fa5dc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/xnviewmp/lib/libQt5Core.so.5
#43 0x00007ffff349d5ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/xnviewmp/lib/libQt5Core.so.5
#44 0x00007ffff34a65e3 in QCoreApplication::exec() () from /opt/xnviewmp/lib/libQt5Core.so.5
#45 0x00000000004af7ee in ?? ()
#46 0x00007ffff3023310 in __libc_start_call_main () from /usr/lib/libc.so.6
#47 0x00007ffff30233c1 in __libc_start_main_impl () from /usr/lib/libc.so.6
#48 0x00000000004afe5f in ?? ()
Re: 0.99.7 Crash with videos' info panels
Posted: Mon Mar 28, 2022 8:00 am
by xnview
you close the preview, and you have the crash?
Re: 0.99.7 Crash with videos' info panels
Posted: Mon Mar 28, 2022 10:37 am
by Spfnym
I'm saying that the crash happens whether or not the preview is active. It's just that it requires going to look at two videos instead of one until it crashes if preview is ticked on for the info panel.
Re: 0.99.7 Crash with videos' info panels
Posted: Tue Mar 29, 2022 12:46 am
by winnylinny
Curious, does it also crash when you use xnviewmp-system-libs?
If it works fine with xnviewmp-system-libs, then it might be due to a mismatch of Qt libraries with xnviewmp versus an updated Arch system?
The reason I do not use xnviewmp-system-libs is because it seems to have stability issues compared to xnviewmp.
Re: 0.99.7 Crash with videos' info panels
Posted: Tue Mar 29, 2022 5:31 am
by Spfnym
It doesn't crash when using xnview-system-libs.
Re: 0.99.7 Crash with videos' info panels
Posted: Sun Apr 03, 2022 3:07 pm
by winnylinny
Spfnym wrote: Tue Mar 29, 2022 5:31 am
It doesn't crash when using xnview-system-libs.
This makes me believe it's a mis-match between your Arch's system Qt libraries and the ones that come bundled with XnViewMP (the default
xnviewmp package.)
This has been a recurring issue with XnViewMP and Arch-based distros.
Another example:
viewtopic.php?f=62&t=42854