Bug 2176793

Summary: Frescobaldi crashes when pressing Ctrl+F to search for a string
Product: [Fedora] Fedora Reporter: Nils Philippsen <nphilipp>
Component: frescobaldiAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: fede, gwync, oget.fedora
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: frescobaldi-3.2-5.fc38 frescobaldi-3.2-5.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-14 00:17:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nils Philippsen 2023-03-09 10:38:57 UTC
Description of problem:

SSIA: Press Ctrl+F and Frescobaldi crashes

Version-Release number of selected component (if applicable):

frescobaldi-3.2-2.fc37.noarch

How reproducible:

Reproducible

Steps to Reproduce:
1. Start Frescobaldi
2. Press Ctrl+F

Actual results:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/frescobaldi_app/plugin.py", line 79, in instance
    return _instances[cls][obj]
           ~~~~~~~~~~^^^^^
  File "/usr/lib64/python3.11/weakref.py", line 415, in __getitem__
    return self.data[ref(key)]
           ~~~~~~~~~^^^^^^^^^^
KeyError: <weakref at 0x7fd851365580; to 'sip.wrappertype' at 0x562191a91c90 (Search)>

During handling of the above exception, another exception occurred:

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

Expected results:

A dialog pops up asking me what to search for.

Additional info:

This has been worked on upstream and fixed meanwhile. I'll roll an update with that fix.

Comment 1 Fedora Update System 2023-03-09 11:08:16 UTC
FEDORA-2023-905dec5e67 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-905dec5e67

Comment 2 Fedora Update System 2023-03-09 11:08:17 UTC
FEDORA-2023-7cf227dfe4 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7cf227dfe4

Comment 3 Fedora Update System 2023-03-10 01:48:12 UTC
FEDORA-2023-7cf227dfe4 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-7cf227dfe4

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

Comment 4 Fedora Update System 2023-03-10 02:06:38 UTC
FEDORA-2023-905dec5e67 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-2023-905dec5e67`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-905dec5e67

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

Comment 5 Fedora Update System 2023-03-14 00:17:23 UTC
FEDORA-2023-7cf227dfe4 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-03-18 04:58:31 UTC
FEDORA-2023-905dec5e67 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.