Bug 2016655 - Frescobaldi cannot be used in wayland.
Summary: Frescobaldi cannot be used in wayland.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: frescobaldi
Version: 35
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2020912 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-22 15:15 UTC by Lukas Ruzicka
Modified: 2022-01-12 01:23 UTC (History)
5 users (show)

Fixed In Version: frescobaldi-3.1.3-6.fc35 frescobaldi-3.1.3-7.fc35
Clone Of:
Environment:
Last Closed: 2022-01-12 01:23:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github frescobaldi frescobaldi issues 1398 0 None open Frescobaldi 3.13 crashes with python 3.10 2021-10-22 16:05:56 UTC

Description Lukas Ruzicka 2021-10-22 15:15:39 UTC
Description of problem:

On Fedora 35, Gnome Wayland session, Frescobaldi starts but does not respond to any mouse or keyboard events, so it cannot really be used. It can't even be closed using the  off icon and it must be killed with `killall frescobaldi`.

Version-Release number of selected component (if applicable):
gnome-shell-41.0-4.fc35.x86_64
frescobaldi-3.1.3-4.fc35.noarch

How reproducible:
Always

Steps to Reproduce:
1. Start frescobaldi and try to use it.

Actual results:
Frescobaldi is unusable.

Expected results:
Frescobaldi can be used without any issues.

Additional info:

When run from console, this is shown:

[lruzicka@vseved ~]$ frescobaldi 
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/qpageview/highlight.py", line 209, in paintEvent
    super().paintEvent(ev)  # first paint the contents
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/qpageview/shadow.py", line 43, in paintEvent
    rect = ev.rect().adjusted(-width, -width, width / 2, width / 2)
TypeError: adjusted(self, int, int, int, int): argument 1 has unexpected type 'float'
QWidget::repaint: Recursive repaint detected

Comment 1 Gwyn Ciesla 2021-10-22 16:05:57 UTC
This is a Python 3.10 error: https://github.com/frescobaldi/frescobaldi/issues/1398

Comment 2 Gwyn Ciesla 2021-10-22 16:52:59 UTC
Building with patches, submitted upstream.

Comment 3 Fedora Update System 2021-10-22 17:04:39 UTC
FEDORA-2021-4aee5a4d3c has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4aee5a4d3c

Comment 4 Fedora Update System 2021-10-23 02:23:49 UTC
FEDORA-2021-4aee5a4d3c has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4aee5a4d3c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4aee5a4d3c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Lukas Ruzicka 2021-10-25 08:24:58 UTC
The problem somehow persists -> at first, it seems that Frescobaldi works ok, but when I tried opening a file, it started to produce some error windows with the following content:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/qpageview/highlight.py", line 209, in paintEvent
    super().paintEvent(ev)  # first paint the contents
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/qpageview/shadow.py", line 46, in paintEvent
    self.drawDropShadow(page, painter, width)
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/qpageview/shadow.py", line 56, in drawDropShadow
    rect = page.rect().adjusted(width / 2, width / 2, 0, 0)
TypeError: adjusted(self, int, int, int, int): argument 1 has unexpected type 'float'

When I managed to close all of them (at least 20 or so) and I clicked into the editation field, the windows started to spawn up again and soon the application is unresponsive and cannot be even closed.

Comment 6 Lukas Ruzicka 2021-10-25 08:25:49 UTC
Anyway, thank you very much for such a quick response and for that build. I appreciate that.

Comment 7 Fedora Update System 2021-10-27 16:52:43 UTC
FEDORA-2021-1c7d686ebc has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1c7d686ebc

Comment 8 Fedora Update System 2021-10-27 19:00:40 UTC
FEDORA-2021-1c7d686ebc has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-1c7d686ebc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-1c7d686ebc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-11-04 01:46:23 UTC
FEDORA-2021-1c7d686ebc has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 bill_denver 2021-11-08 08:11:38 UTC
Installed Fresobaldi on 35, still has the same problem
freezes, cursor top left
can only kill via monitor.

Any fix in the pipeline? 
would like to remove the dependencies for a clean removal.

bill

Comment 11 Martin Tarenskeen 2022-01-05 12:49:09 UTC
Confirming Frescobaldi (3.1.3-6) still is unusable on Fedora 35. It starts, but freezes as soon as I try to do anything useful with it.
I downloaded frescobaldi 3.2 from Github and for now run it from source. This works fine without freezing. qpageview module is also required, which should be installed using pip.
I haven't tried Fedora 36 yet, bu wouldn't be surprised if Fedora's Frescobaldi still doesn't work ...

Ideally Fedora should provide frescobaldi-3.2 and a separate python3-qpageview package. Hope someone is working on it?

Comment 12 Gwyn Ciesla 2022-01-05 19:43:19 UTC
*** Bug 2020912 has been marked as a duplicate of this bug. ***

Comment 13 Gwyn Ciesla 2022-01-05 20:29:30 UTC
The way upstream packages their code makes it difficult to use an unreleased version. I've applied several patches from upstream that should fix this, for -7.

Comment 14 Fedora Update System 2022-01-05 20:29:51 UTC
FEDORA-2022-3cc3d2d29f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3cc3d2d29f

Comment 15 Fedora Update System 2022-01-06 01:53:57 UTC
FEDORA-2022-3cc3d2d29f has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-3cc3d2d29f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-3cc3d2d29f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2022-01-12 01:23:25 UTC
FEDORA-2022-3cc3d2d29f has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.