You are not logged in.

#1 2016-12-13 18:14:34

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

GTK messes up evince and pdfpc presention

Hi,

I wanted to present a PDF file. But GTK seems to mess up the size.
I tried evince with the presentation mode and also pdfpc.

I only see the left upper quarter of the pages, see:
pdfpc.png

Exactly the same happens in pdfpc.

I get following error in evince:

(evince:20595): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

Couldn't figure out how to fix this!?
Does anyone know where to look?

Last edited by rgzfxf6bhu (2017-01-09 07:55:28)

Offline

#2 2016-12-14 11:59:11

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

I just figured out that (oh btw I forgot to mention I have a HiDPI display in my new laptop), when setting the gnome scaling factor to 1 then the slides are displayed correctly:

gsettings set org.gnome.desktop.interface scaling-factor 1

But as a scaling factor of 1 with a HiDPI display is not so nice, this is just a very bad workaround...

Offline

#3 2016-12-15 09:01:44

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

Oh I don't seem to be the only one:
https://bugzilla.gnome.org/show_bug.cgi?id=772930

Following workaround doesn't work:

GDK_SCALE=1 evince --presentation file.pdf

Does GDK_SCALE even works under wayland?

Offline

#4 2016-12-15 12:40:13

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: GTK messes up evince and pdfpc presention

Does it work with evince 3.20? If so, have you tried git bisect to identify the commit that broke it?

https://wiki.archlinux.org/index.php/Bisecting_bugs


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2016-12-15 14:11:23

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

Same problem with evince 3.20.1 and also same problem with evince 3.20.0.
I used the presentation mode before. Some time around summer and then everything was working (and version 3.20.0 is from April).
As pdfpc has the same problem, it might be something outside of evince that causes the problem!?

Last edited by rgzfxf6bhu (2016-12-15 14:12:23)

Offline

#6 2016-12-24 23:59:32

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

Just realized that the issue is since I use wayland though.

Under x11 it is working just fine:

GDK_BACKEND=x11 evince --presentation pdfpc-demo.pdf

Offline

#7 2017-01-03 08:25:34

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

Updating gdk-pixbuf2 to version 2.36.2 seems to resolved the issue.

Offline

#8 2017-01-09 07:55:15

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 100

Re: GTK messes up evince and pdfpc presention

I have to appoligize, it was not the update that made it working.
But my laptop is normally starting with wayland, but now I realized it sometimes randomly starting with x11 (couldn't figure out yet why though...).

GDK_BACKEND=x11 pdfpc -S pdfpc-demo.pdf works for me.
But GDK_BACKEND=wayland pdfpc -S pdfpc-demo.pdf doesn't.

If anyone knows why it could be that my arch is starting randomly with x11, please let me know!

But as it is not only an arch related problem, we might follow these bug reports:
https://bugzilla.gnome.org/show_bug.cgi?id=772930
https://github.com/pdfpc/pdfpc/issues/178

Offline

Board footer

Powered by FluxBB