Bug 488981

Summary: krfb SEGFAULTs after confirming
Product: [Applications] krfb Reporter: devminer
Component: generalAssignee: George Goldberg <grundleborg>
Status: REPORTED ---    
Severity: crash CC: hsantanna, moacirrf, nate, samoilov.lex, shibisjm
Priority: NOR    
Version First Reported In: 24.05.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 3 crash logs of it happening (they're mostly the same)
Symbolicated crash log

Description devminer 2024-06-22 13:48:46 UTC
Created attachment 170818 [details]
3 crash logs of it happening (they're mostly the same)

SUMMARY

When granting krfb Screen and Input devices remote control Pipewire permissions on Plasma 6.1.0 it just SEGFAULTs.

STEPS TO REPRODUCE
1. Open krfb
2. Grant Pipewire permissions using the popup that automatically opens

OBSERVED RESULT

krfb closes and "Crashed Processes Viewer" shows a new entry.

EXPECTED RESULT

krfb doesn't crash.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 6.9.5-arch1-1
KDE Plasma Version: 6.1.0 (Wayland)
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION

The crash seems to happen in `QImage::sizeInBytes()`.
Comment 1 Nate Graham 2024-06-25 22:52:06 UTC
Thank you for the bug report! Unfortunately the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

                Stack trace of thread 9572:
                #0  0x00007ffff65126df _ZNK6QImage11sizeInBytesEv (libQt6Gui.so.6 + 0x1126df)
                #1  0x00007fffed0545ad n/a (pw.so + 0x125ad)
                #2  0x00007ffff5fa17e7 n/a (libQt6Core.so.6 + 0x1a17e7)
                #3  0x00007fffec6bf7fd _ZN20PipeWireSourceStream13frameReceivedERK13PipeWireFrame (libKPipeWire.so.6 + 0x187fd)
                #4  0x00007fffec6c5b04 _ZN20PipeWireSourceStream11handleFrameEP9pw_buffer (libKPipeWire.so.6 + 0x1eb04)
                #5  0x00007fffec6c6861 _ZN20PipeWireSourceStream7processEv (libKPipeWire.so.6 + 0x1f861)
                #6  0x00007fffec0dfd48 n/a (libpipewire-0.3.so.0 + 0x5ad48)
                #7  0x00007fffe7d06dea n/a (libspa-support.so + 0x5dea)
                #8  0x00007fffe7d05d05 n/a (libspa-support.so + 0x4d05)
                #9  0x00007fffe7d07ae6 n/a (libspa-support.so + 0x6ae6)
                #10 0x00007fffec6b4459 n/a (libKPipeWire.so.6 + 0xd459)

Could you please install debug symbols for pipewire and kpipewire and attach a new symbolicated backtrace generated by using `coredumpctl gdb` in a terminal window? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl for details about how to do this.

Thanks again!
Comment 2 devminer 2024-06-26 09:54:44 UTC
Created attachment 171002 [details]
Symbolicated crash log

Attached the new backtrace, had to add the Arch debug pkg mirror, but I got there in the end.
As far as I can see, I have all debug symbols available now.
Comment 3 Bug Janitor Service 2024-07-11 03:47:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 moacirrf@gmail.com 2024-07-12 16:27:59 UTC
Same error, when i click on share button its crash.

I tried debug with GDB:

Thread 1 "krfb" received signal SIGSEGV, Segmentation fault.
QRegion::QRegion (this=this@entry=0x7fffffffc5d0, r=...) at /usr/src/debug/qt6-qtbase-6.7.2-3.fc40.x86_64/src/gui/painting/qregion.cpp:3838
Downloading source file /usr/src/debug/qt6-qtbase-6.7.2-3.fc40.x86_64/src/gui/painting/qregion.cpp
3838        d->ref.ref();
Comment 5 moacirrf@gmail.com 2024-07-12 16:28:59 UTC
(In reply to moacirrf@gmail.com from comment #4)
> Same error, when i click on share button its crash.
> 
> I tried debug with GDB:
> 
> Thread 1 "krfb" received signal SIGSEGV, Segmentation fault.
> QRegion::QRegion (this=this@entry=0x7fffffffc5d0, r=...) at
> /usr/src/debug/qt6-qtbase-6.7.2-3.fc40.x86_64/src/gui/painting/qregion.cpp:
> 3838
> Downloading source file
> /usr/src/debug/qt6-qtbase-6.7.2-3.fc40.x86_64/src/gui/painting/qregion.cpp
> 3838        d->ref.ref();

Fedora Kinoite  6.9.8-200.fc40.x86_64
Comment 6 Aleksey Samoilov 2025-04-08 22:09:57 UTC
Same bug. Debian Testing, Plasma 6.3.4, KF 6.11.0, Qt 6.8.2