gtk3 keep crashing - gtk3

trying to gtk-3 based application
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:289:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:323:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1828:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1845:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1861:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2146:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:16:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:93:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:183:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:503:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:850:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:925:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:941:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:957:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:1012:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:1020:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:1034:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:1103:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gtk-widgets-backdrop.css:1237:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: gnome-panel.css:94:21: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: nautilus.css:18:18: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: nautilus.css:18:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: nautilus.css:81:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: nautilus.css:86:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Theme parsing error: nautilus.css:145:20: Not using units is deprecated. Assuming 'px'.
(audacious:10165): Gtk-WARNING **: Style property "border-top-left-radius" is not gettable
(audacious:10165): GLib-GObject-WARNING **: /build/buildd-glib2.0_2.35.8-1-amd64-lGLf9n/glib2.0-2.35.8/./gobject/gtype.c:4234: type id `0' is invalid
(audacious:10165): GLib-GObject-WARNING **: can't peek value table for type `' which is not currently referenced
Segmentation fault
any help?

Could be your gtk-3 theme that is incompatible with your gtk-3 library. Try removing the theme from .config/gtk-3.0/settings.ini and relaunching the aplication.

the actually important part is:
(audacious:10165): GLib-GObject-WARNING **: /build/buildd-glib2.0_2.35.8-1-amd64-lGLf9n
/glib2.0-2.35.8/./gobject/gtype.c:4234: type id `0' is invalid
(audacious:10165): GLib-GObject-WARNING **: can't peek value table for type `' which is
not currently referenced Segmentation fault
which means that the code is trying to access an instance of an unknown type. this is most likely a bug in audacious, so you should ask the audacious developers; it will be easier if you gather a stack trace that shows the callers list for that particular warning. you can use gdb and the G_DEBUG environment variable to retrieve the stack trace - just follow the instructions available on the GNOME wiki: https://live.gnome.org/GettingTraces

I'm not getting any crashes, but this is the only question I could find with this error message that's been bugging the crap out of me:
Gtk-WARNING **: Theme parsing error: nautilus.css:86:20: Not using units is deprecated. Assuming 'px'.
I'm programming in C and Python currently and I got several of these with every run. I've been looking for a solution for this for awhile and I finally dug into it today out of frustration with my clogged up terminal output. The solution is INCREDIBLY SIMPLE!!
I run xfce4 on Arch Linux with the "dusk theme". I was getting this error for a gtk.css file on line 72.
By grepping the output of "find", I found the file in "/usr/share/themes/Xfce-dusk/gtk-3.0/gtk.css". I confirmed by moving the line down 2 lines, and ran my program again. The error message then referenced line 74!
On Line 72 I changed it from, "text-shadow: 1 1 white;" to "text-shadow: 1px 1px white;".
Voila! No more annoying error messages!

Related

Flutter App Build apk errors but running is correctly Solved

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
D:\Flutter Error Project\musicapp\medicos\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: file failed to compile.
Problem Is With APP ICON .
MAKE APP ICON .PNG FORMAT
The Error is solved
If this type of error occurs it means that your flutter app icon is not png format. So, first, make your app icon in png extension and then again add in your flutter project. This error will be solved.

Flatpak on wayland error "cannot open display: "

Whenever I try to run any Gtk+ Flatpak-ed app on wayland I get error such as:
(porto:3): Gtk-WARNING **: 00:55:13.780: cannot open display: :99.0
(setzer:2): Gtk-WARNING **: 01:01:41.868: cannot open display:
(org.gnome.Maps:2): Gtk-WARNING **: 01:02:18.136: cannot open display:
The problem seems to be that GDK_BACKEND variable is for some reason set to X11. Run following commands to check whether you have the same problem. I'm using gnome maps, but you can use whichever app you like.
flatpak run --command=sh org.gnome.Maps
echo $GDK_BACKEND:$WAYLAND_DISPLAY:$DISPLAY
Your output should be something like wayland-0,x11:wayland-0,:0.0. If it's not you should try experimenting with those variables
export GDK_BACKEND="wayland,x11"
export WAYLAND_DISPLAY="wayland-0"
export DISPLAY="wayland-0"
gnome-maps
Variable changes aren't permanent and are set only until container's shell is closed.
In my case it was a Java app under flatpak refusing to launch with said cannot open display error.
I fixed it by changing "--socket=fallback-x11" to be just "--socket=x11" in the flatpak manifest "finish-args" element.

Fontconfig errors when launching emacs intalled with nix

I am using Ubuntu 19.10. I have nix version 2.3.1. I installed emacs 26.3 using:
nix-env -iA nixpkgs.emacs
When I launch emacs I get these error messages:
(process:9100): Gtk-WARNING **: 09:41:39.668: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 09:41:39.756: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:41:39.756: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
Is there some way to fix this?
The issue here is that Emacs in nixpkgs is built against a slightly older version of fontconfig (2.12.6) than is shipped with Ubuntu (2.13.1). However, the fontconfig 2.12.6 of Emacs tries to read the /etc/fonts/fonts.conf that was installed by fontconfig 2.13.1 of the host system. In the meantime some additional fields have been added to the configuration which the old version doesn't understand.
On my system I simply removed the offending lines from /etc/fonts/fonts.conf and have not experience any adverse effects yet.

Compser is updating with some warnings

This happens in my mac osx. This is regarding zend framework 3.
When I update the composer some warnings are occur.
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so' - dlopen(/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so, 9): image not found in Unknown on line 0
after that when the page is refreshing this error occur.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
This has nothing to do with zendframework 3.
PHP Warning: PHP Startup: Unable to load dynamic library mcrypt.so
This is probably caused by not having the PHP mcrypt extension installed.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found
According to the mongodb/mongodb package, you need to install the PHP mongodb extension.

Problem in running eclipse 3.6 on ubuntu 10.04

I am trying to run eclipse 3.6 on ubuntu 10.04. I am getting these errors:
** (Eclipse:13709): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
** (Eclipse:16806): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
** (Eclipse:16806): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
** (Eclipse:16806): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
** (Eclipse:16806): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
And this causes the tool bar has big height. Is there a way to fix it?
Thank you.
it's a problem related to gtk and not to eclipse or emacs.
try this (solved to me) :
Modify the entry in /usr/share/themes/Ambiance/gtk-2.0/gtkrc from GtkRange::trough-under-steppers = 0 to GtkRange::trough-under-steppers = 1.
thanks to http://thehacklist.blogspot.com/2010/06/resolving-murrinestyledrawbox-assertion.html
[]s
pedro
Looks like bug 305843
It should be fixed in Eclipse Helios 3.6RC4 and more.
If you have the final Eclipse Helios 3.6 version, you may have to open a new bug report.