mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
205 stars 62 forks source link

Zoom broken after recent updates #340

Open haarp opened 5 years ago

haarp commented 5 years ago

After recent package updates on Gentoo, zoom in Atril-1.18.3 broke. The Best fit, Fit page width and Expand window to fit entries work fine, but the percent zooms do not work. Selecting any of them causes the zom level to instantly jump to 6400% and the document to shrink to a few pixels. The plus/minus zoom buttons are also grayed out.

When starting up Atril also complains about:

(atril:6239): GLib-GObject-WARNING **: value "-nan" of type 'gfloat' is invalid or out of range for property 'max-zoom' of type 'gfloat'

I tried figuring out which update broke Atril, but I haven't had any luck.

edit: Sorry for not using the template, it wouldn't contain more relevant info than I already posted. I'll edit it in regardless.

Expected behaviour

Working zoom

Actual behaviour

Broken zoom as described above

Steps to reproduce the behaviour

Select zoom level

MATE general version

not installed

Package version

1.18.3

Linux Distribution

Gentoo Linux

link to downstream report of your Distribution

none

Gooberpatrol66 commented 5 years ago

same here

lukefromdc commented 5 years ago

With Atril 1.21.0 from git master as of Oct 29, 2018 zoom works fine on Debian Unstable with locally built GTK 3.24

haarp commented 5 years ago

(sorry for not using the template, I've edited it in now.)

Could it be that this is related to the X video driver in use? By chance I replaced intel with modesetting and now zoom works fine.

raveit65 commented 5 years ago

I am using fedora and here we are using the modesetting driver since several releases. No need to use intel or nouveau driver.

After recent package updates on Gentoo

Any logs about what you have updated? Was atril in this update?

Btw. you should blame gentoo maintainer to update MATE to 1.20. We are a small team and we can support only one stable release. Mate 1.20 was releases in feb 2018, since this time 1.18 is EOL.

same here

????

lukefromdc commented 5 years ago

Odd that the video driver should effect this as we are not using the GPU at all, but I've seen trouble like that with other widgets and an Intel driver on a very old netbook before. Maybe GTK issues with some video drivers (or video driver issues w something GTK does) and their 2D code path?

haarp commented 5 years ago

Turns out it wasn't the video DDX. modesetting now exhibits the same bug aswell. However, Atril briefly worked fine the other day, so something during my system's runtime must've triggered this bug. Not updates, nor graphics drivers.

(yes, I did restart Atril)

raveit65 commented 5 years ago

Maybe a soname bump from a dependency of atril? Than a rebuild of atril should solve the issue. But again, without an info what exactly you updated it is impossible to help. Logs?

haarp commented 5 years ago

I have updated hundreds of packages since the last (known good) start of Atril, so it would be a lot of effort to go through it all. I can at least confirm that gtk3, glib, cairo and pango are not among the updates. I can also rule out harfbuzz.

Also, the fact that zoom spontenously worked, then stopped working again, indicates to me that package updates are not responsible for this bug.

I have also done a rebuild already to no avail.

I would like to figure out why max-zoom was assigned -nan in the first place, but cursory looks at the source did not reveal its secrets to me yet.

antimatter84 commented 5 years ago

I can confirm this bug. Fit to page or fit to width works, resizing the application window on these settings works, too. But when I select any zoom level as percentage, the zoom level in the combo box goes to 6400% and the document is no longer visible.

Keyboard shortcuts for controlling zoom (Ctrl++, Ctrl+-, Ctrl+0) do never work.

I ran Atril from terminal with LANG=C prefix. I get lots of "invalid matrix" warnings as well as the "-nan" warnings already mentioned by @haarp.

I am on Ubuntu 18.04.2, atril-1.20.1. Attaching screenshots and Atril stdout.

atril.log

document-fit-page document-100-percent

woalk commented 4 years ago

I'm having this exact problem since at least Ubuntu-Mate 18.04. I've now installed a fresh Ubuntu-Mate 20.04 (no upgrade, fresh install, no retention of homedir) on the same machine and it still does this, jump to an immense zoom level whenever I select any percentage.

Atril Document Viewer
1.24.0
Using poppler/cairo (0.86.1)
and SyncTeX 1.21

I sadly didn't check if this issue was already present before installing TeXlive. Could it maybe have something to do with having SyncTeX installed, as it explicitly states as being loaded? That could explain why few people notice this issue.

poleguy commented 1 year ago

I cannot Zoom past 70% on Atril (or evince). Same version numbers as woalk. I'm using Ubuntu 22.04