[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gv] Page selector window does not show all page numbers

From: Bernhard R. Link
Subject: Re: [bug-gv] Page selector window does not show all page numbers
Date: Tue, 20 May 2008 17:18:00 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* Juha Takala <address@hidden> [080517]
> At start, gv does dot display the page numbers in the left side window
> intended for page selection.  Only after I move mouse in that window, the
> page numbers become visible.
> Another problem is that after page 1 + 5 + 523 + 1109 = 1638, the page
> numbers will not be shown at all.  The pages are there, I can e.g. move to
> the last page of document by <End> key.

I think this is basically a problem with the naive implemenentation variant
of scroll lists in Xt: You create a widget for the full list and just show
a specific part of it depending on some generic scrolling widget.
While this variant (which I *guess* is used here and responsible for this)
is the most easy to implement and has some elgance in design, it has the
serious problem that X window dimensions are 16 bit.

* Markus Steinborn <address@hidden> [080520]:
> On Mon, 19 May 2008, Juha Takala wrote:
> >BUT...  With this test file, it is very deterministic to crash my X
> >session,
> >when I try to view page 1639!

Please look into the X server output (on Debian variants in
/var/log/Xorg.$DISPLAY.log). That might actually be an X server crash,
triggered by some problem with signed short ints.
(While window dimensions are in principle 16 bit, some code (in my experience
especially graphic accelerating stuff) is written badly not looking at the
differences between signed and unsigned data types, so having dimensions
needing the 16th bit can cause crashes.

> Works for me here.

If the above is true, it might just be an other card driver used, or different
acceleration enabled. On the other hand, you might see vanishing page numbers
when doubling the page numbers.

        Bernhard R. Link

reply via email to

[Prev in Thread] Current Thread [Next in Thread]