zielmicha / nim-dbus

libdbus binding for Nim
MIT License
19 stars 7 forks source link

Crash on freedesktop notification from Firefox #17

Closed PMunch closed 3 years ago

PMunch commented 3 years ago

I used this to implement notifications for notificatcher. But when I try to send a notification from Firefox to test actions I get this error:

dbus[744108]: arguments to dbus_watch_get_enabled() were incorrect, assertion "watch != NULL" failed in file dbus-watch.c line 705.
This is normally a bug in some application using the D-Bus library.

Traceback (most recent call last)
/home/peter/Projects/notificatcher/src/notificatcher.nim(299) notificatcher
/home/peter/Projects/notificatcher/src/notificatcher.nim(238) default
/home/peter/.nimble/pkgs/dbus-0.0.1/dbus/loop.nim(99) runForever
/home/peter/.nimble/pkgs/dbus-0.0.1/dbus/loop.nim(53) tick
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

But only after the action have been run.

Notificatcher can be found at https://github.com/PMunch/notificatcher.git and the webpage I used for Firefox was: https://www.bennish.net/web-notifications.html