Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Crash when a new notification is sent #445

Open
zjeffer opened this issue Jun 26, 2024 · 6 comments
Open

[Bug] Crash when a new notification is sent #445

zjeffer opened this issue Jun 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@zjeffer
Copy link

zjeffer commented Jun 26, 2024

Describe the bug
Segfaults when a notification is sent.

To Reproduce
Steps to reproduce the behavior:

  1. Run swaync
  2. Send a notification (I did it by running spotify and going to the next song)

I also managed to reproduce it by simply running notify-send hello, but the below logs and backtraces are created with a spotify notification.

Expected behavior
It shows the notification without crashing.

Please provide logs if you're experiencing notification errors / bugs
gdb backtrace when built from source with G_MESSAGES_DEBUG=all: https://gist.github.com/zjeffer/45bc48dd7c7e5550655f18b2e9d82f84,

Desktop (please complete the following information):

  • OS: Arch Linux (Kernel 6.9.5-arch1-1)
  • WM: Hyprland (4168b8c17b12b90873fab1ca73c2981b53f48bf5)
  • glib2 2.80.3-2
  • libnotify 0.8.3-1

It happens with both the swaync-git AUR package and building from source.

@zjeffer zjeffer added the bug Something isn't working label Jun 26, 2024
@ErikReider
Copy link
Owner

Seems like a GTK 3 issue? I'm running a later version on my machine, and it runs just fine. Try rebuilding?

@zjeffer
Copy link
Author

zjeffer commented Jul 28, 2024

Still happening after recompiling latest git commit.

My installed versions of GTK (all installed through pacman)

  • gtk2 2.24.33
  • gtk3 3.24.43
  • gtk4 4.14.4

Which GTK3 version are you using?

@ErikReider
Copy link
Owner

Hmm, the same versions… It segfaults when constructing the notification for some reason...

@zjeffer
Copy link
Author

zjeffer commented Jul 28, 2024

Yeah, seems to happen somewhere in the HdyCarousel object deep in GTK, where at some point the widget is a nullptr. I'm not familiar with Vala or GTK so I haven't really been able to figure out where exactly it goes wrong.

@zjeffer
Copy link
Author

zjeffer commented Jul 28, 2024

When you run swaync with G_MESSAGES_DEBUG=all, what do you get as output when a new notification is sent? This is mine when I execute notify-send hello:

** (swaync:953129): DEBUG: 17:05:15.898: notiDaemon.vala:171: Notification: 
category:		(null)
image_data:		false
expire_timeout:		-1
replaces_id:		0
desktop_entry:		(null)
body:			
app_icon:		
action_icons:		false
time:			1722179115
hints:		
	sender-pid: int64 953250
	urgency: byte 0x01
applied_id:		1
image_path:		(null)
inline-reply:		(null)
app_name:		notify-send
summary:		hello
icon_data:		false
resident:		false
default_action:		(null)
actions:		
urgency:		Normal

[1]    953129 segmentation fault (core dumped) G_MESSAGES_DEBUG=all ./build/src/swaync

@zjeffer
Copy link
Author

zjeffer commented Oct 8, 2024

This is still happening btw 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants