Bug 2121727

Summary: [abrt] frescobaldi: event(): view.py:107:event:TypeError: a member of enum 'StandardKey' is expected not 'QEvent'
Product: [Fedora] Fedora Reporter: Lukas Ruzicka <lruzicka>
Component: frescobaldiAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: fede, gwync, oget.fedora, vindicators
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f7ad5a6a46938432c1f034592397fa5e0701173e
Whiteboard: abrt_hash:e69bde272523ee26fdb6eb56786422dcf200714b;VARIANT_ID=workstation;
Fixed In Version: frescobaldi-3.2-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-10 22:24:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Lukas Ruzicka 2022-08-26 12:25:46 UTC
Description of problem:
I clicked on the Frescobaldi icon to start the application, but it did not start and crashed immediately.


Version-Release number of selected component:
frescobaldi-3.1.3-11.fc37

Additional info:
reporter:       libreport-2.17.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.frescobaldi.Frescobaldi-16535.scope
cmdline:        /usr/bin/python3 /usr/bin/frescobaldi
crash_function: event
exception_type: TypeError
executable:     /usr/bin/frescobaldi
interpreter:    python3-3.11.0~rc1-2.fc37.x86_64
kernel:         5.19.3-300.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
view.py:107:event:TypeError: a member of enum 'StandardKey' is expected not 'QEvent'

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/frescobaldi_app/view.py", line 107, in event
    if ev.type() == QEvent.KeyPress:
       ^^^^^^^
TypeError: a member of enum 'StandardKey' is expected not 'QEvent'

Local variables in innermost frame:
self: <view.View object at 0x7fb995260e50>
ev: <PyQt5.QtCore.QEvent object at 0x7fb995260ee0>
__class__: <class 'view.View'>

Comment 1 Lukas Ruzicka 2022-08-26 12:25:50 UTC
Created attachment 1907853 [details]
File: backtrace

Comment 2 Lukas Ruzicka 2022-08-26 12:25:51 UTC
Created attachment 1907854 [details]
File: cpuinfo

Comment 3 Lukas Ruzicka 2022-08-26 12:25:53 UTC
Created attachment 1907855 [details]
File: environ

Comment 4 Lukas Ruzicka 2022-08-26 12:25:54 UTC
Created attachment 1907856 [details]
File: mountinfo

Comment 5 Lukas Ruzicka 2022-08-26 12:25:55 UTC
Created attachment 1907857 [details]
File: namespaces

Comment 6 Lukas Ruzicka 2022-08-26 12:25:57 UTC
Created attachment 1907858 [details]
File: open_fds

Comment 7 Lukas Ruzicka 2022-08-26 12:27:55 UTC
When started from console:

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.11/site-packages/frescobaldi_app/view.py", line 107, in event
    if ev.type() == QEvent.KeyPress:
       ^^^^^^^
TypeError: a member of enum 'StandardKey' is expected not 'QEvent'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/frescobaldi_app/view.py", line 107, in event
    if ev.type() == QEvent.KeyPress:
       ^^^^^^^
TypeError: a member of enum 'StandardKey' is expected not 'QEvent'
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])

Comment 8 Lukas Ruzicka 2022-10-19 07:39:40 UTC
Similar problem has been detected:

I wanted to start Frescobaldi but it seems not to be working.

reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-09ef6395-dc93-440d-8748-14d530b3f045.scope
cmdline:        /usr/bin/python3 /usr/bin/frescobaldi
crash_function: event
exception_type: TypeError
executable:     /usr/bin/frescobaldi
interpreter:    python3-3.11.0~rc2-1.fc37.x86_64
kernel:         5.19.14-300.fc37.x86_64
package:        frescobaldi-3.2-1.fc37
reason:         view.py:107:event:TypeError: a member of enum 'StandardKey' is expected not 'QEvent'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Fedora Update System 2022-10-24 17:20:47 UTC
FEDORA-2022-6edce20723 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6edce20723

Comment 10 Fedora Update System 2022-10-25 11:34:33 UTC
FEDORA-2022-6edce20723 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-6edce20723`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-6edce20723

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

Comment 11 Fedora Update System 2022-11-10 22:24:15 UTC
FEDORA-2022-6edce20723 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.