Bug 471031 - Gwenview crashes with segmentation fault when trying to open a JPG from dolphin
Summary: Gwenview crashes with segmentation fault when trying to open a JPG from dolphin
Status: RESOLVED DUPLICATE of bug 470880
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 23.04.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-06-14 17:00 UTC by forenkram
Modified: 2023-06-17 05:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (2.46 KB, text/plain)
2023-06-17 05:04 UTC, Nalin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description forenkram 2023-06-14 17:00:01 UTC
Application: gwenview (23.04.2)

Qt Version: 5.15.9
Frameworks Version: 5.107.0
Operating System: Linux 6.3.7-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
Gwenview crashes with segmentation fault when trying to open a JPG from dolphin. 
However, opening gwenview from a terminal and browsing seems to work. 
Issuing gwenview 001.jpg also opens the picture without crashing. 
Might be dolphin related.

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f95047c97ab in Exiv2::ExifData::findKey(Exiv2::ExifKey const&) const () from /usr/lib/libexiv2.so.28
#5  0x00007f9504842fda in ?? () from /usr/lib/libexiv2.so.28
#6  0x00007f950476711d in ?? () from /usr/lib/libexiv2.so.28
#7  0x00007f95047c0914 in Exiv2::Exifdatum::write(std::basic_ostream<char, std::char_traits<char> >&, Exiv2::ExifData const*) const () from /usr/lib/libexiv2.so.28
#8  0x00007f95055ed1f4 in Gwenview::ImageMetaInfoModel::setExiv2Image(Exiv2::Image const*) () from /usr/lib/libgwenviewlib.so.5
#9  0x00007f95055b1c21 in Gwenview::Document::setExiv2Image(std::unique_ptr<Exiv2::Image, std::default_delete<Exiv2::Image> >) () from /usr/lib/libgwenviewlib.so.5
#10 0x00007f95055bcd8e in ?? () from /usr/lib/libgwenviewlib.so.5
#11 0x00007f95032cffe7 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007f95030fd0d5 in QFutureWatcherBase::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0x00007f9503f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007f950329ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#15 0x00007f950329fa7b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#16 0x00007f95032e6088 in ?? () from /usr/lib/libQt5Core.so.5
#17 0x00007f9501110981 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007f950116db39 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x00007f950110e032 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007f95032e9f0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#21 0x00007f9503299824 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#22 0x00007f950329acc3 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#23 0x00005647176eda49 in ?? ()
#24 0x00007f9502a39850 in ?? () from /usr/lib/libc.so.6
#25 0x00007f9502a3990a in __libc_start_main () from /usr/lib/libc.so.6
#26 0x00005647176ee245 in ?? ()
[Inferior 1 (process 2078) detached]

Reported using DrKonqi
Comment 1 Antonio Rojas 2023-06-14 18:22:10 UTC
*** This bug has been marked as a duplicate of bug 470880 ***
Comment 2 Nalin 2023-06-17 05:04:49 UTC
Created attachment 159728 [details]
New crash information added by DrKonqi

gwenview (23.04.2) using Qt 5.15.9

Gwenview crashes when opening jpg image from dolphin

-- Backtrace (Reduced):
#4  0x00007fa08a5c97ab in Exiv2::ExifData::findKey(Exiv2::ExifKey const&) const () at /usr/lib/libexiv2.so.28
[...]
#7  0x00007fa08a5c0914 in Exiv2::Exifdatum::write(std::basic_ostream<char, std::char_traits<char> >&, Exiv2::ExifData const*) const () at /usr/lib/libexiv2.so.28
#8  0x00007fa08b3011f4 in Gwenview::ImageMetaInfoModel::setExiv2Image(Exiv2::Image const*) () at /usr/lib/libgwenviewlib.so.5
#9  0x00007fa08b2c5c21 in Gwenview::Document::setExiv2Image(std::unique_ptr<Exiv2::Image, std::default_delete<Exiv2::Image> >) () at /usr/lib/libgwenviewlib.so.5
[...]
#12 0x00007fa088efd0d5 in QFutureWatcherBase::event(QEvent*) () at /usr/lib/libQt5Core.so.5