| Summary: | kig crash on SVG export | ||
|---|---|---|---|
| Product: | [Applications] kig | Reporter: | Alex <allo> |
| Component: | general | Assignee: | David E. Narvaez <david.narvaez> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | axel, fabian, maurizio.paolini |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 20.07.80 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/education/kig/commit/8ea5219728cc6e727329a514f69ca69bca9f47db | Version Fixed/Implemented In: | 20.12.1 |
| Sentry Crash Report: | |||
|
Description
Alex
2020-06-09 11:22:06 UTC
Known working version: kig from 17.08.3 (debian stable packages) Reproduced on master. Looking at the code, it looks like the old version tried to embed the SVG options into the file dialog. I remember we re-introduced a configurable dialog for e.g. JPEG options in recent versions, and the correct fix would be to port to this new file dialog functions. A quick workaround is the remove the "delete opts;" line in the SVG exporter. Crashes also when exporting to LaTeX, Image, and Asymptote because of the same reason. The options widget is also deleted via "delete optdlg;" in kigfiledialog.cc *** Bug 422952 has been marked as a duplicate of this bug. *** Can confirm for version kig-20.08.1-1.fc33.x86_64 on a Fedora 33 installation can confirm with the latest git source: $ kig --version kig 21.03.70 when exporting to SVG kig dumps core with a segmentation fault: kf.kio.core: "Could not enter folder tags:/." Segmentation fault (core dumped) Now... this is a *nasty* bug. It could easily cause loss of work to the user. I tested the workaround proposed by Christof Feck and it works. So, shouldn't we go for it? Git commit 8ea5219728cc6e727329a514f69ca69bca9f47db by David E. Narvaez. Committed on 07/12/2020 at 13:01. Pushed by narvaez into branch 'release/20.12'. Prevent Deletion of Option Dialog These are used (and deleted) later by the callers. This is a temporary fix so that it will go into the 20.12 release. A proper fix as outlined in Comment 3 of the bug report should go to master. FIXED-IN: 20.12.1 M +0 -1 misc/kigfiledialog.cc https://invent.kde.org/education/kig/commit/8ea5219728cc6e727329a514f69ca69bca9f47db Could a fix (at least the temporary fix mentioned in comment #3) please be ported back to versions in which the error occurs? This is at least the case down to 20.04. This version is still used in current versions of released distros (e.g. openSuSE 15.3) and an update to 21 or above requires updating Qt libraries or even more which causes a lot of effort. Is there an easy alternative that I don't see? Should I ask the distributor for an update to 20.12? Thank you very much. (In reply to Axel Schwank from comment #9) > Could a fix (at least the temporary fix mentioned in comment #3) please be > ported back to versions in which the error occurs? Backports for older versions of Gear are handled by the distributions, not upstream. |