Skip to content

[BUG] labwc segfault #214

Description

@tinker-net

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I load Calibre from my browser it usually fails in rendering the window. It show too much small, or too big or simply a black window. But, sometimes ir relaunch calibre, and then i have some kernel: labwc[697910]: segfault at 0 ip 0000000000000000 sp 00007fff8752fe88 error 14 likely on CPU 5 (core 5, socket 0) in the logs. Finally, after some tries it works smouth until the next time I open it.

Expected Behavior

Don't mess up with render or simply not show errors in the log.

Steps To Reproduce

  1. Open Calibre using the https server, normally with firefox. It doesn't matter the OS you are using.
  2. The webpage can load normally, or not. But, if you try to manage the resolutions it will eventually restart and then show the error in the logs

Environment

- OS:Unraid 7.3.0
- How docker service was installed: it was installed with the comunity plugin in unraid,

CPU architecture

x86-64

Docker creation

using the linuxserver template in Unraid community plugin

Container logs

Unraid Log
May 24 00:56:06 kernel: labwc[264799]: segfault at 0 ip 0000000000000000 sp 00007ffebc9e8fc8 error 14 likely on CPU 0 (core 0, socket 0)
May 24 00:56:06 kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd6.
May 24 00:56:22 kernel: labwc[697910]: segfault at 0 ip 0000000000000000 sp 00007fff8752fe88 error 14 likely on CPU 5 (core 5, socket 0)
May 24 00:56:22 kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd6.

Calibre log
INFO:gst_app_resize:Wayland Resize: Updating primary to 1920x1080 and restarting pipeline.
INFO:data_websocket:Stopping all streams for display 'primary'...
INFO:data_websocket:Successfully stopped all streams for display 'primary'.
INFO:data_websocket:Preparing to start capture for display='primary': Res=1920x1080, Offset=0x0
INFO:data_websocket:Registered Wayland cursor callback for 'primary'
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
/defaults/startwm_wayland.sh: line 18:   445 Segmentation fault         labwc > /dev/null 2>&1
INFO:data_websocket:Received resize request for primary: 4080x1888 from ('127.0.0.1', 34018)
INFO:gst_app_resize:on_resize_handler for display 'primary' with resolution: 4080x1888
INFO:gst_app_resize:Wayland Resize: Updating primary to 4080x1888 and restarting pipeline.
INFO:data_websocket:Stopping all streams for display 'primary'...
INFO:data_websocket:Successfully stopped all streams for display 'primary'.
INFO:data_websocket:Preparing to start capture for display='primary': Res=4080x1888, Offset=0x0
INFO:data_websocket:Registered Wayland cursor callback for 'primary'
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
INFO:data_websocket:Received DPI setting from client: 192 (Scale: 2.0)
INFO:data_websocket:Successfully set DPI to 192
INFO:data_websocket:Wayland: Executing 'wlr-randr --output WL-1 --scale 2.0' on wayland-0.
INFO:data_websocket:wlr-randr success: 
INFO:data_websocket:Attempting to set cursor size to: 64 (based on DPI 192)
WARNING:gst_app_resize:Failed to set XFCE cursor size.
INFO:gst_app_resize:Set GNOME cursor-size to 64
INFO:data_websocket:Successfully set cursor size to 64
INFO:data_websocket:Client is taking over existing display 'primary'. Updating state for new connection.
INFO:data_websocket:Applying and sanitizing client settings for 'primary' (initial=False)
INFO:data_websocket:DPI changed from 96 to 192. Applying system-level change.
INFO:data_websocket:Wayland Settings: Executing 'wlr-randr --output WL-1 --scale 2.0' on wayland-0
INFO:data_websocket:Received redundant resize request for primary (4080x1888). No action taken.
INFO:data_websocket:Received STOP_VIDEO for 'primary'. Stopping stream.
INFO:data_websocket:Stopping all streams for display 'primary'...
INFO:data_websocket:Successfully stopped all streams for display 'primary'.
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Received START_VIDEO for 'primary'. Starting its stream.
INFO:data_websocket:Found existing layout for 'primary'. Starting capture with: {'x': 0, 'y': 0, 'w': 4080, 'h': 1888}
INFO:data_websocket:Preparing to start capture for display='primary': Res=4080x1888, Offset=0x0
INFO:data_websocket:Registered Wayland cursor callback for 'primary'
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
INFO:data_websocket:Cleaning up Data WS handler for ('127.0.0.1', 34018) (Display ID: primary)...
INFO:data_websocket:Client for 'primary' disconnected. Removing and triggering full display reconfiguration.
INFO:data_websocket:Starting display reconfiguration...
INFO:data_websocket:Stopping all existing capture and backpressure tasks...
INFO:data_websocket:All capture instances, senders, and backpressure tasks stopped.
WARNING:data_websocket:No display clients connected. Video pipelines remain stopped.
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Reconfiguration process complete (state unlocked).
INFO:data_websocket:Keyboard reset completed (('127.0.0.1', 34018)) disconnect.
INFO:data_websocket:Last client (('127.0.0.1', 34018)) disconnected. All pipelines should have been stopped by reconfigure_displays.
INFO:main:Initiating unified pipeline shutdown...
WARNING:data_websocket:Reconfiguration already in progress. Ignoring concurrent request.
INFO:data_websocket:Stopping pcmflux audio pipeline...
INFO:data_websocket:pcmflux audio chunk broadcasting task cancelled.
INFO:data_websocket:pcmflux audio chunk broadcasting task finished.
INFO:data_websocket:pcmflux audio pipeline stopped.
INFO:main:Unified pipeline shutdown complete.
INFO:data_websocket:Data WS handler for ('127.0.0.1', 34018) finished all cleanup.
INFO:data_websocket:Stats sender: WS connection closed.
WARNING:data_websocket:Cannot broadcast cursor data: no clients connected or server not ready.
WARNING:data_websocket:Cannot broadcast cursor data: no clients connected or server not ready.
s6-rc: warning: service s6rc-oneshot-runner is marked as essential, not stopping it
[Wayland] Capture loop stopped.
[Wayland] Configuring Output: 1920x1080 @ 60.00 FPS (Scale 1.00)
[Wayland] CPU encoding selected (use_cpu=true or vaapi_node=-1).
[Wayland] Decision: No GPU Encoder available -> Using CPU Software Encoding.
Stream settings active -> Res: 1920x1080 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
No desktop processes found to terminate.
[svc-de] Wayland mode: Waiting for socket at /config/.XDG/wayland-1...
[svc-de] /config/.XDG/wayland-1 found launching de
[Wayland] Capture loop stopped.
[Wayland] Configuring Output: 4080x1888 @ 60.00 FPS (Scale 1.00)
[Wayland] CPU encoding selected (use_cpu=true or vaapi_node=-1).
[Wayland] Decision: No GPU Encoder available -> Using CPU Software Encoding.
Stream settings active -> Res: 4080x1888 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
[Wayland] Capture loop stopped.
[Wayland] CPU encoding selected (use_cpu=true or vaapi_node=-1).
[Wayland] Decision: No GPU Encoder available -> Using CPU Software Encoding.
Stream settings active -> Res: 4080x1888 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
[Wayland] Capture loop stopped.
[pcmflux] Stop requested. Cleaning up capture loop...
[pcmflux] Audio capture loop finished. Resources released.
Waiting up to 5 seconds for desktop processes to terminate...
All desktop processes terminated cleanly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions