Skip to content

Crash: double free or corruption with libcava 0.10.7 #1177

@Times-Z

Description

@Times-Z

Describe the bug:

Hyprpanel crashes immediately upon startup with a memory corruption error (double free or corruption / corrupted size vs. prev_size). This is caused by an incompatibility with the latest libcava update (version 0.10.7).

To Reproduce:

Steps to reproduce the behavior:

  • Update system packages, specifically libcava to version 0.10.7-1.

  • Ensure the cava widget is enabled in your Hyprpanel configuration.

  • Launch hyprpanel from the terminal.

  • See the crash log and core dump.

Expected behavior Hyprpanel should launch and render the audio visualizer without memory corruption.

Logs:

hyprpanel-Message: 07:01:27.300: OSD: 14.4ms
corrupted size vs. prev_size while consolidating
/usr/share/hyprpanel/hyprpanel-app: line 8: 25079 Aborted (core dumped) LD_PRELOAD="" /sbin/gjs -m $file $@

Desktop:

  • Distribution: Arch Linux

  • Window Manager/Desktop Environment: Hyprland

  • GJS Version: 1.86.0

  • Libcava Version: 0.10.7-1 (Broken) / 0.10.6-2 (Working)

Additional context:

The crash is consistently reproducible on gjs 1.86.0. Downgrading libcava to 0.10.6-2 immediately resolves the issue, confirming that the memory corruption is linked to how Hyprpanel/Astal interacts with the new libcava buffers. Running with G_MESSAGES_DEBUG=all shows the crash happens right after OSD initialization when the audio modules start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions