Skip to content

DeskTopName leaks #1157

@lormaccone

Description

@lormaccone

Upfront Information

Please provide the following information by running the command and providing
the output.

  • Fvwm3 version (run: fvwm3 --version)

  • fvwm3 1.1.2 (1.1.1-22-g8db8fa34)
    with support for: XPM, PNG, Shape, XShm, SM, XRandR, XRender, XCursor, XFT, XFixes, NLS

  • Linux distribution or BSD name/version

  • Gentoo linux

  • Platform (run: uname -sp)

  • Linux Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz

Expected Behaviour

I am updating DeskTopName every 10 seconds to display the time:

#!/bin/bash
while [ 1 ]
do
data=date +%d/%m-%H:%M
for i in $(seq 0 3); do FvwmPrompt "DesktopName $i $i $data"; done
sleep 10
done

Actual Behaviour

It works: it displays the current time on the pager, but it leaks x11 windows. By running xrestop, I see that, while running that script, the number of <unknown> instances grows continuously, until it runs out of windows " Maximum number of clients reached". It is not consistent (not every call of DeskTopName increases the instances), so it's difficult to debug. But it is certain that it is due to that command, I've been trying for a few days and I've tried to update DeskTopName in different manners (not only with FvwmPrompt, e.g. using PeriodicTasks), but it always gives the same problem: it's certainly due to updating DeskTopName, as I use FvwmPrompt for other things and it never displayed any issues.

Enabling logging

I enabled logging, but nothing related appears in the log file

Steps to Reproduce

How can the problem be reproduced?

Every time I run the above script, after a while (many hours) I get "Maximum number of clients reached" and I cannot open any more x11 clients, e.g. xterm..

  • Reduce the problem to the smallest fvwm configuration example (where
    possible). Start with a blank config file (fvwm3 -f/dev/null) and go from
    there.

This configuration file seems already to display the problem:

AddToFunc "InitFunction" "I" Module FvwmPager *
AddToFunc "InitFunction" "I" Module FvwmMFL

  • Does the problem also happen with Fvwm2?
    I don't know: it's not running on my system (it complains of some missing library)
    Include your configuration with this issue.

Does Fvwm3 crash?

No. killing fvwm does not release the extra windows. I need to restart Xorg.

Extra Information

  • Anything else we should know?

My heartfelt thanks for your work!! It's a GREAT window manager I've been using for decades! Thanks!

  • Feel free to take a screen capture or video and upload to this issue if you
    feel it would help.

  • Attach $HOME/.fvwm/fvwm3-output.log from the step above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions