<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>160628</bug_id>
          
          <creation_ts>2008-04-09 22:14:21 +0000</creation_ts>
          <short_desc>Constant resizing loop</short_desc>
          <delta_ts>2014-11-09 15:09:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>okular</product>
          <component>general</component>
          <version>0.6.3</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Owen">mowen</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>aacid</cc>
    
    <cc>ag</cc>
    
    <cc>herlimenezes</cc>
    
    <cc>j.maceachern</cc>
    
    <cc>ruchir.brahmbhatt</cc>
    
    <cc>tcvenman</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>593229</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Owen">mowen</who>
    <bug_when>2008-04-09 22:14:21 +0000</bug_when>
    <thetext>Version:           0.6.3 (using 4.0.3 (KDE 4.0.3), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.24-gentoo-r3

If the window size is set to just the wrong size, okular will constantly adjust the size in an infinite loop, consuming lots of cpu at the time. 

What happens is it adjusts the pdf to fit the window size, which then makes it add scrollbars. The scrollbars then make the pdf smaller, so it fits in the window. Because the pdf now fits in the window, the scollbars go away, so the pdf is resized larger to fit in the now slightly larger window. This makes the scrollbars come back, and this repeats in an endless cycle. 

I took some screenshots showing this, links are below. 

http://img257.imageshack.us/img257/9392/snapshot1xj9.png
http://img518.imageshack.us/img518/7269/snapshot3xg4.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593249</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2008-04-09 22:59:49 +0000</bug_when>
    <thetext>I can reproduce it using the noncontinous view, but not when using the continuous view, do you have the problem using the continuous view?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593255</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Owen">mowen</who>
    <bug_when>2008-04-09 23:12:46 +0000</bug_when>
    <thetext>Yes, it works in continuous mode, but only with 1 page documents (which is basically the same as non-continuous). It seems to trigger with anything slightly wider than the window size when in &quot;Fit Width&quot; mode. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593623</commentid>
    <comment_count>3</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2008-04-11 20:50:53 +0000</bug_when>
    <thetext>SVN commit 795883 by aacid:

Save us from infinite resizing loops, we can afford to lose 1 pixel precision to fix that

BUGS: 160628


 M  +10 -0     pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=795883
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663589</commentid>
    <comment_count>4</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-11-12 01:07:26 +0000</bug_when>
    <thetext>It seems the fix was not enough, reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663591</commentid>
    <comment_count>5</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-11-12 01:07:30 +0000</bug_when>
    <thetext>*** Bug 162602 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663593</commentid>
    <comment_count>6</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-11-12 01:09:24 +0000</bug_when>
    <thetext>*** Bug 174841 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663595</commentid>
    <comment_count>7</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-11-12 01:11:48 +0000</bug_when>
    <thetext>*** Bug 174793 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>666800</commentid>
    <comment_count>8</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2008-11-18 16:15:42 +0000</bug_when>
    <thetext>*** Bug 175499 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>677846</commentid>
    <comment_count>9</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2008-12-08 17:09:18 +0000</bug_when>
    <thetext>SVN commit 894427 by aacid:

Try to fix again the inifite scroolbar loop
It&apos;s still to be improved because it gives you a uncentered page, but better a bit ugly than unusable
This fix will be in KDE 4.1.4
BUGS: 160628


 M  +16 -8     pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=894427
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939317</commentid>
    <comment_count>10</comment_count>
    <who name="Jeffery MacEachern">j.maceachern</who>
    <bug_when>2010-03-24 03:23:17 +0000</bug_when>
    <thetext>I&apos;m experiencing exactly this in Okular 0.10.1, from KDE SC 4.4.1 (Chakra Builds), although I&apos;ve never noticed it before in previous versions.  Maybe a regression?  I&apos;m not reopening this myself because I&apos;m unsure of policy in this case, but the issue definitely still exists, under the same circumstances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>939634</commentid>
    <comment_count>11</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2010-03-24 20:48:00 +0000</bug_when>
    <thetext>Yeah it seems to be happening again, it would be bug 227153 so no need to reopen this again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480347</commentid>
    <comment_count>12</comment_count>
    <who name="Herli Menezes">herlimenezes</who>
    <bug_when>2014-11-09 12:38:37 +0000</bug_when>
    <thetext>The reported issues is present in KDE 4.14.2, if I try to open or browse a document, Okular freezes, and last long time to recover. I am using Linux, Fedora 20 distro, in a Dell Vostro notebook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480370</commentid>
    <comment_count>13</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-11-09 15:09:35 +0000</bug_when>
    <thetext>Herli, your description has really nothing to do with the original bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>