Bug 493500 - Spectacle crashes on launch in PipeWireBaseEncodedStream::suggestedEncoders
Summary: Spectacle crashes on launch in PipeWireBaseEncodedStream::suggestedEncoders
Status: REPORTED
Alias: None
Product: KPipeWire
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 484645 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-22 18:22 UTC by Mahmoud Shmaitelly
Modified: 2025-03-17 16:55 UTC (History)
6 users (show)

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


Attachments
debug backtrace file (3.41 KB, text/plain)
2024-09-22 18:56 UTC, Mahmoud Shmaitelly
Details
A longer dbg fie. (61.87 KB, text/plain)
2024-09-23 00:14 UTC, Mahmoud Shmaitelly
Details
using coredumptctl (97.34 KB, text/plain)
2024-09-23 11:55 UTC, Mahmoud Shmaitelly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mahmoud Shmaitelly 2024-09-22 18:22:58 UTC
STEPS TO REPRODUCE
1. Open a terminal
2. type spectacle

OBSERVED RESULT
Core dump

EXPECTED RESULT
Normal behavior

SOFTWARE/OS VERSIONS

┌─(~)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(:pts/1)─┐
└─(13:12:05)──> spectacle -v                                                                                                                                                                                                                                                                          ──(Sun,Sep22)─┘
spectacle 24.08.1
┌─(~)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(:pts/1)─┐
└─(13:12:11)──> kinfo                                                                                                                                                                                                                                                                                 ──(Sun,Sep22)─┘
Operating System: EndeavourOS 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-x64v2-xanmod1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-2600K CPU @ 3.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon HD 7800 Series
┌─(~)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(:pts/1)─┐
└─(13:12:19)──> glxinfo -B                                                                                                                                                                                                                                                                            ──(Sun,Sep22)─┘
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon HD 7800 Series (radeonsi, pitcairn, ACO, DRM 3.57, 6.9.7-x64v2-xanmod1-MANJARO) (0x6818)
    Version: 24.2.3
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 508 MB, largest block: 508 MB
    VBO free aux. memory - total: 7755 MB, largest block: 7755 MB
    Texture free memory - total: 508 MB, largest block: 508 MB
    Texture free aux. memory - total: 7755 MB, largest block: 7755 MB
    Renderbuffer free memory - total: 508 MB, largest block: 508 MB
    Renderbuffer free aux. memory - total: 7755 MB, largest block: 7755 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 9983 MB
    Currently available dedicated video memory: 508 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon HD 7800 Series (radeonsi, pitcairn, ACO, DRM 3.57, 6.9.7-x64v2-xanmod1-MANJARO)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.3-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.3-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.3-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
┌─(~)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(:pts/3)─┐
└─(12:56:32)──> spectacle                                                                                                                                                                                                                                                                             ──(Sun,Sep22)─┘
kpipewire_vaapi_logging: VAAPI: Mesa Gallium driver 24.2.3-arch1.1 for Mesa Intel(R) HD Graphics 3000 (SNB GT2) in use for device "/dev/dri/renderD128"
[1]    6196 segmentation fault (core dumped)  spectacle
Comment 1 Antonio Rojas 2024-09-22 18:33:06 UTC
Please post a backtrace as requested in the bug report template
Comment 2 Mahmoud Shmaitelly 2024-09-22 18:56:28 UTC
Created attachment 173973 [details]
debug backtrace file

Backtrace file is attached
Comment 3 Antonio Rojas 2024-09-22 21:30:08 UTC
The attached backtrace is truncated and doesn't show the relevant thread
Comment 4 Mahmoud Shmaitelly 2024-09-23 00:14:52 UTC
Created attachment 173983 [details]
A longer dbg fie.

I am sorry, let us try again.
Comment 5 Antonio Rojas 2024-09-23 09:07:34 UTC
There is no crash in this backtrace, are you sure you're posting the correct one? Please post the one provided by drkonqi (or by coredumpctl gdb)
Comment 6 Mahmoud Shmaitelly 2024-09-23 11:55:47 UTC
Created attachment 173987 [details]
using coredumptctl

I will do. I followed the dbg trace generation from : https://wiki.archlinux.org/title/Debugging/Getting_traces
using coredumptctl
Comment 7 Mahmoud Shmaitelly 2024-09-23 11:57:01 UTC
Comment on attachment 173987 [details]
using coredumptctl

I think it is Thread 17 starting at line 127.
Comment 8 Mahmoud Shmaitelly 2024-09-27 03:21:41 UTC
Is the backtrace sufficient for debugging?
Comment 9 Mahmoud Shmaitelly 2024-09-30 14:11:27 UTC
Noah,

Spectacle is a high usage app in my workflow. It is a unique app because it supports Wayland and KDE. 
Please let me know if I can help.
A timeline or status update on the fix is highly appreciated.

Thanks a lot.
Comment 10 Noah Davis 2024-10-02 07:08:10 UTC
(In reply to Mahmoud Shmaitelly from comment #7)
> Comment on attachment 173987 [details]
> using coredumptctl
> 
> I think it is Thread 17 starting at line 127.

It seems like the problem might be in KPipeWire, when it tries to use VAAPI to detect what video codecs can be encoded on the GPU.

> #16 0x00007ffff7c6645f in PipeWireBaseEncodedStream::suggestedEncoders (this=this@entry=0x7fff900013f0) at /usr/src/debug/kpipewire/kpipewire-6.1.5/src/pipewirebaseencodedstream.cpp:206
>        vaapi = <error reading variable: Cannot access memory at address 0xe41c6595629f8a08>
Comment 11 Mahmoud Shmaitelly 2024-10-02 11:03:41 UTC
Noah,
Sweet. Can it be fixed? Would it take a lot of time to get fixed?
I have tried many screenshot apps and virtually all of them did not work under Archlinux, KDE 6, and Walyand.
I highly appreciated your assistance.
Comment 12 Mahmoud Shmaitelly 2024-10-02 13:35:46 UTC
Can it be filled under Kpipewire
Comment 13 Mahmoud Shmaitelly 2024-10-02 13:37:59 UTC
Moved to KPipeWire, the version installed is extra/kpipewire 6.1.5-1 (133.5 KiB 459.5 KiB) [plasma] (Installed)
Comment 14 Mahmoud Shmaitelly 2024-10-07 10:14:42 UTC
It is not fixed in. I am sorry.  I entered the version of the Kpipewire that was installed in the "fixed in version" field.
Please, if anyone can help to fix this bug, let me know.
Comment 15 Mahmoud Shmaitelly 2024-10-14 16:00:42 UTC
Please let me know how I can assist in resolving this bug.
Comment 16 Alexey Morozov 2024-10-16 14:56:02 UTC
(In reply to Mahmoud Shmaitelly from comment #15)
> Please let me know how I can assist in resolving this bug.

I've encountered the same problem, and resolved it by replacing `libva-vdpau-driver` with `libva-nvidia-driver` package in Manjaro.

libva-vdpau-driver package is created from https://github.com/elFarto/nvidia-vaapi-driver
Comment 17 Mahmoud Shmaitelly 2024-10-24 23:11:56 UTC
Will the driver substitute solve the issue even if I use the following AMD GPU:

 	Vendor	AMD
	Renderer	AMD Radeon HD 7800 Series (radeonsi, pitcairn, LLVM 18.1.8, DRM 3.57, 6.9.7-x64v2-xanmod1-MANJARO)
	Direct Rendering	Yes
	Version (Compatibility)	4.6 (Compatibility Profile) Mesa 24.2.5-arch1.1
	Shading Language Version (Compatibility)	4.60
	Version (Core)	4.6 (Core Profile) Mesa 24.2.5-arch1.1
	Shading Language Version (Core)	4.60
	Version (ES)	OpenGL ES 3.2 Mesa 24.2.5-arch1.1
	Shading Language Version (ES)	OpenGL ES GLSL ES 3.20
	GLX Version	1.4

vdpauinfo                                                                                                                                                                                                                                                                         1 ↵ ──(Thu,Oct24)─┘
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12 
422    16384 16384  UYVY YUYV 
444    16384 16384  Y8U8V8A8 V8U8Y8A8 
420_16 16384 16384  
422_16 16384 16384  
444_16 16384 16384  

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                    3  9216  2048  1152
MPEG2_MAIN                      3  9216  2048  1152
H264_BASELINE                  41  9216  2048  1152
H264_MAIN                      41  9216  2048  1152
H264_HIGH                      41  9216  2048  1152
VC1_SIMPLE                      1  9216  2048  1152
VC1_MAIN                        2  9216  2048  1152
VC1_ADVANCED                    4  9216  2048  1152
MPEG4_PART2_SP                  3  9216  2048  1152
MPEG4_PART2_ASP                 5  9216  2048  1152
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE       0  9216  2048  1152
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
VP9_PROFILE_0                  --- not supported ---
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                  --- not supported ---
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---
AV1_MAIN                       --- not supported ---
AV1_HIGH                       --- not supported ---
AV1_PROFESSIONAL               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A8I8 I8A8 
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A8I8 I8A8 
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A8I8 I8A8 
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y
Comment 18 Mahmoud Shmaitelly 2024-10-24 23:13:09 UTC
Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 24.2.5-arch1.1 for AMD Radeon HD 7800 Series (radeonsi, pitcairn, ACO, DRM 3.57, 6.9.7-x64v2-xanmod1-MANJARO)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
Comment 19 Nate Graham 2025-03-17 16:55:04 UTC
*** Bug 484645 has been marked as a duplicate of this bug. ***