vslavik / poedit

Translations editor for Mac, Windows and Unix
https://poedit.net
MIT License
1.8k stars 279 forks source link

Failed to load image from file "/org/gtk/libgtk/icons/16x16/actions/text-x-generic.png" #789

Closed rolodoom closed 11 months ago

rolodoom commented 1 year ago

I'm getting this error when open Poedit in Manjaro Plasma, but not really sure where to look or if need a dependency.

Screenshot_20230315_102543

can't open file '/org/gtk/libgtk/icons/16x16/actions/text-x-generic.png' (error 2: No such file or directory)
Failed to load image from file "/org/gtk/libgtk/icons/16x16/actions/text-x-generic.png".
can't open file '/org/gtk/libgtk/icons/16x16/actions/text-x-generic.png' (error 2: No such file or directory)
Failed to load image from file "/org/gtk/libgtk/icons/16x16/actions/text-x-generic.png".

OS: Majaro Plasma kernel 6.1.12-1-MANJARO Poedit: version 3.2.2 from Community Repository

Hope maybe it's a missing dependency. But not a clue.

vslavik commented 1 year ago

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019704

Looks like wxGTK issue to me.

cpontvieux-systra commented 1 year ago

Can poedit embed the icon?

c72578 commented 1 year ago

Can poedit embed the icon?

The look of text-x-generic.png depends on the selected theme.

Beryesa commented 1 year ago

Can replicate with the flatpak but that's not supported, so just noting for future searchers Copying text-x-generic.png from runtime's Adwaita to local hicolor fixes the issue here's a one-liner: flatpak run --command=sh net.poedit.Poedit -c "mkdir -p $HOME/.var/app/net.poedit.Poedit/data/icons/hicolor/16x16/mimetypes/ && cp /usr/share/icons/Adwaita/16x16/mimetypes/text-x-generic.png $HOME/.var/app/net.poedit.Poedit/data/icons/hicolor/16x16/mimetypes/" Many themes back up to hicolor but not necessarily Adwaita, breeze happens to be one of them.

Vistaus commented 1 year ago

I experience this issue as well. In the linked bug report, it doesn't look like they believe it's a wxGTK issue.

vslavik commented 1 year ago

Please refrain from posting "me too" comments here that don't add any new substantial information. Thanks.

Vistaus commented 1 year ago

I didn't just post a “me too” comment - I also added that in the bug report they don't believe it's a wxGTK issue, as they can't reproduce it. That's relevant information.

vslavik commented 1 year ago

@Vistaus The latest comment in the linked issue predates this issue and does not, in fact, say what you claim it does. On the contrary, it specifically narrows it down to wxGTK not handling SVG icons correctly. Posting misinformation wastes even more maintainer time than "me too" 🤷‍♂️

Vistaus commented 1 year ago

@Vistaus The latest comment in the linked issue predates this issue and does not, in fact, say what you claim it does. On the contrary, it specifically narrows it down to wxGTK not handling SVG icons correctly. Posting misinformation wastes even more maintainer time than "me too" man_shrugging

What I see is “I cannot reproduce this - neither on Xfce, nor on Gnome.” by someone from the bug team.

Then the bug reporter responded with a workaround, but that workaround does not work, at least for me it does not. So either way, there is an issue somewhere and Poedit is the only app where I am seeing this issue. So either it's a rare bug in wxWidgets (although the person from the bug team doesn't seem to think so as he can't reproduce it) or it's an issue in Poedit (but the error is too generic to fully confirm that).

Also, why are you saying the issue is “it doesn't handle SVG icons correctly” when this is about a PNG file?

vslavik commented 1 year ago

This will probably be mitigated by 8b564aac — as in, the underlying problem will still be there, but won't result in user-visible errors; rather, the files will have incorrect or no file icons in the sidebar.

vslavik commented 11 months ago

The mitigation seems to be working. I'm closing this because the real problem can only be fixed in wxGTK, not Poedit.