Re: XForms: Unknown type 2 ?

Stephen Langer (langer@cam.nist.gov)
Thu, 22 May 1997 09:49:45 -0400

To subscribers of the xforms list from "Stephen Langer" <langer@cam.nist.gov> :

I wrote:
> > ... But on the O2 it dies with the error
> >
> > Unknown type : 2
> > X Error of failed request: BadMatch (invalid parameter attributes)
> > Major opcode of failed request: 1 (X_CreateWindow)
> > Serial number of failed request: 41259
> > Current serial number in output stream: 41517

Orlando Andico said:
> Actually, I think this is in the X server, not XForms. I also get a
> similar error (X_CreateWindow) when I try to run LyX remotely from a Linux
> box to an SGI.

The X Error message is from the X server, but it's always preceded by
"Unknown type : 2", which is from xforms. I know this because (a) Steve
Lamont said so, and (b) I ran 'strings libforms.a | grep "Unknown type"'.

Steve Lamont replied:
>
> The "Unknown type" message comes from fl_get_resource(). It's
> probably being fed an incorrect data type parameter.
>
> Try running the application in synchronous mode. This will cause
> XForms to cough up whole bunches of resource parsing information,
> among other things.

OK. I've done that, but I don't know quite what to look for. I can't see
anything obviously connected to fl_get_resource(). Could the problem be that
I'm not using fl_get_app_resources() to handle my command line arguments?
It's not easy for me to do that, since the program needs to be able to run in
the absence of an X server, so I need to check arguments before starting
xforms.

Here are some excerpts from the sync output. I don't want to post the
whole thing...

> Options Set
> debug:4
> Visual:To be set (-1)
> depth:0
> privateColormap:0
> sharedColormap:0
> standardColormap:0
> doubleBuffer:0
> ulPropWidth:1
> ulThickness:-1
> backingStore:1
> coordUnit:pixel
> VisualId:0x0
> rgamma:1.000
> ggamma:1.000
> bgamma:1.000 screen DPI=92.900002

There are a number of occurences of sequences like

> ****CreateWin OK**** sleeping 3 seconds
> waiting Event(22,w=0x2400039 s=689) ConfigureNotify (64,64) w=610 h=440 Syn
> waiting Event(19,w=0x2400039 s=691) MapNotify
> waiting Event(12,w=0x2400039 s=691) Expose count=0 serial=2b3
> In EventCallback [events.c 37] Unknown window=0x2400039
> Ignored Event(12,w=0x2400039 s=691) Expose count=0 serial=2b3

Should I worry about these? They also appear when I run on a machine on which
the program works properly. (Or at least I thought it did...)

Later on, the "Unknown type : 2" error occurs in this context:

> ****CreateWin OK**** sleeping 3 seconds
> waiting Event(21,w=0x240007d s=6803) ReparentNotify
> waiting Event(22,w=0x240007d s=6803) ConfigureNotify (128,128) w=700 h=280
Syn
> waiting Event(19,w=0x240007d s=6803) MapNotify
> waiting Event(12,w=0x240007d s=6803) Expose count=0 serial=1a93
> In EventCallback [events.c 37] Unknown window=0x240007d
> Ignored Event(12,w=0x240007d s=6803) Expose count=0 serial=1a93
> In Browser [browser.c 367] Creating new GCs
> In xtext.c[341]: FontResolution: 138
> In ObjPixmap [xsupport.c 228] Creating depth=24 for
> Unknown type : 2
> In obj_qflush [events.c 208] Total of 1 objects flushed for initialize
uniform isotropic form

Followed by more "Unknown window"s, and eventually the X error

> In Canvas [canvas.c 347] FL_DRAW
> X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 1 (X_CreateWindow)
> Serial number of failed request: 12599
> Current serial number in output stream: 12600

Thanks for any suggestions,

Steve

-- 
-- EMail: stephen.langer@nist.gov                    Phone: (301) 975-5423 --
-- WWW:  http://math.nist.gov/mcsd/Staff/SLanger/    Fax:   (301) 990-4127 --
-- Mail: Building 820 Room 365; NIST; Gaithersburg, Md          20899-0001 --
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/