Bug 701152

Summary: [fix available] scrolling does not work as expected while viewing specific .doc file
Product: Red Hat Enterprise Linux 6 Reporter: Lubos Kocman <lkocman>
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: caolanm, dtardon
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-08 15:34:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
problematic document
none
screenshot 0
none
screenshot 1
none
fix for that
none
backported fix for oo.o 3.2.1 none

Description Lubos Kocman 2011-05-01 15:43:58 UTC
Created attachment 496071 [details]
problematic document

Description of problem:

I opened attached .doc file in writer and figured out that scrolling does not work as expected.

While moving the scrollbar down the page was not scrolling at all. The cursor moved but the "canvas" was still the same.

Then after few seconds of scrolling there was a jump to some other page.  Then after scrolling up I wasn't able to return back on the first page.

Version-Release number of selected component (if applicable):

openoffice.org-writer-core-3.2.1-19.6.el6_0.5.x86_64

bash-4.1$ rpm -qa  "java-*"
java-1.6.0-openjdk-1.6.0.0-1.39.1.9.7.el6.x86_64
java-1.6.0-sun-plugin-1.6.0.24-1jpp.1.el6.x86_64
java-1.6.0-sun-1.6.0.24-1jpp.1.el6.x86_64

bash-4.1$ alternatives --display java
java - status is auto.
 link currently points to /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java - priority 16000
 slave javaws: (null)
 slave keytool: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/keytool
 slave orbd: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/orbd
 slave pack200: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/pack200
 slave policytool: (null)
 slave rmid: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmid
 slave rmiregistry: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/rmiregistry
 slave servertool: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/servertool
 slave tnameserv: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/tnameserv
 slave unpack200: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/unpack200
 slave jre_exports: /usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64
 slave jre: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64
 slave java.1.gz: /usr/share/man/man1/java-java-1.6.0-openjdk.1.gz
 slave javaws.1.gz: (null)
 slave keytool.1.gz: /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.gz
 slave orbd.1.gz: /usr/share/man/man1/orbd-java-1.6.0-openjdk.1.gz
 slave pack200.1.gz: /usr/share/man/man1/pack200-java-1.6.0-openjdk.1.gz
 slave policytool.1.gz: (null)
 slave rmid.1.gz: /usr/share/man/man1/rmid-java-1.6.0-openjdk.1.gz
 slave rmiregistry.1.gz: /usr/share/man/man1/rmiregistry-java-1.6.0-openjdk.1.gz
 slave servertool.1.gz: /usr/share/man/man1/servertool-java-1.6.0-openjdk.1.gz
 slave tnameserv.1.gz: /usr/share/man/man1/tnameserv-java-1.6.0-openjdk.1.gz
 slave unpack200.1.gz: /usr/share/man/man1/unpack200-java-1.6.0-openjdk.1.gz
/usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java - priority 160024
 slave javaws: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/javaws
 slave keytool: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/keytool
 slave orbd: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/orbd
 slave pack200: (null)
 slave policytool: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/policytool
 slave rmid: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/rmid
 slave rmiregistry: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/rmiregistry
 slave servertool: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/servertool
 slave tnameserv: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/tnameserv
 slave unpack200: (null)
 slave jre_exports: /usr/lib/jvm-exports/jre-1.6.0-sun.x86_64
 slave jre: /usr/lib/jvm/jre-1.6.0-sun.x86_64
 slave java.1.gz: /usr/share/man/man1/java-java-1.6.0-sun.x86_64.1.gz
 slave javaws.1.gz: /usr/share/man/man1/javaws-java-1.6.0-sun.1.gz
 slave keytool.1.gz: /usr/share/man/man1/keytool-java-1.6.0-sun.x86_64.1.gz
 slave orbd.1.gz: /usr/share/man/man1/orbd-java-1.6.0-sun.x86_64.1.gz
 slave pack200.1.gz: (null)
 slave policytool.1.gz: /usr/share/man/man1/policytool-java-1.6.0-sun.x86_64.1.gz
 slave rmid.1.gz: /usr/share/man/man1/rmid-java-1.6.0-sun.x86_64.1.gz
 slave rmiregistry.1.gz: /usr/share/man/man1/rmiregistry-java-1.6.0-sun.x86_64.1.gz
 slave servertool.1.gz: /usr/share/man/man1/servertool-java-1.6.0-sun.x86_64.1.gz
 slave tnameserv.1.gz: /usr/share/man/man1/tnameserv-java-1.6.0-sun.x86_64.1.gz
 slave unpack200.1.gz: (null)
Current `best' version is /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java.

bash-4.1$ /usr/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)


How reproducible:


Steps to Reproduce:
1. Open attached .doc document in oo.writer
2. scroll down the document to the last page
3. scroll up the document to the fist page
  
Actual results:

Scrolling does not work for few seconds (cursor scrolls, but the document not) (See screenshot 0)

Then there are few jumps trough document after few seconds of scrolling.

I'm not able to view first page after scrolling up to the beginning of the document. (See screenshot 1)


Expected results:

Scrolling should be smooth without any problems

Additional info:

See scrollbar and cursor relation/position on screenshot 0.
See displayed content while scrollbar is on the top on screenshot 1.

Comment 1 Lubos Kocman 2011-05-01 15:45:14 UTC
Workaround: Save document as .odt and open it.

Issue is reproducible always at least on described setup.

Comment 2 Lubos Kocman 2011-05-01 15:46:14 UTC
Created attachment 496072 [details]
screenshot 0

see relation between scrollbar and cursor

Comment 3 Lubos Kocman 2011-05-01 15:47:20 UTC
Created attachment 496073 [details]
screenshot 1

See displayed content while scrollbar is on the very top => This is not a first page of the document

Comment 4 David Tardon 2011-05-04 11:45:44 UTC
There are two hidden frames on the first page whose positions are out in the wild, e.g., the position of the first frame is

$2 = (const Rectangle &) @0x7fffffffbe40: {
  nLeft = 9223372036854755826, 
  nTop = 9223372036854755807, 
  nRight = 9223372036854764977, 
  nBottom = 9223372036854756016
}

When I make them visible (View->Nonprinting characters), scrolling works as expected; it works too after hiding the frames again. The position of the first frame has changed to

$4 = (const Rectangle &) @0x7fffffffbe40: {
  nLeft = 1952, 
  nTop = 8797, 
  nRight = 11103, 
  nBottom = 10471
}

Therefore I think the problem is in .doc import filter (negative signed -> unsigned conversion?).

Comment 5 David Tardon 2011-05-05 12:38:24 UTC
so it's not in the doc import after all

Comment 6 David Tardon 2011-05-05 12:39:42 UTC
Created attachment 497078 [details]
fix for that

Comment 9 David Tardon 2011-05-06 13:43:18 UTC
Created attachment 497357 [details]
backported fix for oo.o 3.2.1

Comment 11 RHEL Program Management 2011-07-06 00:07:49 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 16 Suzanne Logcher 2012-02-14 23:09:28 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 17 Caolan McNamara 2012-06-08 15:34:43 UTC
This should be fixed as a side effect of rebasing to LibreOffice 3.4.5