Summary: | dolphin crashes when starting when window state is being remembered and any tabs have invalid paths | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Nicolas L. <kde> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | akselmo, aoudelet, kfm-devel, nate |
Priority: | NOR | ||
Version: | 20.12.0 | ||
Target Milestone: | --- | ||
Platform: | Mageia RPMs | ||
OS: | Linux | ||
URL: | https://bugs.mageia.org/show_bug.cgi?id=28324 | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=427619 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas L.
2021-02-12 16:04:34 UTC
After many tries, we, at Mageia, conclude this is due to the Saved Session management. In facts, the "Live" user session and datas are carried over in the newly installed system on harddrive to the first user which will have a new Unix name based on user info and will have a user ID of 1000. As reported by our KDE maintainers at Mageia at Comment 0, launching Dolphin in Live env. is OK but not in newly installed system. It segfaults badly. But, trying to know why, I created a totally new user "test" with totally empty /home/test directory. And noow, Dolphin DOES NOT segfault. I conclued that: there are strange bits of datas written somewhere in Live environment that are carried over the newly system and present in the first user home directory. Investigating: The culprit is session management added to Dolphin in Dolphin 20.08 I think. This is the option in Dolphin's preferences: Startup => Show on startup "Folders, tabs, and window state from last time". This wants to open /home/live/ with several name "live" somewhere... and it crashed because it no longer exists although there is a symlink "Live" that points to /home/aurelien (where "aurelien" is the name of the first user created after installation on my test system). But, the GUI option is not user accessible as Dolphin crashes as soon as it launches. After many tries, there are several files to delete to workaround this on already installed systems: First: ~/.config/session/dolphin_dolphin_dolphin ~/.config/dolphinrc Remove everything in them. => No segfault after. My request also is to know which CLI command can we type to deactivate the option to restore the previous Dolphin's state. It's an option in Dolphin settings Window > Startup; you can disable it and see what text is added to ~/.config/dolphinrc, and then ship a dolphinrc file that includes that by default. However we should really just fix the bug. I think there's a chance it's already fixed in the upcoming 21.04 release because I added some logic to handle invalid paths on launch. Could you check? (In reply to Nate Graham from comment #2) > It's an option in Dolphin settings Window > Startup; you can disable it and > see what text is added to ~/.config/dolphinrc, and then ship a dolphinrc > file that includes that by default. For this, better is to trigger a file remove upon quit our installer. So, basically, users will have the functionality and no segfault. The option in the above file is: [General] RememberOpenedTabs=false But, on my file, there are other settings I don't know well the meaning. ;) > However we should really just fix the bug. I think there's a chance it's > already fixed in the upcoming 21.04 release because I added some logic to > handle invalid paths on launch. Could you check? Yeah, this should be done ASAP, but, for now we are in release and version freeze for Mageia 8. ASAP Cauldron reopen, I do think our maintainers will see this. (In reply to Aurélien Oudelet (auroud85_fr) from comment #3) > [General] > RememberOpenedTabs=false Yep, that's it. And hmm, the invalid paths on launch issue was supposed to be fixed in Bug 427619. I guess more is needed. Can't reproduce, likely fixed in later version of Dolphin. If the problem reappears, please install debug symbols to Dolphin, KIO and KIO-Extras and send a backtrace if it still crashes. Thank you! |