Automatically restarts on idle

I have a weired behaviour since today.

I was running the computer watching a movie and at some point I saw it going into logout screen and restarting after the 30s countdown was like on 27s.

This happend like twice each time like after around one hour.

What could be the reason. Is there any log we can check?

I run journalctl -b -p err|less to get this report:

– Journal begins at Sun 2020-08-23 10:29:54 CEST, ends at Sat 2021-01-23 23:58:53 CET. –
Jan 23 23:52:15 sandro-pc kernel:
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=000000009673cce3 [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=00000000c6388864
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=000000006c3c8a52 [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=0000000021888ca2
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=000000007a333dbe [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=0000000016497826
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=00000000b9f64cf2 [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=00000000c6650de4
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=0000000053d2010f [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=0000000033647dd3
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=000000007a333dbe [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=00000000b1be2cd5
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: Duplicate cookie detected
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie c=0000000080848c83 [p=00000000497182ea fl=222 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-cookie d=000000005716af1d n=00000000c24a7bb0
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: O-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie c=00000000b9f64cf2 [p=00000000497182ea fl=2 nc=0 na=1]
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-cookie d=000000005716af1d n=00000000d82957b9
Jan 23 23:52:20 sandro-pc kernel: FS-Cache: N-key=[8] ‘020001bdc0a8b219’
Jan 23 23:52:38 sandro-pc systemd-coredump[1315]: Process 1162 (baloo_file) of user 1000 dumped core.
Stack trace of thread 1271:
#0 0x00007fe68fb31396 n/a (liblmdb.so + 0x4396)
#1 0x00007fe68fb33efe n/a (liblmdb.so + 0x6efe)
#2 0x00007fe68fb34644 n/a (liblmdb.so + 0x7644)
#3 0x00007fe68fb34c50 mdb_get (liblmdb.so + 0x7c50)
#4 0x00007fe69100b2a5 _ZN5Baloo12IdFilenameDB3getEy (libKF5BalooEngine.so.5 + 0x152a5)
#5 0x00007fe6910052fc _ZNK5Baloo13DocumentUrlDB3getEy (libKF5BalooEngine.so.5 + 0xf2fc)
#6 0x00007fe691016085 _ZNK5Baloo11Transaction11documentUrlEy (libKF5BalooEngine.so.5 + 0x20085)
#7 0x0000559e29fab8e4 n/a (baloo_file + 0x1d8e4)
#8 0x00007fe69101d4ff _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x274ff)
#9 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#10 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#11 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#12 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#13 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#14 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#15 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#16 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#17 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#18 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#19 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#20 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#21 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#22 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#23 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#24 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#25 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#26 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#27 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#28 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#29 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#30 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#31 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#32 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#33 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#34 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#35 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#36 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#37 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#38 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#39 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#40 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#41 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#42 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#43 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#44 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#45 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#46 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#47 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#48 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
#49 0x00007fe69101d557 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x27557)
:
Stack trace of thread 1162:
#0 0x00007fe6906a846f __poll (libc.so.6 + 0xf546f)
#1 0x00007fe68f36a93f n/a (libglib-2.0.so.0 + 0xa693f)
#2 0x00007fe68f3152b1 g_main_context_iteration (libglib-2.0.so.0 + 0x512b1)
#3 0x00007fe690dad6e1 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6e1)
#4 0x00007fe690d533fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
#5 0x00007fe690d5b894 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc894)
#6 0x0000559e29f9b2b4 n/a (baloo_file + 0xd2b4)
#7 0x00007fe6905db152 __libc_start_main (libc.so.6 + 0x28152)
#8 0x0000559e29f9b4be n/a (baloo_file + 0xd4be)

                                              Stack trace of thread 1168:
                                              #0  0x00007fe6906aac96 pselect (libc.so.6 + 0xf7c96)
                                              #1  0x00007fe68edc1524 n/a (libusbmuxd-2.0.so.6 + 0x2524)
                                              #2  0x00007fe68edc28a9 n/a (libusbmuxd-2.0.so.6 + 0x38a9)
                                              #3  0x00007fe68fba33e9 start_thread (libpthread.so.0 + 0x93e9)
                                              #4  0x00007fe6906b3293 __clone (libc.so.6 + 0x100293)
                                              
                                              Stack trace of thread 1165:
                                              #0  0x00007fe6906a846f __poll (libc.so.6 + 0xf546f)
                                              #1  0x00007fe68f36a93f n/a (libglib-2.0.so.0 + 0xa693f)
                                              #2  0x00007fe68f3152b1 g_main_context_iteration (libglib-2.0.so.0 + 0x512b1)
                                              #3  0x00007fe690dad6e1 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6e1)
                                              #4  0x00007fe690d533fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
                                              #5  0x00007fe690b6bd22 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd22)
                                              #6  0x00007fe691041098 n/a (libQt5DBus.so.5 + 0x17098)
                                              #7  0x00007fe690b6cf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                                              #8  0x00007fe68fba33e9 start_thread (libpthread.so.0 + 0x93e9)
                                              #9  0x00007fe6906b3293 __clone (libc.so.6 + 0x100293)

Jan 23 23:52:55 sandro-pc pulseaudio[1177]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service ‘org.bluez’: timed out (service_start_timeout=25000ms

systemd-coredump[1315]: Process 1162 (baloo_file) of user 1000 dumped core.
Disable File indexer (KDE Baloo) in System Settings → File Search.

Secondly, there is many weird errors you have I never seen before. Run memtest86 (https://www.memtest86.com/) for few hours, I’d leave PC with memtest overnight. Results must be zero errors, otherwise you have unreliable hardware.

Ok I will do that.

To add more informations. Both times I had google chrome open and was watching a stream on Netflix.

Then I saw the logout window for like 3 seconds and then the restart occured automatically.

It happend 2 times with like 1 hour in between. The Computer was running before the whole day with no problems.

Is all very weired because the issue never happend before. A few weenks ago I updatet my ram complete from 16GB to 32GB but until now I had no issue.

I guess I will try with memtest.

Here is my system:

[sandro@sandro-pc ~]$ inxi -F
System:    Host: sandro-pc Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.20.4 Distro: Manjaro Linux 
Machine:   Type: Desktop System: ASUS product: All Series v: N/A serial: <superuser required> 
           Mobo: ASUSTeK model: H87-PLUS v: Rev X.0x serial: <superuser required> BIOS: American Megatrends v: 2003 
           date: 10/15/2014 
CPU:       Info: Quad Core model: Intel Core i5-4670K bits: 64 type: MCP L2 cache: 6 MiB 
           Speed: 1415 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 1415 2: 1005 3: 852 4: 830 
Graphics:  Device-1: NVIDIA TU117 [GeForce GTX 1650] driver: nvidia v: 455.45.01 
           Display: x11 server: X.Org 1.20.10 driver: nvidia resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01 
Audio:     Device-1: Intel 8 Series/C220 Series High Definition Audio driver: snd_hda_intel 
           Device-2: NVIDIA driver: snd_hda_intel 
           Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: ac:22:0b:78:b5:f3 
Drives:    Local Storage: total: 1.19 TiB used: 302.1 GiB (24.7%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 840 Series size: 232.89 GiB 
           ID-3: /dev/sdc vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
           ID-4: /dev/sdd type: USB vendor: Verbatim model: 0302 size: 58.59 GiB 
Partition: ID-1: / size: 45.58 GiB used: 25.25 GiB (55.4%) fs: ext4 dev: /dev/sdc1 
           ID-2: /home size: 396.85 GiB used: 276.85 GiB (69.8%) fs: ext4 dev: /dev/sdc5 
Swap:      ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) file: /var/cache/swap/swapfile 
Sensors:   System Temperatures: cpu: 28.5 C mobo: 27.8 C gpu: nvidia temp: 36 C 
           Fan Speeds (RPM): cpu: 910 fan-1: 721 fan-3: 709 fan-4: 0 fan-5: 0 gpu: nvidia fan: 0% 
Info:      Processes: 213 Uptime: 8m Memory: 31.3 GiB used: 2.72 GiB (8.7%) Shell: Bash inxi: 3.2.01

I ran memtest last night with no errors. since I disabled balou no random restarts occurred anymore.

Great. Maybe it was baloo then.

I’d like to highlight severity of baloo problems in KDE to manjaro devs, this is another thread with baloo causing problems.
First thing I did in my system after I installed it (last month) and noticed total unresponsiveness of everything was to figure out how to disable that thing! There is no option to enable indexing only when PC is idle, or enable slow indexing with delay between each file and so on. Furthermore, baloo crashes frequently and/or loses it’s own database and start indexing from the beginning! I been fighting with it for a week before I finally disabled it completely.

Baloo should be disabled by default in all new KDE installations.

Yes I also suspect baloo. Since I disabled it my machine runs with no problems at all the whole day.