Bug 478199

Summary: System Settings segfaults when I change network connection settings, quit without applying the settings first, and finally select "Apply" on the pop-up dialog
Product: [Applications] systemsettings Reporter: hch12907 <haochengho12907>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: bednarczyk.pawel, jgrulich
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: GDB backtrace for the segfault

Description hch12907 2023-12-07 09:49:27 UTC
Created attachment 163971 [details]
GDB backtrace for the segfault

SUMMARY
System Settings crashes when I change network connection settings and quit without applying the settings first. Since I did not apply the settings, on quitting a dialog will pop up confirming whether to apply them. Selecting "Apply" will cause System Settings to crash. 

The settings are saved so nothing is actually lost, the crash notification is annoying though.

STEPS TO REPRODUCE
1. Go to Wi-Fi & Networking, make a modification to any connection
2. *Do not* apply the settings.
3. Quit system settings.
4. Now, a dialog pops up asking whether to apply the changes.
5. Select the "Apply" option and witness a notification saying "System Settings Closed Unexpectedly"

OBSERVED RESULT
System Settings crashes.

EXPECTED RESULT
System Settings exits cleanly.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Pawel 2023-12-07 12:23:25 UTC
can reproduce always.
Comment 2 hch12907 2024-01-28 08:27:40 UTC
No longer reproducible on latest KDE 6.0.