Flat Triangle Fan bug in Perf 2.2MR??

New Message Reply Date view Thread view Subject view Author view

Steve Baker (sbaker++at++link.com)
Thu, 14 May 1998 09:00:09 -0500 (CDT)


I think I just found a bug in Perf 2.2 MR (IRIX 6.2, ONYX iR).

We just added support for PFGS_TRIFANS and PFGS_FLAT_TRIFANS into our
package.

We find that the pfGSetIsectMask function crashes when we pass
it a pfGeoSet containing a PFGS_FLAT_TRIFANS primitive. PFGS_TRIFANS
seem to work OK.

The pfGSetIsectMask call is being made inside either APP or DBASE -
the effect is the same, Performer says:

FATAL pfMalloc() Unable to allocate 383526720 bytes from arena 0x18380000.

...which is odd since this is only a 20 vertex tFan. :-)

DBX says...

...

   2 ::pfNotify(0x1a2f03f0, 0xa, 0x7ffc6ca0, 0x0, 0x0, 0x41100000, 0x0, 0x0)
["/build/perfbuild/perftot0/perf/lib/libpr/notify.C":291, 0x5d79fa2c]
   3 pfGeoSet::pr_mallCache(int)(0x1a2f03f0, 0x40f3d6f8, 0x7ffc6ca0, 0x0, 0x9, 0x1, 0x0, 0xa) ["/build/perfbuild/perftot0/perf/lib/libpr/pfGeoSet.C":2612, 0x5d715c40]
   4 pfGeoSet::pr_computeCache(void)(0x1a2f03f0, 0xa, 0x7ffc6ca0, 0x0, 0x0, 0x0, 0x0, 0xa)
["/build/perfbuild/perftot0/perf/lib/libpr/pfGeoSet.C":2912, 0x5d7153b4]
   5 pfGeoSet::setIsectMask(unsigned int,int,int)(0x1a2f03f0, 0x0, 0x80, 0xffffffff, 0x9,
0x1, 0x0, 0xa) ["/build/perfbuild/perftot0/perf/lib/libpr/pfGeoSet.C":1741, 0x5d71356c]
   6 ::pfGSetIsectMask(0x1687, 0xa, 0x7ffc6ca0, 0x0, 0x9, 0x1, 0x0, 0xa)
["/build/perfbuild/perftot0/perf/lib/libpr/cGeoSet.C":459, 0x5d7afdc4]
   7 Loader_Instance::parse_packet(int,int,char*)(this = 0x7ffc9988, opcode = 10, length = 8, buf = 0x7ffc88e8 = "") ["/usr/squeaky2/common/src/loader/loadprf.cxx":867, 0x10114564]

...

The source code says:

  pfAddGSet ( geode, gset ) ;
  pfGSetIsectMask ( gset, PFTRAV_SELF, PFTRAV_IS_CACHE, 0xffffffff ) ;

Since our code to load flat tristrips (which work OK) is essentially identical
to that to load flat trifans, it looks like this is a pfBug.

Steve Baker (817)619-8776 (Vox/Vox-Mail)
Raytheon Systems Inc. (817)619-4028 (Fax)
Work: SBaker++at++link.com http://www.hti.com
Home: SJBaker1++at++airmail.net http://web2.airmail.net/sjbaker1

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:24 PDT

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