Bug 495621 - Spectacle crashes when clicking "Save As" if an iPhone is attached
Summary: Spectacle crashes when clicking "Save As" if an iPhone is attached
Status: RESOLVED UPSTREAM
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.08.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-31 03:47 UTC by John Kizer
Modified: 2024-10-31 22:48 UTC (History)
2 users (show)

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


Attachments
Crashed Processes Viewer report from Spectacle crashing on "Save As" with an iPhone attached (59.08 KB, text/plain)
2024-10-31 03:47 UTC, John Kizer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Kizer 2024-10-31 03:47:33 UTC
Created attachment 175393 [details]
Crashed Processes Viewer report from Spectacle crashing on "Save As" with an iPhone attached

SUMMARY
In Spectacle's "do things with your screenshot" view, when I click Save As, Spectacle crashes silently (no message, the UI and any boxes/effects drawn on the screen and everything just disappears) -- if and only if my iPhone is attached.

Other KDE applications, like Gwenview and Kate, that would presumably use the same Save As dialog, and that show the iPhone in the locations panel on the left, do not crash when using Save As.

STEPS TO REPRODUCE
1. Plug in an iPhone using a USB cable
2. Take a screenshot with Spectacle
3. Click Save As

OBSERVED RESULT
Spectacle crashes silently, losing the screenshot and any edits, with no visible message

EXPECTED RESULT
The standard KDE Save As dialog appears

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I tried the Run Interactive Debugger option in the Crashed Processes Viewer - this is the end of what I saw before the (gdb) prompt came up, I don't know if I should have tried to proceed further from that prompt but I assumed the SIGSEGV meant it had crashed in the process of trying to debug?

> Downloading 463.01 K separate debug info for /usr/lib64/qt6/plugins/imageformats/kimg_rgb.so                                              
> Downloading 1.17 M separate debug info for /usr/lib64/qt6/plugins/imageformats/kimg_xcf.so                                                
> Downloading 59.11 K separate debug info for system-supplied DSO at 0x7f424a018000                                                         
> [Thread debugging using libthread_db enabled]                                                                                             
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `/usr/bin/spectacle --dbus'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> Downloading source file /usr/src/debug/samba-4.21.1-7.fc41.x86_64/bin/default/../../source4/lib/socket/socket.c
> #0  socket_send (sock=sock@entry=0x48, blob=blob@entry=0x7ffec7798010, sendlen=sendlen@entry=0x10)                                        
>     at ../../source4/lib/socket/socket.c:239
> 239             if (sock->state != SOCKET_STATE_CLIENT_CONNECTED &&
> [Current thread is 1 (Thread 0x7f42285c2440 (LWP 7304))]
> Missing debuginfo, try: dnf debuginfo-install ffmpeg-libs-7.0.2-4.fc41.x86_64
> Missing debuginfo, try: dnf debuginfo-install x264-libs-0.164-15.20231001git31e19f92.fc41.x86_64
> Missing debuginfo, try: dnf debuginfo-install x265-libs-3.6-3.fc41.x86_64
> Missing debuginfo, try: dnf debuginfo-install xorg-x11-drv-nvidia-libs-560.35.03-5.fc41.x86_64
Comment 1 Nate Graham 2024-10-31 22:48:04 UTC
Unfortunately the crash is in libusbmuxd. Can you contact your distro packagers about it? In this case, Fedora. Make sure to attach a full backtrace for them, with debug symbols.