Konsole silently crashing. Recover last running commands from tabs?

I usually have Konsole open with a few scripts running, however at times I click on my icon only to find a new Konsole session has opened and there was nothing to inform me that it had crashed. Journal entries indicate Kcrash tries to start Dr. Konqui but fails, then performs a core dump.

The .bash_history file doesn’t help much, as I can never really tell which tabs it actually keeps history of. Opening each tab and using the up arrow to retrieve the “last entered data” also doesn’t seem to work all the time, as it may give me data from quite a while ago that wasn’t even the tab index I was in.

Are there any suggestions anyone has (aside from the obvious “fix the crash issue in the first place”)?

Probably good to share such a log, fixing/understanding that is think that is the easiest way to diagnose this problem

Presumably the Out Of Memory Killer terminated some processes. Watch for output of journalctl -q -g oom.

Ah true. I wrote the output of journalctl --since="2 days ago" to a file and I’ll try to parse the relevant information soon.

I don’t quite know how to multi-quote here on the forums so I will reply individually.

While the OOM didn’t directly kill the Konsole, it did appear later:

Feb 24 19:18:55 suse systemd[2136]: plasma-plasmashell.service: A process of this unit has been killed by the OOM killer.
Feb 24 19:18:56 suse systemd[2136]: plasma-plasmashell.service: Failed with result 'oom-kill'.
Feb 24 19:26:58 suse systemd[2136]: session.slice: A process of this unit has been killed by the OOM killer.

I actually did a little homework and got both earlyoom and nohang-desktop as services running now to hopefully ease the strain on my 32 gigs? I’m planning to clean the contacts of my RAM tomorrow as a sort of desperate measure to not to have to buy more/new RAM. I ran into a similar situation last year where my RAM was having issues and failing memtests. Eventually, after reseating the RAM sticks, I couldn’t get it to fail again, even after I had already bought new memory to replace it, sending it back to regain the $250 it cost me (the same RAM upgrade is $179 now)

If you run out of memory with 32G you have likely an application that is leaking memory. I did write once a python script and while that looked innocent it did also trigger OOM with 32G.

To get a better idea what is going on I did run the KDE System Monitor and the History “tab” shows a nice graph of the memory used over time. If that is (slowly) ever increasing you have an application with a memory leak. The Application “tab” then all programs, sort on Memory and you know with program is to blame.

Looks like from the most recent crash, changing my monitor setup, or rather disabling a second monitor, is causing the issue somehow:

Feb 26 17:44:06 suse systemd[2036]: app-org.kde.gwenview-d0ce06b2ca264c969f5072391fcf9fec.scope: Consumed 1.238s CPU time.
Feb 26 17:44:49 suse systemd[2036]: app-libreoffice\x2dcalc-cf8710f9cf404709ad649f565b48a076.scope: Consumed 39.495s CPU time.
Feb 26 17:44:54 suse plasmashell[2838]: 2023-02-26 17:44:54,115: libstrangle is not available on this system, FPS limiter disabled
Feb 26 17:44:54 suse plasmashell[2838]: 2023-02-26 17:44:54,221: Selected display DP-2 not found
Feb 26 17:44:54 suse plasmashell[2838]: Discord ID: None
Feb 26 17:44:54 suse plasmashell[2838]: 2023-02-26 17:44:54,232: Discord RPC Disabled or Discord APP ID Not Present
Feb 26 17:44:54 suse plasmashell[2838]: lutris-wrapper: Overwatch 2
Feb 26 17:44:54 suse plasmashell[2838]: Started initial process 10041 from mangohud /home/rob/.local/share/lutris/runners/wine/lutris-GE-Proton7-34-x86_64/bin/wine /home/rob/Games/overwatch-2/drive_c/Program Files (x86)/Battle.net/Battle.net.exe --exec=launch Pro
Feb 26 17:44:54 suse plasmashell[2838]: Start monitoring process.
Feb 26 17:44:54 suse plasmashell[2838]: fsync: up and running.
Feb 26 17:44:54 suse plasmashell[2838]: wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
Feb 26 17:44:58 suse plasmashell[2838]: [0226/174458.561:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
Feb 26 17:44:58 suse kded5[2194]: Registering ":1.939/StatusNotifierItem" to system tray
Feb 26 17:44:58 suse xembedsniproxy[2282]: Container window visible, stack below
Feb 26 17:44:58 suse plasmashell[2838]: [2023-02-26 17:44:58.725] [MANGOHUD] [info] [blacklist.cpp:49] process 'Battle.net.exe' is blacklisted in MangoHud
Feb 26 17:44:59 suse plasmashell[2838]: [2023-02-26 17:44:59.111] [MANGOHUD] [info] [blacklist.cpp:49] process 'Battle.net.exe' is blacklisted in MangoHud
Feb 26 17:44:59 suse plasmashell[2838]: [0226/174459.122:ERROR:dxva_video_decode_accelerator_win.cc(1405)] DXVAVDA fatal error: could not LoadLibrary: msvproc.dll: Module not found. (0x7E)
Feb 26 17:44:59 suse plasmashell[2838]: [2023-02-26 17:44:59.226] [MANGOHUD] [info] [blacklist.cpp:49] process 'Battle.net.exe' is blacklisted in MangoHud
Feb 26 17:45:01 suse plasmashell[2838]: [0226/174501.611:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
Feb 26 17:45:03 suse baloo_file[2150]: 3474232211471926022 "/home/rob/Games/overwatch-2/drive_c/users/rob/AppData/Local/Battle.net/BrowserCache/Local Storage/leveldb/LOG.old" renaming "LOG" to "LOG.old"
Feb 26 17:45:04 suse baloo_file[2150]: 43088950159540998 "/home/rob/Games/overwatch-2/drive_c/users/rob/AppData/Local/Battle.net/BrowserCache/LOG.old" renaming "LOG" to "LOG.old"
Feb 26 17:45:11 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 17:45:12 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 17:45:13 suse systemd[2036]: Started NVIDIA X Server Settings - Configure NVIDIA X Server Settings.
Feb 26 17:45:13 suse nvidia-settings[10688]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Feb 26 17:45:13 suse nvidia-settings[10688]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Feb 26 17:45:21 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 17:45:22 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 17:45:22 suse systemd[2036]: Started NVIDIA X Server Settings - Configure NVIDIA X Server Settings.
Feb 26 17:45:22 suse nvidia-settings[10792]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Feb 26 17:45:23 suse nvidia-settings[10792]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Feb 26 17:45:23 suse baloo_file[2150]: 43088954454508294 "/home/rob/Games/overwatch-2/drive_c/users/rob/AppData/Local/Battle.net/BrowserCache/Session Storage/LOG.old" renaming "LOG" to "LOG.old"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_CrtcChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  440
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  464
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Geometry:  0 0 1920 1080
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_CrtcChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  441
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Geometry:  0 0 0 0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_OutputChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Output:  445
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Connection:  "Connected"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Subpixel Order:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRScreenChangeNotify
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Config_timestamp:  19409
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Window: 25165829
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Root: 480
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Size ID: 0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Size:  1920 1080
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         SizeMM:  530 301
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_CrtcChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  440
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  464
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Geometry:  0 0 1920 1080
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_CrtcChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  441
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Geometry:  0 0 0 0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper: RRNotify_OutputChange
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Timestamp:  23149
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Output:  445
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         CRTC:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Mode:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Connection:  "Connected"
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xcb.helper:         Subpixel Order:  0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: XRandROutput 445 update 
                                                              m_connected: 0 
                                                              m_crtc XRandRCrtc(0x56430aa0b580) 
                                                              CRTC: 0 
                                                              MODE: 0 
                                                              Connection: 0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: Disconnected output 445 from CRTC 441
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: Output 445 : connected = true , enabled = false
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: XRandROutput 445 update 
                                                              m_connected: 0 
                                                              m_crtc QObject(0x0) 
                                                              CRTC: 0 
                                                              MODE: 0 
                                                              Connection: 0
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: Output 445 : connected = true , enabled = false
Feb 26 17:45:35 suse plasmashell[2227]: file:///usr/share/plasma/wallpapers/org.kde.color/contents/ui/main.qml:12: TypeError: Cannot read property 'configuration' of null
Feb 26 17:45:35 suse kscreen_backend_launcher[2349]: kscreen.xrandr: Emitting configChanged()
Feb 26 17:45:37 suse plasmashell[3325]: 21 -- exe=/usr/bin/konsole
Feb 26 17:45:37 suse plasmashell[3325]: 13 -- platform=xcb
Feb 26 17:45:37 suse plasmashell[3325]: 11 -- display=:0
Feb 26 17:45:37 suse plasmashell[3325]: 16 -- appname=konsole
Feb 26 17:45:37 suse plasmashell[3325]: 17 -- apppath=/usr/bin
Feb 26 17:45:37 suse plasmashell[3325]: 10 -- signal=11
Feb 26 17:45:37 suse plasmashell[3325]: 9 -- pid=3325
Feb 26 17:45:37 suse plasmashell[3325]: 19 -- appversion=22.12.2
Feb 26 17:45:37 suse plasmashell[3325]: 20 -- programname=Konsole
Feb 26 17:45:37 suse plasmashell[3325]: 31 -- bugaddress=submit@bugs.kde.org
Feb 26 17:45:37 suse plasmashell[3325]: KCrash: Application 'konsole' crashing...
Feb 26 17:45:37 suse plasmashell[3325]: KCrash: Attempting to start /usr/libexec/drkonqi
Feb 26 17:45:37 suse plasmashell[10836]: Authorization required, but no authorization protocol specified
Feb 26 17:45:37 suse plasmashell[10836]: Authorization required, but no authorization protocol specified
Feb 26 17:45:37 suse drkonqi[10836]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Feb 26 17:45:37 suse drkonqi[10836]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                     
                                     Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Feb 26 17:45:38 suse plasmashell[3325]: Unable to start Dr. Konqi
Feb 26 17:45:38 suse plasmashell[3325]: Re-raising signal for core dump handling.
Feb 26 17:45:46 suse plasmashell[2838]: [2023-02-26 17:45:46.527] [MANGOHUD] [info] [overlay.cpp:768] Uploading is disabled (permit_upload = 0)
Feb 26 17:45:46 suse plasmashell[2838]: [2023-02-26 17:45:46.654] [MANGOHUD] [info] [overlay.cpp:768] Uploading is disabled (permit_upload = 0)
Feb 26 17:45:56 suse kded5[2194]: Service  ":1.939" unregistered
Feb 26 17:46:00 suse plasmashell[2838]: Initial process has exited (return code: 256)
Feb 26 17:46:00 suse kwin_x11[2196]: kwin_core: XCB error: 152 (BadDamage), sequence: 48207, resource id: 11059186, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Feb 26 17:46:02 suse systemd-coredump[10845]: Process 3325 (konsole) of user 1000 dumped core.
                                              
                                              Stack trace of thread 3325:
                                              #0  0x00007fbd94c9547c __pthread_kill_implementation (libc.so.6 + 0x9047c)
                                              #1  0x00007fbd94c42e16 raise (libc.so.6 + 0x3de16)
                                              #2  0x00007fbd9671ed2a _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x7d2a)
                                              #3  0x00007fbd94c42ee0 __restore_rt (libc.so.6 + 0x3dee0)
                                              #4  0x00007fbd969ae2f5 _ZNK7Konsole15TerminalDisplay7bidiMapEPNS_9CharacterER7QStringPiS5_PtS5_Rbbb (libkonsoleprivate.so.1 + 0xec2f5)
                                              #5  0x00007fbd969b852e n/a (libkonsoleprivate.so.1 + 0xf652e)
                                              #6  0x0000081300000812 n/a (n/a + 0x0)
                                              ELF object binary architecture: AMD x86-64
Feb 26 17:46:03 suse systemd[2036]: app-org.kde.konsole-f6c50480ad074d41b6dc4f1f49075793.scope: Consumed 10min 13.849s CPU time.
Feb 26 17:48:36 suse kded5[2194]: Registering ":1.944/StatusNotifierItem" to system tray
Feb 26 17:48:36 suse kded5[2194]: Service  ":1.944" unregistered
Feb 26 17:48:36 suse kded5[2194]: Registering ":1.945/StatusNotifierItem" to system tray
Feb 26 17:54:04 suse plasmashell[2838]: wine: Unhandled stack overflow at address 000000007B0800AB (thread 0108), starting debugger...
Feb 26 17:59:57 suse discord[2385]: 2023-02-27T01:59:57.556Z [Modules] Checking for host updates.
Feb 26 17:59:57 suse discord[2385]: 2023-02-27T01:59:57.733Z [Modules] Host is up to date.
Feb 26 17:59:57 suse discord[2385]: 2023-02-27T01:59:57.733Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
Feb 26 17:59:57 suse discord[2385]: 2023-02-27T01:59:57.764Z [Modules] No module updates available.
Feb 26 18:04:35 suse kded5[2194]: Service  ":1.945" unregistered
Feb 26 18:05:13 suse kded5[2194]: Registering ":1.949/StatusNotifierItem" to system tray
Feb 26 18:05:13 suse kded5[2194]: Service  ":1.949" unregistered
Feb 26 18:05:13 suse kded5[2194]: Registering ":1.950/StatusNotifierItem" to system tray
Feb 26 18:13:16 suse kded5[2194]: Service  ":1.950" unregistered
Feb 26 18:13:30 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 18:13:30 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 18:13:31 suse baloorunner[2833]: QFSFileEngine::open: No file name specified
Feb 26 18:13:32 suse systemd[2036]: Started LibreOffice Calc - Spreadsheet.
Feb 26 18:13:33 suse kwin_x11[2196]: kwin_core: XCB error: 152 (BadDamage), sequence: 57319, resource id: 10628017, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Feb 26 18:13:38 suse kded5[2194]: Registering ":1.954/StatusNotifierItem" to system tray
Feb 26 18:13:38 suse kded5[2194]: Service  ":1.954" unregistered
Feb 26 18:13:38 suse kded5[2194]: Registering ":1.955/StatusNotifierItem" to system tray
Feb 26 18:26:12 suse plasmashell[2227]: libkcups: Renew-Subscription last error: 0 successful-ok
Feb 26 18:31:40 suse kded5[2194]: Service  ":1.955" unregistered
Feb 26 18:31:51 suse plasmashell[2838]: Monitored process exited.
Feb 26 18:31:51 suse plasmashell[2838]: Exit with return code 256
Feb 26 18:31:52 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 18:31:52 suse plasmashell[2838]: 2023-02-26 18:31:52,762: Game still running (state: running)
Feb 26 18:31:52 suse plasmashell[2838]: 2023-02-26 18:31:52,762: Stopping Overwatch 2 (wine)
Feb 26 18:31:54 suse plasmashell[2227]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Feb 26 18:31:54 suse nvidia-settings[18207]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

Interesting, now Dolphin has crashed when turning off the 2nd monitor (via Nvidia control panel). I am installing debug symbols and sending a report (if that does anything).

Report link: 466503 – Dolphin crashes when 2nd monitor is disabled from Nvidia control panel

Bumping an old topic to say that I am now on an AMD graphics card, and this just happened to me again…