Comments (14)
For Mac users encountering this warning, just install adwaita-icon-theme using homebrew. (brew install adwaita-icon-theme)
That fixes the warning.
Verified on macOS Mojave 10.14.3.
from gtk-theme.
Can you tell what widget is throwing the error? Opening it up on my end I don't see any widgets that are failing to load.
from gtk-theme.
If I am running gvim
, the error message is:
(gvim:8658): Gtk-WARNING **: Theme parsing error: gtk.css:1:0: unknown @ rule
If gtk3-widget-factory
is executed, the error message is:
pop-gtk-theme
: 2.0.5r1
gnome-shell
: 3.24.3
gtk3
: 3.22.18
gjs
: 1.48.6
from gtk-theme.
After update to version 2.0.6
,
The warning message of Theme parsing error: gtk.css:1:0: unknown @ rule
disappears. But the another warning is still there.
from gtk-theme.
Do you think this message is related to the gtk.gresouce
?
I found the way to show the message in gvim.
From gnome-terminal, run gvim
, and then click the search and replace
button in the menu bar, then the message will appear. It seems gdk-pixbuf has problem to load the checkbox or radiobox PNG icons.
from gtk-theme.
The error message would indicate that it can't load the images for some widget, but it's not a very helpful error because it doesn't tell anyone what widget it's trying to load. Images for the checkboxes and radio buttons are included in the theme, so there isn't any reason for it not to load those. There must be a different widget that is having problems, however I can't tell what that widget is.
from gtk-theme.
I also had this problem. Removing @charset "UTF-8";
in gtk.css
removed the warning
from gtk-theme.
That's a separate issue that is fixed in 2.0.6
from gtk-theme.
I use GTK3 inspector to trace the CSS used in gvim
when the search tool button is click:
$ GTK_DEBUG=interactive gvim
Finally, I found the line 2501 in gtk.css
(Pop-dark theme 2.0.6, gtk-3.22):
check:checked {
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.svg")), -gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.symbolic.png")));
}
The second icon assets/scalable/checkbox-checked-symbolic.symbolic.png
in the image fallback doesn't exist. Do you think this is the problem?
In runtime, the SVG image is converted into a base64-encode image specification with the MIME image/png
. Maybe this specification causes the issue.
I also checked the GTK theme that has no such warning, like OSX-Arc-White
. The two images in the -gtk-icon-source
image fallback are all existent.
from gtk-theme.
I have corrected the typo creating that line in the .css as of e163301, however the problem still happens, so I don't think that was the source of the problem.
from gtk-theme.
I think this issue is caused by the non-existence of the second icon in the image fallback. For example, checkbox-unchecked-symbolic.png
doesn't exist, so gdk-pixbuf will throw warning when it is checking all icons in the -gtk-icon-source
's image fallback and meets the non-existent file.
from gtk-theme.
I get the same message running the demo at:
https://python-gtk-3-tutorial.readthedocs.io/en/latest/layout.html
(stackdemo.py:13242): Gtk-WARNING **: 16:24:23.935: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be found.
I'm running this using the PyCharm IDE on a Mac (brew install pygobject3 --with-python@2 gtk+3)
from gtk-theme.
I appreciate that this issue discusses what might be at least 3 distinct bugs (possibly more):
Theme parsing error
Could not load a pixbuf from icon theme.
Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
I've just worked through fixing the third type (.../bullet-symbolic.svg
) and although I'm running debian stable and testing (buster and bullseye) instead of pop-os, I'm adding this comment in case it helps anyone here.
GTK applications need the svg gdk-pixbuf loader (/usr/lib/<arch>/gdk-pixbuf-2.0/<ver>/loaders/libpixbufloader-svg.so
) installed in order to be able to load svg images but, due to package dependency changes back in 2006, it's possible that the package that contains the svg gdk-pixbuf loader (that's the librsvg2-common
package) is not automatically installed (I've managed to get 2 full debian gtk-based gui systems up-and-running without librsvg2-common
being automatically pulled-in as an install-time dependency). What then happens is that you get weird gtk3 theme bugs that are difficult to track down (svg images used for things like scrollbar buttons just don't appear, and buttons that normally have svg borders don't get any borders around them at all which makes it difficult to realise that they are buttons) and when you start gtk applications (such as gtk3-widget-factory
) from the command line, you get error messages such as Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg. This may indicate that pixbuf loaders or the mime database could not be found.
I don't know how your package manager works here in pop-os, but if you get an error message about not being to load a pixbuf from an svg file, then please make sure you have the librsvg2-common
package installed.
I'll update this comment with a reference to the debian bts bug report once I've reported it.
Hth, j
from gtk-theme.
I appreciate that this issue discusses what might be at least 3 distinct bugs (possibly more):
1. `Theme parsing error` 2. `Could not load a pixbuf from icon theme.` 3. `Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.`
I've just worked through fixing the third type (
.../bullet-symbolic.svg
) and although I'm running debian stable and testing (buster and bullseye) instead of pop-os, I'm adding this comment in case it helps anyone here.GTK applications need the svg gdk-pixbuf loader (
/usr/lib/<arch>/gdk-pixbuf-2.0/<ver>/loaders/libpixbufloader-svg.so
) installed in order to be able to load svg images but, due to package dependency changes back in 2006, it's possible that the package that contains the svg gdk-pixbuf loader (that's thelibrsvg2-common
package) is not automatically installed (I've managed to get 2 full debian gtk-based gui systems up-and-running withoutlibrsvg2-common
being automatically pulled-in as an install-time dependency). What then happens is that you get weird gtk3 theme bugs that are difficult to track down (svg images used for things like scrollbar buttons just don't appear, and buttons that normally have svg borders don't get any borders around them at all which makes it difficult to realise that they are buttons) and when you start gtk applications (such asgtk3-widget-factory
) from the command line, you get error messages such asCould not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg. This may indicate that pixbuf loaders or the mime database could not be found.
I don't know how your package manager works here in pop-os, but if you get an error message about not being to load a pixbuf from an svg file, then please make sure you have the
librsvg2-common
package installed.I'll update this comment with a reference to the debian bts bug report once I've reported it.
Hth, j
Still have problem. My OS is Pop 20.04 and already have installed librsvg2-common.
My situation is like your second one.
(io.elementary.appcenter:2919): Gtk-WARNING **: 11:49:54.509: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
** (io.elementary.appcenter:2919): CRITICAL **: 11:58:47.294: PackageKitBackend.vala:462: 操作被取消
** (io.elementary.appcenter:2919): CRITICAL **: 11:58:47.294: gee_abstract_collection_iterator: assertion 'self != NULL' failed
** (io.elementary.appcenter:2919): CRITICAL **: 11:58:47.294: gee_iterator_next: assertion 'self != NULL' failed
** (io.elementary.appcenter:2919): WARNING **: 11:58:59.479: FlatpakBackend.vala:478: Unable to update appstream: While pulling appstream2/x86_64 from remote flathub: opcode set-read-source: Opening content object 6f7c1253dea25a3e4008725c9b163a83c3bc32e53aa9dd8fe423e72256bad873: Couldn't find file object '6f7c1253dea25a3e4008725c9b163a83c3bc32e53aa9dd8fe423e72256bad873'
What I've done:
sudo apt upgrade && sudo apt update && sudo apt install --reinstall librsvg2-common
The Pop Shop can't work especially in main page and no responding
from gtk-theme.
Related Issues (20)
- Many prompts themed incorrectly
- Can not set lock screen image HOT 1
- gnome weather notification not displaying properly HOT 1
- why in linux or other systems they do not send automatically all errors to github and they would know my errors and they could automatically write other code to solve it.
- The Calendar in the Overview Does Not Indicate Events With Dots in Light Mode HOT 1
- Transparent line of pixels in Google Chrome dark theme HOT 4
- Chromium based browsers "File Picker" doesn't follow system theme. HOT 3
- GTK 4 apps and system apps like Settings are not themed HOT 3
- Cannot find the compact title bar option. Has it moved? HOT 2
- Fedora 36 - Light shell theme incorrectly dark when built from source & dark shell theme not found HOT 1
- Error during the build process
- Scroll Bars Use The Standard Adwaita Color.
- Please tag releases HOT 4
- Crashes GTK4 Applications HOT 2
- A few bugs on dark-theme HOT 4
- Dark theme causes black-on-gray text in wxWidgets apps HOT 3
- No notification sound! HOT 1
- Boxes formed and background blurred abnormally in lock screen. HOT 2
- Issue on navigation bar of Files application, appears wrong rectangle at the beginning of the navigation bar HOT 2
- GnuCash hovered list item has transparent background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtk-theme.