scrolling in xournal leads to bad rendering since update to saucy

Bug #1242641 reported by Jany Belluz
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
xournal (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using KDE as a desktop environment, KWin version:
Qt : 4.8.4
Plate-forme de développement de KDE : 4.11.2
KWin : 4.11.2

With or without compositing, multiple instances of part of the pdf file fill the screen when scrolling through it.

See attached screenshot.

It does not seem to happen when the zoom is so that one entire page is visible on screen.

Tags: eol saucy
Revision history for this message
Jany Belluz (belluzj) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xournal (Ubuntu):
status: New → Confirmed
Revision history for this message
cassiodoroVicinetti (artghio) wrote :

This bug affects me only when I scroll down the page.

Revision history for this message
Bderenor Caine (dominik-upb) wrote :

This bug affects me as well. Exact same behavior.

Revision history for this message
Guenther Palfinger (guenther-palfinger) wrote :

Workaround:

Page Up and Page Down keys (and the equivalent klick on the scroll bar) work. So rendering is OK with Page Down, Page Up and scrolling up (as mentioned by #3).

Revision history for this message
joe of loatj (monkeyofasia) wrote :

Same issue here. Can't use page up and down keys as my laptop is closed with the screen facing upwards (Thinkpad X200T) when I'm using the pen on the screen.

Tried installing an older, known working version (from 12.04) but it had the same issue, which suggests it's a deeper issue than just xournal.

Revision history for this message
Daniel Franzen (d-franzen) wrote :

I am effected as well.
PageDown key works except when it reaches the bottom of the document. So the last scroll down with buttons messes up the page as well.
I'm using a Thinkpad X201t.
Re-rendering by setting the zoom factor to the exact same value fixes the problem temporarily

Revision history for this message
Daniel Franzen (d-franzen) wrote :

The following workaround works for me. It just requests a redraw of the visible area each time after scrolling:

diff -Naur xournal-0.4.7/src/xo-callbacks.c xournal-fixed/src/xo-callbacks.c
--- xournal-0.4.7/src/xo-callbacks.c 2012-07-04 23:02:57.000000000 +0100
+++ xournal-fixed/src/xo-callbacks.c 2013-12-09 22:11:42.545079488 +0000
@@ -2935,6 +2935,11 @@
   double viewport_top, viewport_bottom;
   struct Page *tmppage;

+ GtkAdjustment *v_adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain")));
+ GtkAdjustment *h_adj = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain")));
+
+ gnome_canvas_request_redraw(canvas,h_adj->value,v_adj->value,h_adj->value+h_adj->page_size,v_adj->value+v_adj->page_size);
+
   if (!ui.view_continuous) return;

   if (ui.progressive_bg) rescale_bg_pixmaps();

Revision history for this message
Martin Ueding (martin-ueding) wrote : Re: [Bug 1242641] Re: scrolling in xournal leads to bad rendering since update to saucy

I switched to Awesome WM. The bug does not seem to occur there, so I
cannot say anything about this fix.
--
http://martin-ueding.de/#pk_campaign=Email

Revision history for this message
Martin Ueding (martin-ueding) wrote :

Okay, so I am still using KDE with Awesome WM currently, and the bug occurs there as well. I downloaded the package with `apt-get source` put the patch in there and uploaded it to my “Stable” PPA, here on Launchpad. You can get a patched version from there, if you would like to try.

Daniel, thanks for the patch. I can still see the glitches occur, but they are fixed right away. This one was driving me crazy.

Revision history for this message
Guenther Palfinger (guenther-palfinger) wrote :

I tried Martins stable PPA. The package works well for me. Thanks Martin for packaging and Daniel for the patch.

Revision history for this message
Martin Ueding (martin-ueding) wrote :

Glad the PPA version works for you. While I put the patch into the
package, I noticed that it did not have anything that `dh_clean` would
use. So I filed yet another bug against the package in the Debian BTS.

Is this bug filed in Debian as well, or does it only affect Ubuntu? I
mean, if it just stays here in this tracker, upstream may never notice
about it.
--
http://martin-ueding.de/#pk_campaign=Email

Revision history for this message
Roberto Natalini (roberto-natalini) wrote :

Martin your PPA version works really very well for me (kubuntu saucy on a fujitsu T902). Xournal is one of my most important tools at work. Many thanks! r

Revision history for this message
Martin Ueding (martin-ueding) wrote :

You are welcome. Glad that I could make use of the Debian packaging
skills :-)
--
http://martin-ueding.de/#pk_campaign=Email

tags: added: eol saucy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.