[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2023-10-30 Thread Adriano Vilela
https://bugs.kde.org/show_bug.cgi?id=421780

Adriano Vilela  changed:

   What|Removed |Added

 CC||adriano.vil...@yahoo.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-07-19 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #30 from Albert Astals Cid  ---
Which ones?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-07-18 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #29 from Bernhard Rosenkränzer  ---
Confirmed, it's caused by compiler flags in qtcore.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #28 from abulhair.sapa...@gmail.com ---
Yeah, the compiler assumes that no floating point number is NaN or inf, so it
can make optimizations like: `x == x` -> `true`, `x * 1` -> `x`, etc. But I
think functions like `isnan` or `isinf` will still work correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #27 from David Hurka  ---
Awesome! :) I think QScroller shouldn’t break because of floating point
inaccuracy. But its complicated floating point calculations make it seem
possible to me.

What does -ffinite-math-only mean? That stuff like qNaN does not work, because
it is not a finite floating point number? Then QScroller can’t work.

Thanks for the gdb output anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #26 from abulhair.sapa...@gmail.com ---
I found the bug, for me, was being caused by compiling qtcore with the flag
-ffinite-math-only. I had previously ruled out optimization flags as being the
cause since I had recompiled okular and qtwidgets with no optimizations and the
bug persisted, and when I saw this reported bug, I thought it must be caused by
something else. But I don't know if this is the cause of the issue for Bernhard
or others.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #25 from abulhair.sapa...@gmail.com ---
Actually I think I may have inadvertently fixed my issue. I tried recompiling
all of qtcore, qtwidgets, and okular with debug symbols as well as disabling
all optimization and now it's scrolling correctly! I suspect it's one of the
optimizations causing the bug. Give me some time to tinker and find exactly
which one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #24 from abulhair.sapa...@gmail.com ---
(In reply to David Hurka from comment #22)
> Mistake: Instead of this:
> 
> >breakpoint QScroller::scrollTo
> it is called this:
> 
> >break QScroller::scrollTo(QPointF const&, int)

Ah this worked but the output is the same as before (aside from some
differences in pointers in 'xSegments').

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #23 from abulhair.sapa...@gmail.com ---
Created attachment 137231
  --> https://bugs.kde.org/attachment.cgi?id=137231=edit
gdb output

For some reason there wasn't a symbol 'this' in the QScroller::scrollTo frame
(maybe I didn't correctly compile with debug symbols), but I went one frame up
to PageView::slotScrollDown (okular-20.12.3/part/pageview.cpp:4831) and did
'print -pretty on -- *d->scroller->d_ptr'. The output of this command is
attached.

The breakpoint fired when I tried to scroll down with the mouse wheel.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #22 from David Hurka  ---
Mistake: Instead of this:

>breakpoint QScroller::scrollTo
it is called this:

>break QScroller::scrollTo(QPointF const&, int)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #21 from abulhair.sapa...@gmail.com ---
Apparently parttest seems to have been excluded by Gentoo
(https://bugs.gentoo.org/641728), along with mainshelltest, chmgeneratortest,
parttest, and annotationtoolbartest.

Sure I'll try running okular with gdb now.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-04-01 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #20 from David Hurka  ---
Thanks! No fails related to QScroller visible. But what’s with “parttest”?
ctest didn’t run it, or cmake didn’t compile it?

Maybe we can try to look at internal values of QScroller. You will need to
install debugging symbols for (at least) Qt5 and Okular. On ubuntu, they are
called: libqt5core5a-dbgsym, libqt5gui5-dbgsym, libqt5widgets5-dbgsym,
okular-dbgsym. I don’t know how Gentoo works, possible that you don’t need
them.

Then run:
> $ gdb okular
> (gdb) set pagination off
> (gdb) run
> no open a document in Okular and reproduce the bug
> ^C (hit Ctrl+C)
> (gdb) breakpoint QScroller::scrollTo
> (gdb) continue
> now reproduce the bug
> (gdb) print -pretty on -- *this->d_ptr

I will look later at QScroller to see what these values mean. ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-31 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #19 from abulhair.sapa...@gmail.com ---
Created attachment 137213
  --> https://bugs.kde.org/attachment.cgi?id=137213=edit
Okular autotest results

I'm running Gentoo, so I just compiled the okular tests and ran them.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-31 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #18 from abulhair.sapa...@gmail.com ---
No xD  It happens on both of my Plasma systems: one is a laptop with a single
monitor, and the other is a desktop connected to a Denon receiver via HDMI (so
Plasma thinks it's a second monitor).

I'm using X and not Wayland.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-31 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #17 from David Hurka  ---
(In reply to Nate Graham from comment #15)
> The problem can be reproduced by disabling scrollbars in Okular's config
> window. [...] I know we also have Bug 421822, but
> when scrollbars are disabled, I get the full set of symptoms indicated in
> this bug report, not just pageup/pagedown being broken.

Can’t reproduce. When I disable scrollbars, only Page Up/Down are affected.

Just by chance: I have a 1920x1080 screen at 131.25%. Do you have a second
screen, possibly a rotated one to the right? ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #16 from abulhair.sapa...@gmail.com ---
I have "show scrollbars" enabled in the Okular config window. I tried
experimenting with "Use smooth scrolling" but the behavior is the same. I am
able to scroll using the scrollbars. Interestingly, the mouse wheel scroll
works if the cursor is over the scrollbar, but not when it's over the document.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=421780

Nate Graham  changed:

   What|Removed |Added

 Status|NEEDSINFO   |CONFIRMED
 Resolution|WAITINGFORINFO  |---

--- Comment #15 from Nate Graham  ---
The problem can be reproduced by disabling scrollbars in Okular's config
window. My guess is that internally, this stops the creation of the QScroller
widget that now handles all scrolling.

Are the rest of you who are experiencing the problem also disabling scrollbars,
or is this a separate issue? I know we also have Bug 421822, but when
scrollbars are disabled, I get the full set of symptoms indicated in this bug
report, not just pageup/pagedown being broken.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-30 Thread David Hurka
https://bugs.kde.org/show_bug.cgi?id=421780

David Hurka  changed:

   What|Removed |Added

 Status|CONFIRMED   |NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #14 from David Hurka  ---
Bernhard and abulhair seem to be the only ones who stated to have this problem.

@Nate, you confirmed this bug, how did you reproduce it?

@Bernhard, you seem to be able to compile Okular. Can you run the autotests and
post the results? Maybe that gives us some insight.

Additionally, can you run the autotests provided in
https://bugreports.qt.io/browse/QTBUG-88249 (and maybe
https://bugreports.qt.io/browse/QTBUG-88249 )? These are not made for this
problem, but AFAIR do some debugging output on QScroller.

Additionally, can you check whether the problem persists if you uncheck “Use
smooth scrolling” in the config dialog?

A guess on the problem source: QScroller internally relies on QScreen
properties. If your physical screen reports some very wrong properties,
QScroller doesn’t work.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-22 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=421780

Bernhard Rosenkränzer  changed:

   What|Removed |Added

Version|20.11.80|21.03.80

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-22 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=421780

Bernhard Rosenkränzer  changed:

   What|Removed |Added

 Attachment #133543|0   |1
is obsolete||

--- Comment #13 from Bernhard Rosenkränzer  ---
Created attachment 136944
  --> https://bugs.kde.org/attachment.cgi?id=136944=edit
Patch for 21.03.80

The problem still persists in 21.03.80. Attaching updated workaround.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2021-03-03 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=421780

abulhair.sapa...@gmail.com changed:

   What|Removed |Added

 CC||abulhair.sapa...@gmail.com

--- Comment #12 from abulhair.sapa...@gmail.com ---
I've also been having this problem for probably over a year. I'm using Qt
5.15.2, Frameworks 5.79.0, and Okular 20.12.2 on Gentoo. I can't scroll using
the mouse wheel, arrow keys, page up/down buttons, navigating to a page by
entering the page number and hitting enter, or clicking on clicking/dragging on
the thumbnails on the right. As a workaround, I've been scrolling by clicking
and dragging on the document itself in "Browse" mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2020-11-21 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=421780

Bernhard Rosenkränzer  changed:

   What|Removed |Added

Version|1.10.80 |20.11.80

--- Comment #10 from Bernhard Rosenkränzer  ---
Still occurs with 20.11.80

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2020-10-16 Thread Ben Bullard
https://bugs.kde.org/show_bug.cgi?id=421780

Ben Bullard  changed:

   What|Removed |Added

 CC||benbullar...@cox.net

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2020-08-09 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=421780

--- Comment #9 from Albert Astals Cid  ---
(In reply to Nate Graham from comment #8)
> Albert, I'd be in favor of doing this for the 20.12 release. What do you
> think?

Yes, i think they should be reverted, but i was outvoted in the discussion we
had in the mailing list to do it for 20.08

Maybe you can join the Okular BoF in Akademy when i plan to bring it up again
https://share.kde.org/s/DXtxMkLrPGwHgKA

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 421780] Most ways of scrolling a document not working (Qt 5.15)

2020-08-08 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=421780

Nate Graham  changed:

   What|Removed |Added

Summary|Most ways of navigating a   |Most ways of scrolling a
   |document not working (Qt|document not working (Qt
   |5.15)   |5.15)

-- 
You are receiving this mail because:
You are the assignee for the bug.