freenode/#stumpwm - IRC Chatlog
Search
17:54:09
fiddlerwoaroof
Every once in a while, I'll do something and stumpwm will just freeze up and burn cpu for a couple minutes
19:19:53
mood
fiddlerwoaroof: If it's burning CPU, it seems very much awake. It's probably processing an onslaught of X events or something
19:35:11
fiddlerwoaroof
mood: what I mean, is how do I tell it "stop what you're doing now and respond to my input"
19:41:36
mood
fiddlerwoaroof: Well, if my theory is correct, at that point it's processing X events. Anything you do will just end up in the exact same queue. While waiting for a keymap, like after pressing your prefix key, I believe it temporarily rejects any non-input events, but that's not much of a solution. The best thing to do would be to figure out what's sending the ridiculous amount of events and stop it from
19:42:37
mood
That is, _if_ that's what's happening at that point. If you can somewhat reliably trigger it, you could enable debug logging and figure out what StumpWM is doing
19:44:24
mood
Most other window managers are capable of processing events much faster, because they're written in C, do much less in their event loop, etc
20:34:34
Cthulhux
being written in C does not necessarily have an immediate effect on the overall performance
20:48:07
whoman
stumpwm shouldnt be noticably locking up for any lisp reasons unless you are on a 486
21:19:22
mood
Cthulhux: I know. In practice it often does though, particularly with not-particularly-performant code like StumpWM. The StumpWM code sometimes has weird "performance optimizations", but then does extremely inefficient things elsewhere
21:21:58
mood
whoman: It shouldn't, but some applications are extremely badly behaved. I remember one application, Drawpile, managing to crash StumpWM by spamming property notifications at ridiculous speeds
21:23:35
mood
There are also programs that, when their resize request gets undone, fire it off again and again and again. StumpWM, in turn, will revert it again and again and again. Fun times to be had