Summary: | Kdevelop crashes when opening a document ([re]storing split views) | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jonathan Verner <jonathan.verner> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | Keywords: | drkonqi |
Priority: | NOR | ||
Version First Reported In: | git master | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/commit/50eaff66056898d039047f54290b3e5d8f09594f | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Jonathan Verner
2021-08-16 19:41:30 UTC
Created attachment 140779 [details]
New crash information added by DrKonqi
DrKonqi auto-attaching complete backtrace.
I think the code is fine. Note how that area is trying to find the parentSplitter as a parent of the widget. So if we don't have a widget, we don't have a parent and thus cannot find the splitter. Can you please submit this patch? A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/247 A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/247 (In reply to Milian Wolff from comment #2) > I think the code is fine. Note how that area is trying to find the > parentSplitter as a parent of the widget. So if we don't have a widget, we > don't have a parent and thus cannot find the splitter. > > Can you please submit this patch? Milian, thanks for the quick reaction. I've created a merge request on invent.kde.org: https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/247 Git commit 50eaff66056898d039047f54290b3e5d8f09594f by Jonathan L. Verner. Committed on 17/08/2021 at 11:58. Pushed by mwolff into branch 'master'. Fix crash when storing working sets area split-view config When storing working sets commit 89594aed introduced a crash, which happens when the code tries to find the parent splitter while the view doesn't have an initialized widget. In this case calling `view->widget()` method tries to create a new widget, but fails with an assert in `EditorViewWatcher::viewCreated` because no parent for the widget is given. M +1 -1 kdevplatform/shell/workingsets/workingset.cpp https://invent.kde.org/kdevelop/kdevelop/commit/50eaff66056898d039047f54290b3e5d8f09594f |