You are not logged in.

#1 2025-01-18 14:00:52

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 140

My DWM is crashing sometimes

Hi

    When I was working with two browsers in sanbox using firejail and running local LLM with anythingLLM and this error  happend:

[6:102:0116/105937.646297:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
[6:102:0116/105937.646336:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
[6:102:0116/105937.646367:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
LaunchProcess: failed to execvp:
xdg-settings
[64502:0116/110250.931177:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).
[45:45:0116/110338.897329:ERROR:connection.cc(63)] X connection error received.
X connection to :0 broken (explicit kill or server shutdown).

Parent is shutting down, bye...

Parent is shutting down, bye...

This usually doesn't happend, It happend one time when my dwm was not patched and then went a couple of weeks welll, but now this issue happen again and kill my dwm session. This error for most of the time usually doesn't occur, using the same programs and working many hours, but in some cases the error happen and kill my dwm session. I think this only happend 3 or 4 times, it's very strange because it's hard to recreate the error.

I have my doubts if it is ROCm or if it is my firejailed browsers which produce the error. I think is ROCm or anything LLM, usually dwm dies when LLM is printing tokens. Also anything LLM you have to launch it by a script, the installation process is a little different than common applications.

Please I need help to understand the logs well.

Last edited by Succulent of your garden (2025-01-18 14:07:57)

Offline

#2 2025-01-18 15:53:31

seth
Member
Registered: 2012-09-03
Posts: 60,884

Re: My DWM is crashing sometimes

This hardly tells anything except that the X11 server is gone.
Eiher the server itself was terminated or crashed or the session keeping process (dwm?) was terminated or crashed.

https://wiki.archlinux.org/title/Core_d … _core_dump
X11 logs crashes in its logs, https://wiki.archlinux.org/title/Xorg#General - if the log for that server says it cleanly terminated, you lost the session keeing process.

Assuming you're using startx/xinit, you might want to use a process that's not prone to accidental crashes (forever sleep) as session keeping process or just cycle through WMs (ie. run dwm, check $? and if it's not 0 or 15 restart dwm, possibly rate controlled and w/ a counter to resort to eg. openbox in case there's a persistent bug in dwm causing it to insta-crash)

It's not very likely that a firejailed process (that's not the session keeping process) has caused this.

Offline

#3 2025-01-20 13:38:59

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 140

Re: My DWM is crashing sometimes

Once again thanks Seth for the info. I'll try to recreate the issue to get the logs from the coredump and Xorg, since I don't remember the day I can't be able to find the issue in the Xorg logs.

what do you mean by "run dwm, check $?" Do you mean that first I run dwm in xinit and then in a terminal I just go and do "echo $?"

Offline

#4 2025-01-21 17:01:23

seth
Member
Registered: 2012-09-03
Posts: 60,884

Re: My DWM is crashing sometimes

#!/bin/sh
…
while true; do
   STIME=$(date +%s)
   dwm
   ret=$?
   [ $ret = 0 -o $ret = 15 ] && exit
   (( $(date +%s) - $STIME < 30 )) && openbox # dwm crashes within 30s
   # alternatively
   # sleep 5 # for rate control
done

Offline

#5 2025-02-03 23:09:33

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 140

Re: My DWM is crashing sometimes

Hi Seth, many thanks for your help. I was not able to be in the forums because i get very busy. But now I'm  back.

Does the script just append it in my .xinitrc file  right ?

I tried to break my system to simulate the issue, but until now it has been stable, but also I have not used so much the last week.

Once again, many thanks for you help smile

Cheers

Last edited by Succulent of your garden (2025-02-03 23:10:13)

Offline

#6 2025-02-03 23:48:30

seth
Member
Registered: 2012-09-03
Posts: 60,884

Re: My DWM is crashing sometimes

Yes (except for the ellipsis…), you can "pkill -11 dwm" to "crash" it.

Offline

#7 2025-02-08 11:59:48

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 140

Re: My DWM is crashing sometimes

Hi Seth

    Currently the last days my dwm is not quitting, but here are some news: Sometimes now  my screen freeze a second or two (Sometimes even less than a second). It's very usual today for example, but other days it does not. My GPU I almost sure have a coil whine. Sometimes the coil whine stops, it's very random to be honest, but the coil whine never start in idle or when I'm just using terminals and vim. It usually starts when I open a browser or use more intensive task, but sometimes I can stay using my pc with very intense task but without coil whine of screen freezing.

What do  you think about it ? I'm sure that my  power supply has the watts needed but maybe it came faulty. Also I'm going to unplug the gpu and put another one which uses less watts and see if works well.

Currlently this pc have two gpus, so I'm going to see if only with  the less powerfull everything goes well.

btw writing this post my screen freeze like 10 times, sometimes i pust here and that never happend. I'm not sure if temperature also affect this issue.

Nevertheless thanks for your help!

Cheers

EDIT:  The xorg logs and dwm logs are fine when the screen freezes.

Last edited by Succulent of your garden (2025-02-08 12:02:21)

Offline

#8 2025-02-08 16:08:53

seth
Member
Registered: 2012-09-03
Posts: 60,884

Re: My DWM is crashing sometimes

amdgpu?
https://bbs.archlinux.org/viewtopic.php?id=303184

You frankly should open a new thread for this and there ideally post an Xorg log to illustrate the GPU/driver situation.

Offline

#9 Yesterday 11:37:33

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 140

Re: My DWM is crashing sometimes

Yes it does. Thanks Seth, I came here quickly but later today or tomorrow I will read the link in more detail and see if I can fix it for myself or if I need help.

Cheers.

Offline

Board footer

Powered by FluxBB