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
SVG in notifications results in a double free or corruption #512
Comments
Just recently, I introduced unit tests in the icon loading methods and found the corresponding bug. In parallel somewhere in the gdk libraries the svg loading broke (?!) or it maybe got more strict. Therefore, gdk fails and dunst crashes.
|
Oh wait. Stupid thinking of myself. 🙈 @tsipinakis We actually should create a hotfix and release |
@lightdiscord Out of curiosity, could you please provide this file? |
@bebehei You can find here my local version and here the common one. |
I cannot seem to reproduce this with the provided icon. @lightdiscord What version of gdk_pixbuf are you using? |
According to this file, i'm using gdk_pixbuf at version 2.36.7 |
@tsipinakis A week ago, someone showed up in IRC and asked about a corruption error. The backtrace indicated clearly, that it was the mentioned You could search around the changelog on the Gnome FTP Mirror for the corresponding bugreport. But actually, I think this is wasted energy. You could trace it back, but no matter if it's actually a problem of gdk pixbuf, dunst doesn't behave right either. I think we should fix For completeness: With the given file, I can't reproduce it either. But as I said, I'm expecting the bug in the libraries (gdk-pixbuf2 2.36.12). The most effective job to find the actual issue would be bisecting the libs. But that's too much effort. @lightdiscord Could you please compile the
|
The fix is already in In any case, I also expect this to be a bug somewhere in gdk but it's worth looking into IMO (at least finding out the error message it gives out when it fails) |
Yes, I also think we should do a patch release. Getting a meaningful error message afterwards and then fixing it upstream is also in my mind. |
Check the logs, there should be an error message on why it failed to load. |
I can't find them |
Huh, try the following
And post the log this should hopefully give enough information to figure this out. Edit: Relevant code bit is here Lines 63 to 71 in 534b09c
The only condition in which it doesn't print an error is if it can't read the file for some reason which is what I'm suspecting currently (but then again it wouldn't crash without the patch?). |
So many lines in logs.txt I send a notification with the png then with the svg |
So many logs yet not a single one from the debug output 😦
That theory is out at least. If you run dunst the same way without the redirects and strace ( |
My bad, I forgot the
🤔 |
That's what I was looking for and what we were suspecting from the beginning. I've never used nix before so I have no clue how it works but digging around in their repo looks like
Given that we're in the middle of a big refactor that will probably take a bit before we're ready for another release I'd say I agree as well. I'll prepare a bugfix release this weekend. |
Doesn't seem to be working either with |
I don't want to be the smart ass here, but for me this smelled even before like a subdependency problem and, that it's not gdk-pixbuf2 alone. The weirdest thing actually: @lightdiscord Does |
Weird, there are no svg related lines when running the command |
Solved! I export the I guess it's something related to how nix manage files. |
It might be worth reporting this to nix as well. I doubt you'll be the first one to run into this. |
When I display a notification with a PNG it works but when it is a SVG no notification is displayed.
In journalctl I have an error:
While the notification gets sent:
Installation info
The text was updated successfully, but these errors were encountered: