Re: pfHighlight bug

New Message Reply Date view Thread view Subject view Author view

From: Brian Corrie (bcorrie++at++origin1.imti.nrc.ca)
Date: 04/02/2001 19:29:43


Hello all,

I sent the following email a few weeks ago and haven't had any responses yet
so I thought I would repost. I am hoping that someone (from SGI???) will be
able to test out the attached program on a multi-pipe machine and confirm
whether or not it crashes. It should be a quick easy compile and so should be
an easy test (if you have more than one pipe that is 8-).

Thanks for any input that you can give me. The original email and the file are
enclosed below.

Cheers,

        Brian

==========================================================================
Hello all,

We have a strange problem involving pfHighlight. I think it is a Performer
bug, but I am sure someone will correct me if I am wrong 8-)

We have an interactive application that makes use of pfHighlights to highlight
objects as they are being selected and manipulated. The program works fine
when it is run on a single pipe configuration but it crashes in the draw
process when run in a multi-pipe configuration (in our case a CAVE). We have
been able to reproduce the problem with our CAVE application, with a
multi-pipe run of perfly, and with the variation of simple.C that I have
enclosed below. All the program below does is rotate a model for 20 seconds
and halfway through the run it highlights the model. Shortly after the model
is high-lighted (hi-lit???) the program crashes with the following messages:

PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Warning/Usage: pfDrawGSet(0x6407d5c0) Cannot mixindexed and
non-indexed attributes. Expect garbage or core dump.
PF Notice: Caught SIGCHLD. Exiting due to death of child
wit

Note that this is not model type dependent as the same thing happens with more
than one format (windmill.iv and esprit.flt are the two that we have tested).
It does appear to be model dependent though as it does not crash on all
models. Given the error message above I suspect it depends on how the geometry
is created (whether it has indexed or non-indexed geometry).

I am not sure how pfHighlight works or whether or not it actually creates
geometry itself, but it looks like it might be creating a new pfGeoSet that is
not of the same type (indexed vs non-indexed) as the geometry that is already
in the pfGeode. This confuses things obviously. When the errors occur, you can
sometimes see lines flashing across the screen, implying that something very
strange is going on...

I think this would point to a bug in Performer and its pfHighlight code, no?

By the way, we are running on an Onyx2 IR, 6.5.7m, and Performer 2.2.7. To get
it to crash you must run this on a multi-pipe system. Our configuration has
one keyboard/Xwindow manager for the two pipes that drive our CAVE (:0.0 is
pipe 0 and :0.1 is pipe 1). Not sure if the same problem exists across
multiple pipes with multiple Xmanagers.

Any thoughts and/or workarounds???

Cheers,

        Brian




New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Apr 02 2001 - 19:31:38 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.