[JWM] multiple jwm -restart causes crash

will at hugthebubble.co.uk will at hugthebubble.co.uk
Mon Jul 2 17:10:53 CDT 2007


Hi
I'm using jwm 2.0 in Puppylinux 2.16.
If I do jwm -restart approximately 8 times the icons don't load fro the
swallow entries in the tray. The next time I do jwm -restart it crashes X.

I have tried to reproduce this in a fresh install using a minimal .jwmrc.
After approximately 140 restarts the tray does not appear though this does
not crash X.

The problem appears to be related to the number of icons that are loaded.
If I remove some of my iconpath entries, so that my menus don't load many
of the icons,it takes more restarts to cause the crash.

Using the minimal .jwmrc it takes many more restarts to stop the tray
loading. I have tested the minimal .jwmrc in 1.8 without a problem.

I found the following in xerrs.log:

GLib-WARNING **: getpwuid_r(): failed due to: No such user 0.
Warning: locale not supported by C library, locale unchanged

GLib-WARNING **: getpwuid_r(): failed due to: No such user 0.
couldn't read file "/usr/lib/tcl8.5/auto.tcl": too many open files
    while executing
"source /usr/lib/tcl8.5/auto.tcl"
    (in namespace eval "::" script line 1)
    invoked from within
"namespace eval :: $auto_index($name)"
    (procedure "auto_load" line 13)
    invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
    (autoloading "tcl_findLibrary")
    (procedure "::unknown" line 30)
    invoked from within
"tcl_findLibrary tk $tk_version $tk_patchLevel tk.tcl TK_LIBRARY tk_library"
    (procedure "tkInit" line 4)
    invoked from within
"tkInit"
    invoked from within
"load /usr/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5" script)
    invoked from within
"package require Tk"
    ("package ifneeded Img 1.2.4" script)
    invoked from within
"package require Img"
    (file "/usr/sbin/mini-volume.tcl" line 34)

GLib-ERROR **: Cannot create pipe main loop wake-up: Too many open files

aborting...
JWM: warning: configuration error: could not open /root/.jwmrc or
/usr/local/etc/system.jwmrc
JWM: warning: color depth is 16, disabling icon alpha channel
JWM: error: could not load the default font:
-*-courier-*-r-*-*-14-*-*-*-*-*-*-*


waiting for X server to shut down FreeFontPath: FPE
"/usr/X11R7/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.

--------------------------------------------------------------------------

Here is my .jwmrc:

<?xml version="1.0"?>
<JWM>
<RootMenu label="Menu" labeled="false" height="24" onroot="3">
	<Restart label="Restart JWM" icon="mini-windows.xpm"/>
	<Program label="terminal" icon="mini-shell.xpm">exec rxvt</Program>
<Menu label="Shutdown" icon="shutdown24.xpm" height="16">
<Exit confirm="false" label="Exit to prompt" icon="prompt16.xpm" />
<Program label="Reboot computer" icon="mini-turn.xpm">exec
/usr/X11R7/bin/wmreboot</Program>
<Program label="Power-off computer" icon="mini-stop.xpm">exec
/usr/X11R7/bin/wmpoweroff</Program>
<Program label="Restart X server" icon="mini-x.xpm">restartwm</Program>
<Program label="Change Window Manager"
icon="mini-windows.xpm">changewm.sh</Program>
</Menu>
</RootMenu>

<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
<IconPath>/usr/local/lib/X11/pixmaps</IconPath>

<Tray  autohide="false" insert="right" x="0" y="-1" border="0" height="26" >
	<TrayButton label="Menu" icon="mini-dog.xpm">root:3</TrayButton>
	<TaskList/>
	<Clock>minixcal</Clock>
</Tray>
</JWM>


many thanks Will Davies


More information about the JWM mailing list