Bug 2209374

Summary: kig crashes during startup
Product: [Fedora] Fedora Reporter: Anton Guda <atu.guda>
Component: kigAssignee: Kevin Kofler <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jreznik, kde-sig, kevin, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kig-23.04.1-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-03 02:43:10 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
stacktrace during crash none

Description Anton Guda 2023-05-23 16:43:07 UTC
kig revives SIGSEGV during startup. 

Reproducible: Always

Steps to Reproduce:
1. start kig (if fone from console, more output available)


Actual Results:  
Crashed via SIGSEGV

Expected Results:  
Just work

Comment 1 Anton Guda 2023-05-23 16:44:29 UTC
Created attachment 1966446 [details]
stacktrace during crash

Comment 2 Kevin Kofler 2023-05-23 19:14:04 UTC
Looks like it is trying to display this error message:
https://invent.kde.org/education/kig/-/blob/f80b6d91f6f9c00f35ac9fef648209a9b87077f9/kig/kig.cpp#L63
KMessageBox::error(this, i18n("Could not find the necessary Kig library, check your installation."));

So it is missing the KigPart. That also causes it to crash while attempting to display the error message, because displaying a dialog processes pending events and there is a pending event that wants to save settings including the KigPart ones.

Comment 3 Kevin Kofler 2023-05-23 19:20:29 UTC
Looks like we need this backported:
https://invent.kde.org/education/kig/-/commit/bca478c18b1a64f96c63cbe87111c79155bf7eb5

<SARCASM>Don't you love it when somebody upstream with global write privileges commits untested changes that completely break an application and takes 3 months to notice and fix it?</SARCASM>

Comment 4 Kevin Kofler 2023-05-23 19:21:20 UTC
(Heck, it was not even fixed by the person who broke it.)

Comment 5 Kevin Kofler 2023-05-23 22:09:34 UTC
Fixed in Rawhide in kig-23.04.1-2.fc39. Since the buggy Kig was also backported to Fedora 38, I am building a Fedora 38 update as well.

Comment 6 Fedora Update System 2023-05-23 22:24:08 UTC
FEDORA-2023-24685c1593 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-24685c1593

Comment 7 Anton Guda 2023-05-24 07:42:48 UTC
All fine in kig-23.04.1-2.fc39. Propose to close.

Comment 8 Kevin Kofler 2023-05-24 08:13:53 UTC
The issue will be automatically closed when kig-23.04.1-2.fc38 reaches stable. Thanks for the report.

Comment 9 Fedora Update System 2023-05-24 14:19:36 UTC
FEDORA-2023-24685c1593 has been pushed to the Fedora 38 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-24685c1593`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-24685c1593

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

Comment 10 Fedora Update System 2023-06-03 02:43:10 UTC
FEDORA-2023-24685c1593 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.