Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 742323 - gui-apps/waybar-0.9.3: crashes on startup in certain configurations
Summary: gui-apps/waybar-0.9.3: crashes on startup in certain configurations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jonas Toth
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-09-13 10:15 UTC by Sebastian Hamann
Modified: 2020-09-14 15:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Hamann 2020-09-13 10:15:07 UTC
Waybar 0.9.3 crashes on startup when using the '{bandwidthDownBits}' or '{bandwidthUpBits}' format specifiers in the network module. Other format specifiers and modules may be affected as well. Apparently it's a regression in 0.9.3, earlier versions are not affected.
The upstream bug report is: https://github.com/Alexays/Waybar/issues/810

https://github.com/Alexays/Waybar/pull/813 (already merged upstream) fixes the issue for me. It may be worth applying the patch in the ebuild.

Reproducible: Always

Steps to Reproduce:
1. emerge "=gui-apps/waybar-0.9.3"
2. minimal config  in ~/.config/waybar/config: '{"modules-right":["network"],"network":{"format-ethernet":"{bandwidthDownBits}"}}'
3. start waybar

Actual Results:  
segmentation fault: waybar

Expected Results:  
waybar runs and shows the current ethernet downstream
Comment 1 Larry the Git Cow gentoo-dev 2020-09-14 15:58:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=740103dd3e31496b08863c0b036bd77d2647081b

commit 740103dd3e31496b08863c0b036bd77d2647081b
Author:     Sebastian Hamann <code@ares-macrotechnology.com>
AuthorDate: 2020-09-13 10:31:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-14 15:57:57 +0000

    gui-apps/waybar: Fix runtime crash in v0.9.3
    
    Upstream bug: https://github.com/Alexays/Waybar/issues/810
    Patch from: https://github.com/Alexays/Waybar/pull/813
    
    Closes: https://bugs.gentoo.org/742323
    Signed-off-by: Sebastian Hamann <code@ares-macrotechnology.com>
    Closes: https://github.com/gentoo/gentoo/pull/17519
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/waybar-0.9.3-fix-crash-with-fmt.patch    | 22 ++++++++++++++++++++++
 ...{waybar-0.9.3.ebuild => waybar-0.9.3-r1.ebuild} |  4 ++++
 2 files changed, 26 insertions(+)