Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
sarksloane
Posts: 89
Joined: 2017-01-17 04:21

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen

#1 Post by sarksloane »

I installed gufw and after installation when I typed gufw in terminal, I got the below error.

how to fix this?thanks.

Code: Select all

(gufw.py:4744): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:4744): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Segmentation fault
root@debian:/home/sark# 


User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#3 Post by Head_on_a_Stick »

sarksloane wrote:how to fix this?
Try switching to a supported theme — Adwaita is the "official" GTK theme and should always work without error but it's fugly; Arc & Adapta are both conformant and *much* prettier.

Do you actually have any problems with the program?

Those error messages are trivial in nature and can be safely ignored.
deadbang

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#4 Post by sarksloane »

debiman wrote:have you updated & upgraded your system meanwhile>?
http://forums.debian.net/viewtopic.php?f=30&t=132224
I updated but still nothing happened.

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#5 Post by sarksloane »

Head_on_a_Stick wrote:
sarksloane wrote:how to fix this?
Try switching to a supported theme — Adwaita is the "official" GTK theme and should always work without error but it's fugly; Arc & Adapta are both conformant and *much* prettier.

Do you actually have any problems with the program?

Those error messages are trivial in nature and can be safely ignored.
my theme is Adwaita. Do I need to ON the Global Dark Theme?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#6 Post by debiman »

@HoaS: code from post #1 has segmentation fault at the end.
sarksloane wrote:I updated but still nothing happened.
yes, but have you also upgraded?
and while you're at it, show us, please:

Code: Select all

apt-get update
apt-get upgrade

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#7 Post by sarksloane »

debiman wrote:@HoaS: code from post #1 has segmentation fault at the end.
sarksloane wrote:I updated but still nothing happened.
yes, but have you also upgraded?
and while you're at it, show us, please:

Code: Select all

apt-get update
apt-get upgrade
Thank you for your feedback :)

Code: Select all

root@debian:/home/sark# apt-get update
Ign http://dl.google.com stable InRelease
Ign http://ftp.us.debian.org jessie InRelease                                
Get:1 http://dl.google.com stable Release.gpg [916 B]                        
Get:2 http://dl.google.com stable Release [1,189 B]                            
Get:3 http://ftp.us.debian.org jessie-updates InRelease [145 kB]               
Get:4 http://dl.google.com stable/main amd64 Packages [1,413 B]                
Get:5 http://security.debian.org jessie/updates InRelease [63.1 kB]            
Hit http://ftp.us.debian.org jessie Release.gpg                                
Get:6 http://ftp.us.debian.org jessie-updates/main Sources [15.5 kB]           
Get:7 http://ftp.us.debian.org jessie-updates/main amd64 Packages/DiffIndex [7,408 B]
Get:8 http://ftp.us.debian.org jessie-updates/main i386 Packages/DiffIndex [7,408 B]
Get:9 http://ftp.us.debian.org jessie-updates/main Translation-en/DiffIndex [2,704 B]
Hit http://ftp.us.debian.org jessie Release                                    
Ign http://dl.google.com stable/main Translation-en_US                
Hit http://ftp.us.debian.org jessie/main Sources
Ign http://dl.google.com stable/main Translation-en
Get:10 http://security.debian.org jessie/updates/main Sources [193 kB]
Hit http://ftp.us.debian.org jessie/main amd64 Packages             
Hit http://ftp.us.debian.org jessie/main i386 Packages              
Hit http://ftp.us.debian.org jessie/main Translation-en
Get:11 http://security.debian.org jessie/updates/main amd64 Packages [359 kB]
Get:12 http://security.debian.org jessie/updates/main i386 Packages [360 kB]
Get:13 http://security.debian.org jessie/updates/main Translation-en [197 kB]
Fetched 1,354 kB in 7s (192 kB/s)                                              
Reading package lists... Done

Code: Select all

root@debian:/home/sark# apt-get -u upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libsmbclient libwbclient0 samba-libs
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,379 kB of archives.
After this operation, 142 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/ jessie/updates/main libwbclient0 amd64 2:4.2.14+dfsg-0+deb8u4 [121 kB]
Get:2 http://security.debian.org/ jessie/updates/main libsmbclient amd64 2:4.2.14+dfsg-0+deb8u4 [147 kB]
Get:3 http://security.debian.org/ jessie/updates/main samba-libs amd64 2:4.2.14+dfsg-0+deb8u4 [5,110 kB]
Fetched 5,379 kB in 9s (552 kB/s)                                              
Reading changelogs... Done
(Reading database ... 183063 files and directories currently installed.)
Preparing to unpack .../libwbclient0_2%3a4.2.14+dfsg-0+deb8u4_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.2.14+dfsg-0+deb8u4) over (2:4.2.14+dfsg-0+deb8u2) ...
Preparing to unpack .../libsmbclient_2%3a4.2.14+dfsg-0+deb8u4_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.2.14+dfsg-0+deb8u4) over (2:4.2.14+dfsg-0+deb8u2) ...
Preparing to unpack .../samba-libs_2%3a4.2.14+dfsg-0+deb8u4_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.2.14+dfsg-0+deb8u4) over (2:4.2.14+dfsg-0+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libwbclient0:amd64 (2:4.2.14+dfsg-0+deb8u4) ...
Setting up samba-libs:amd64 (2:4.2.14+dfsg-0+deb8u4) ...
Setting up libsmbclient:amd64 (2:4.2.14+dfsg-0+deb8u4) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Still the issue exist :(

Code: Select all

root@debian:/home/sark# gufw
No protocol specified

** (gufw.py:2100): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused

(gufw.py:2100): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2100): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2100): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#8 Post by debiman »

abit too much google in there for my taste.
might be wreaking havoc, but that's just an opinionated stab in the dark.

i don't know why gufw is misbehaving.

libc is a very important package, many things might change after upgrading that, if i were you i'd reboot and repeat the update/grade.
you can try reinstalling it after this upgrade.

if that doesn't help either, i know for a fact that ufw works very nicely, too (and is also uncomplicated).

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#9 Post by sarksloane »

debiman wrote:abit too much google in there for my taste.
might be wreaking havoc, but that's just an opinionated stab in the dark.

i don't know why gufw is misbehaving.

libc is a very important package, many things might change after upgrading that, if i were you i'd reboot and repeat the update/grade.
you can try reinstalling it after this upgrade.

if that doesn't help either, i know for a fact that ufw works very nicely, too (and is also uncomplicated).
When I used

Code: Select all

startx
and typed the gufw in terminal, it worked smoothly without any issue.

It seems that the problem is in my DE, i guess. I don't know exactly :(

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#10 Post by debiman »

couold be some authentication issue then since editing a firewall does require superuser privileges.

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#11 Post by sarksloane »

debiman wrote:couold be some authentication issue then since editing a firewall does require superuser privileges.
When my machine freshly booted with normal user and started the gufw in terminal, there is no single issue at all. It worked and behave properly.

but when I started the gufw as a superuser in terminal, it started to misbehave and the issue will come out.

Code: Select all

sark@debian:~$ gufw
sark@debian:~$ su
Password: 
root@debian:/home/sark# gufw
No protocol specified

** (gufw.py:2054): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused

(gufw.py:2054): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2054): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2054): Gtk-CRITICAL **: _gtk_settings_get_style_cascade: assertion 'GTK_IS_SETTINGS (settings)' failed

(gufw.py:2054): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:2054): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Segmentation fault 
And I observed that when I tried to exit from superuser and go back to normal user, when I started the gufw in terminal suddenly there was an error. I don't know why it gave an error wherein the first time i started it as normal user, it has no issue at all and it worked properly.

Code: Select all

root@debian:/home/sark# exit
exit
sark@debian:~$ gufw
Traceback (most recent call last):
  File "/usr/share/gufw/gufw/gufw.py", line 27, in <module>
    appInstance = Validation()
  File "/usr/share/gufw/gufw/util.py", line 28, in __init__
    self._start_application()
  File "/usr/share/gufw/gufw/util.py", line 57, in _start_application
    file = open(self.pid_file, 'wt')
IOError: [Errno 13] Permission denied: '/tmp/gufw.pid'
sark@debian:~$ 

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#12 Post by debiman »

i think you should start gufw as a normal user, it should then ask you for superuser privileges when it wants to make changes.
it's possible you have a permission mess somewhere now.
please check permissions of gufw config files in $HOME and /root, and if they don't match the other files, change.
or, simply remove all gufw configuration in both your home and /root.

also remove /tmp/gufw.pid and all other gufw files in /tmp.

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: (gufw.py:4744): Gtk-CRITICAL **: gtk_settings_get_for_sc

#13 Post by sarksloane »

debiman wrote:i think you should start gufw as a normal user, it should then ask you for superuser privileges when it wants to make changes.
it's possible you have a permission mess somewhere now.
please check permissions of gufw config files in $HOME and /root, and if they don't match the other files, change.
or, simply remove all gufw configuration in both your home and /root.

also remove /tmp/gufw.pid and all other gufw files in /tmp.
Thanks, ok I will do that and I will show the result as soon as I can..

Post Reply