Thank you for the bug report, Peter.

However, I shall not try to fix it shortly.

I suspect that those errors are due to some wrong interaction between
Ruby and Gnome libraries at some point, but I did not find enough
information about those "critical" errors when I tried to fix them in
the past.

Those errors did not entail misbehaviors of the application so far (as I
could check individually), and most users will not even notice them when
they launch screenruler from a graphic menu.

Best regards,                   Georges.

Peter Mueller a écrit :
> reopen 1000230
> found 1000230 1.0-2
> thanks
> --
> 1.0-2 works now.  Thanks a lot!!!  However, some error messages emerge.
> 1. Starting screenruler and switching four times with Alt-Tab between the 
> screen ruler and the xterm or gnome-terminal from where the screenruler was 
> started, I see the following in the console :
> screenruler & [1] 11847 $ Loading libraries... Creating windows... Reading 
> settings... Presenting ruler... Gdk-CRITICAL **: gdk_pixbuf_get_from_surface: 
> assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:133 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:133 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:133 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:133
> (Switching ones to thrice causes no messages, probably due to buffering, 
> though I can't really prove that.) More switching leads to this on the 
> console:
> Gdk-CRITICAL **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' 
> failed from /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:288 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:288 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:288 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:288 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/share/screenruler/ruler_window.rb:275 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:600 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/2.7.0/delegate.rb:343 Gdk-CRITICAL **: 
> gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:674 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:674 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:674 Gdk-CRITICAL 
> **: gdk_pixbuf_get_from_surface: assertion 'surface != NULL' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:674
> After that, I was unable to get genuinely newer messages, only the copies of 
> the above, in some order in blocks of 4.
> 2. A second-mouse-button click on the screenruler to call its menu does call 
> the menu but prints the following to the console :
> Gdk-Message: 14:19:12.255: Window 0x558616afc850 is a temporary window 
> without parent, application will not be able to position it on screen. 
> Gdk-CRITICAL **: gdk_wayland_window_handle_configure_popup: assertion 
> 'impl->transient_for' failed from 
> /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:598:in `invoke' 
> from /usr/lib/ruby/vendor_ruby/gobject-introspection/loader.rb:103:in `block 
> in define_singleton_method' from ./screenruler.rb:91:in `<main>'
> Since the errors are marked as CRITICAL, I presume that something wrong goes 
> there.
> Thanks in advance for looking into it,
> Peter

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70

Attachment: signature.asc
Description: PGP signature

Reply via email to