[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-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&action=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)

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

Bernhard Rosenkränzer  changed:

   What|Removed |Added

 Attachment #130671|0   |1
is obsolete||

--- Comment #11 from Bernhard Rosenkränzer  ---
Created attachment 133543
  --> https://bugs.kde.org/attachment.cgi?id=133543&action=edit
Updated patch

Updated patch for 20.11.80.
Still probably not the best fix since it reverts the QScroller changes, but at
least it makes scrolling 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)

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 426502] Okular occasionally crashes when opening PDF files

2020-10-16 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=426502

--- Comment #5 from Bernhard Rosenkränzer  ---
Probably distro bug - we're reverting the QScroller use to work around bug
421780
Probably I missed something when rebasing the patch

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

[okular] [Bug 426502] New: Okular occasionally crashes when opening PDF files

2020-09-13 Thread Bernhard Rosenkränzer
https://bugs.kde.org/show_bug.cgi?id=426502

Bug ID: 426502
   Summary: Okular occasionally crashes when opening PDF files
   Product: okular
   Version: 1.11.1
  Platform: Mandriva RPMs
OS: Linux
Status: REPORTED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: b...@lindev.ch
  Target Milestone: ---

Application: okular (1.11.1)

Qt Version: 5.15.1
Frameworks Version: 5.74.0
Operating System: Linux 5.8.6-desktop-4omv4002 x86_64
Windowing system: X11
Distribution: "OpenMandriva Lx 4.2"

-- Information about the crash:
- What I was doing when the application crashed:

Clicked on a link to a PDF file in Falkon with Okular set as default PDF
handler. Tried 3 times, Okular crashed 2 out of 3 times, succeeded once. Opened
Okular manually and opened the file with File/Open, tried 3 times, got 2
successful opens and 1 crash.

This might be related to bug 425188 (similar but not 100% same symptom), but
might also be a separate issue (rather different backtrace, but it might be the
same underlying issue causing different crashes on rather different
systems/versions).

Okular from release service 20.08.1, Plasma 5.19.5, Frameworks 5.74.0 with KIO
5.74.1, Qt 5.15.1

The crash can be reproduced sometimes.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  0x7fc2e71cbe23 in QTimer::stop() () from /usr/lib64/libQt5Core.so.5
#5  0x7fc2cc4646d8 in PageView::slotRelayoutPages() () from
/usr/lib64/qt5/plugins/okularpart.so
#6  0x7fc2cc3c5d20 in PageView::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) () from /usr/lib64/qt5/plugins/okularpart.so
#7  0x7fc2e71b455e in QMetaCallEvent::placeMetaCall(QObject*) () from
/usr/lib64/libQt5Core.so.5
#8  0x7fc2e71b6212 in QObject::event(QEvent*) () from
/usr/lib64/libQt5Core.so.5
#9  0x7fc2e7ce391e in QWidget::event(QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#10 0x7fc2e7d97795 in QAbstractScrollArea::event(QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#11 0x7fc2cc476e0d in PageView::event(QEvent*) () from
/usr/lib64/qt5/plugins/okularpart.so
#12 0x7fc2e7ca1bde in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib64/libQt5Widgets.so.5
#13 0x7fc2e7ca3489 in QApplication::notify(QObject*, QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#14 0x7fc2e7180d3c in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#15 0x7fc2e718259e in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#16 0x7fc2e71f0ee2 in postEventSourceDispatch(_GSource*, int (*)(void*),
void*) () from /usr/lib64/libQt5Core.so.5
#17 0x7fc2e5511173 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#18 0x7fc2e5511c13 in g_main_context_iterate () from
/usr/lib64/libglib-2.0.so.0
#19 0x7fc2e5511f0d in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#20 0x7fc2e71f0270 in
QEventDispatcherGlib::processEvents(QFlags) ()
from /usr/lib64/libQt5Core.so.5
#21 0x7fc2cf2f3ca6 in
QXcbGlibEventDispatcher::processEvents(QFlags)
() from /usr/lib64/libQt5XcbQpa.so.5
#22 0x7fc2e717c096 in
QEventLoop::exec(QFlags) () from
/usr/lib64/libQt5Core.so.5
#23 0x7fc2e71814c1 in QCoreApplication::exec() () from
/usr/lib64/libQt5Core.so.5
#24 0x7fc2e7543716 in QGuiApplication::exec() () from
/usr/lib64/libQt5Gui.so.5
#25 0x7fc2e7ca3113 in QApplication::exec() () from
/usr/lib64/libQt5Widgets.so.5
#26 0x002133fa in main ()
[Inferior 1 (process 477242) detached]

The reporter indicates this bug may be a duplicate of or related to bug 425188.

Possible duplicates by query: bug 426297, bug 416280, bug 379809, bug 378696,
bug 378135.

Reported using DrKonqi

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

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

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

--- Comment #7 from Bernhard Rosenkränzer  ---
Created attachment 130671
  --> https://bugs.kde.org/attachment.cgi?id=130671&action=edit
Partial revert that fixes it

The attached patch, a partial revert of the problematic commit, "fixes" the
issue (but of course destroys the advantages of using QScroller).

I'll keep this in our package until the real problem is sorted out, it's not
perfect but better than nothing, at least it restores what was working in
19.12.x

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

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

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

--- Comment #6 from Bernhard Rosenkränzer  ---
The problem seems to be

d->scroller->scrollTo(d->scroller->finalPosition() + QPoint(0, 100 * nSteps),
0);

in slotScrollDown() in ui/pageview.cpp not having any effect (even though
nSteps == 1) when it is called by the keyboard event and wheel event handlers.

I've never used QScroller, so I'm not familiar with its internals -- but at a
first glance, looks like a Qt bug and makes me wonder why others aren't seeing
this (we're using stock qt 5.15).

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

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

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

Bernhard Rosenkränzer  changed:

   What|Removed |Added

Version|1.10.1  |1.10.80

--- Comment #4 from Bernhard Rosenkränzer  ---
Finally got around to bisecting this.

The culprit is

commit 51b90ecd73e37b9646d8a4bbb51e4fa815942912
Author: kezi olio 
Date:   Fri Nov 15 16:08:25 2019 +

Add kinetic scrolling & smooth navigation with cursor keys

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

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

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

Bug ID: 421780
   Summary: Most ways of navigating a document not working (Qt
5.15)
   Product: okular
   Version: 1.10.1
  Platform: OpenMandriva RPMs
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: b...@lindev.ch
  Target Milestone: ---

SUMMARY
Navigating a PDF document (probably any other content too) doesn't work
properly in okular 1.10.1 with Qt 5.15-rc2, Frameworks 5.70, Plasma 5.18.90.
The right-hand scrollbar works. As does grabbing the PDF with the mouse and
moving it up and down.
But all other ways to move around in the PDF seem to be ignored: mousewheel on
the pdf, arrow keys, trying to move the focus in the thumbnails panel,
PageUp/PageDown keys, ...

There are no error messages in the konsole session from which okular was
started.

Chances are for some reason okular isn't getting the relevant events when Qt
5.15-rc2 is used.


STEPS TO REPRODUCE
1. Update to Qt 5.15-rc2
2. Run okular
3. Try to navigate the document

OBSERVED RESULT
Mousewheel on the pdf, arrow keys, trying to move the focus in the thumbnails
panel, PageUp/PageDown keys, ... do nothing

EXPECTED RESULT
Mousewheel on the pdf, arrow keys, trying to move the focus in the thumbnails
panel, PageUp/PageDown keys, ... work as they always did


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kernel 5.7-rc5, glibc 2.31, clang 10.0.1
KDE Plasma Version: 5.18.90
KDE Frameworks Version: 5.70 (with components that have had a 5.70.1 release
updated to 5.70.1)
Qt Version: 5.15-rc2

ADDITIONAL INFORMATION
Chances are for some reason okular isn't getting the relevant events when Qt
5.15-rc2 is used - other applications are not showing similar issues, so
chances are it is a changed behavior that needs to be worked around in okular
rather than a Qt 5.15 bug.

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