[SOLVED] Tomenet on FreeBSD, no longer working

Bug reports and discussion about bugs.
Post Reply
N der Fünfte
Posts: 4
Joined: Wed Jun 26, 2013 10:24 am

[SOLVED] Tomenet on FreeBSD, no longer working

Post by N der Fünfte »

A few years ago, tomenet ran nicely on FreeBSD. Meanwhile it wont work any more.
Since I primarily use FreeBSD, I'd very much like to help finding the problem.

Problem Description: When you start toment, a window blinks up for the fraction of a second and then disappears again.
The terminal shows some messages:

Code: Select all

[...] ~/tomenet/tomenet-4.5.3b> ./tomenet
Font not found: 8x13
Failed to load a font!
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  53
  Current serial number in output stream:  55
Setup: Since the linux client no longer runs with FreeBSD's Linux emulation layer (glibc too old), i had to compile it myself. Using gmake and installing sdl_mixer, this was a no brainer. The systems details are:

Code: Select all

FreeBSD nomad.local 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
(guess i should update to p4 soon...)

Xorg is running in VESA mode on this laptop.

Any ideas what causes this or how to further debug into the error? I have some dev skills, but 0 X11 development experience...
Last edited by N der Fünfte on Wed Jun 26, 2013 12:01 pm, edited 1 time in total.
N der Fünfte
Posts: 4
Joined: Wed Jun 26, 2013 10:24 am

Re: Tomenet on FreeBSD, no longer working

Post by N der Fünfte »

My legendary debugging skills ( == pressing n+enter like 200 times :-) ) showed this:

Code: Select all

Infowin_init_data (dad=35651603, x=1, y=1, w=0, h=0, b=0, fg=16777215, bg=0) at client/main-x11.c:634
634     {
(gdb) n
639             WIPE(Infowin, infowin);
(gdb) n
648             if (dad == None) dad = Metadpy->root;
(gdb) n
639             WIPE(Infowin, infowin);
(gdb) n
648             if (dad == None) dad = Metadpy->root;
(gdb) n
651             xid = XCreateSimpleWindow(Metadpy->dpy, dad, x, y, w, h, b, fg, bg);
(gdb) n
654             XSelectInput(Metadpy->dpy, xid, 0L);
(gdb) n
651             xid = XCreateSimpleWindow(Metadpy->dpy, dad, x, y, w, h, b, fg, bg);
(gdb) n
654             XSelectInput(Metadpy->dpy, xid, 0L);
(gdb) n
660             Infowin->nuke = 1;
(gdb) n
597             XGetGeometry(Metadpy->dpy, xid, &tmp_win, &x, &y, &w, &h, &b, &d);
(gdb) n
660             Infowin->nuke = 1;
(gdb) n
594             iwin->win = xid;
(gdb) n
597             XGetGeometry(Metadpy->dpy, xid, &tmp_win, &x, &y, &w, &h, &b, &d);
(gdb) n
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  53
  Current serial number in output stream:  55

Program exited with code 01.
Width==0 and Height==0 looks fishy. Should debug on a Linux machine to see if values are the same. I dont have one here right now, though. Later tonight if nobody else feels like firing up his debugger. :-)
N der Fünfte
Posts: 4
Joined: Wed Jun 26, 2013 10:24 am

Re: Tomenet on FreeBSD, no longer working

Post by N der Fünfte »

Following the "8x13 not found" hint, i installed some more font packages, which - after restarting Xorg - solves the issue.
If someone else finds this thread, here is the solution:

Code: Select all

root% cd /usr/ports/x11-fonts/xorg-fonts
root% make install clean
root% # restart X server, if in doubt, just reboot PC.
C. Blue
Developer
Posts: 394
Joined: Sun Dec 13, 2009 6:28 pm

Re: [SOLVED] Tomenet on FreeBSD, no longer working

Post by C. Blue »

Thanks, I added that information to the guide.
Post Reply