Bug 468989 - Spectacle and plasmashell crash after taking and annotating screenshot
Summary: Spectacle and plasmashell crash after taking and annotating screenshot
Status: RESOLVED DUPLICATE of bug 455362
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.12.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-04-26 07:58 UTC by Gregory Williams
Modified: 2023-04-26 17:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregory Williams 2023-04-26 07:58:02 UTC
Application: spectacle (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.104.0
Operating System: Linux 6.1.18-200.fc37.x86_64 x86_64
Windowing System: X11
Distribution: "Fedora release 37 (Thirty Seven)"
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
I took a screenshot using Spectacle. I used the PrtSc key to trigger it and then selected a rectangular box from a portion of a single screen. I annotated the screenshot with highlights and then saved this annotated version. The crash of Spectacle then happened with plasmashell crashing a moment afterwards. plasmashell then automatically restarted.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Spectacle (spectacle), signal: Segmentation fault

[KCrash Handler]
#4  jas_stream_putc_func (stream=0x0, c=0) at /usr/src/debug/jasper-3.0.6-1.fc37.x86_64/src/libjasper/base/jas_stream.c:629
#5  0x00007f6f91342be8 in jp2_putuint32 (out=out@entry=0x0, val=val@entry=12) at /usr/src/debug/jasper-3.0.6-1.fc37.x86_64/src/libjasper/jp2/jp2_cod.c:762
#6  0x00007f6f913444c8 in jp2_box_put (box=box@entry=0x557c40e6ede0, out=out@entry=0x0) at /usr/src/debug/jasper-3.0.6-1.fc37.x86_64/src/libjasper/jp2/jp2_cod.c:565
#7  0x00007f6f9134668e in jp2_encode (image=0x557c4459bfb0, out=0x0, optstr=0x557c41508350 "") at /usr/src/debug/jasper-3.0.6-1.fc37.x86_64/src/libjasper/jp2/jp2_enc.c:146
#8  0x00007f6f912a261d in QJp2Handler::write(QImage const&) () from /usr/lib64/qt5/plugins/imageformats/libqjp2.so
#9  0x00007f6fb7bcb765 in QImageWriter::write(QImage const&) () from /lib64/libQt5Gui.so.5
#10 0x00007f6fb7baeeb5 in QImage::save(QIODevice*, char const*, int) const () from /lib64/libQt5Gui.so.5
#11 0x00007f6fb7b86ba0 in QInternalMimeData::renderDataHelper(QString const&, QMimeData const*) () from /lib64/libQt5Gui.so.5
#12 0x00007f6fa4ef7f88 in QXcbMime::mimeDataForAtom(QXcbConnection*, unsigned int, QMimeData*, QByteArray*, unsigned int*, int*) () from /lib64/libQt5XcbQpa.so.5
#13 0x00007f6fa4eeae93 in QXcbClipboard::sendSelection(QMimeData*, unsigned int, unsigned int, unsigned int) () from /lib64/libQt5XcbQpa.so.5
#14 0x00007f6fa4eeb4de in QXcbClipboard::handleSelectionRequest(xcb_selection_request_event_t*) () from /lib64/libQt5XcbQpa.so.5
#15 0x00007f6fa4eeee46 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /lib64/libQt5XcbQpa.so.5
#16 0x00007f6fa4ef02c6 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#17 0x00007f6fa4f16a77 in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#18 0x00007f6fb5318c7f in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#19 0x00007f6fb536f118 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#20 0x00007f6fb5315f00 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#21 0x00007f6fb76ee5fa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#22 0x00007f6fb769bf3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#23 0x00007f6fb76a4002 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#24 0x0000557c40694384 in main ()
[Inferior 1 (process 4158782) detached]

The reporter indicates this bug may be a duplicate of or related to bug 455362.

Reported using DrKonqi
Comment 1 Nate Graham 2023-04-26 17:23:52 UTC
Looks like JP2 support on your machine is busted. This is a duplicate of Bug 455362 which is caused by a Qt issue (https://bugreports.qt.io/browse/QTBUG-104398) which is fixed in Qt 6

*** This bug has been marked as a duplicate of bug 455362 ***