Re: [info-performer] Re: pfNode::isect() on deep scenes.

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 04/17/2002 19:11:20


Hello Bram !

Thanks for the sample code. Was an easy bug.
I think the fix will hit the streets in pf2.5.2

-yair

> > Can you please send me a short sample code demonstrating the crash ?
>
> Find attached the minimalist bug-demonstrator 'deep_isect'
>
> Bus errors, Segm Violation, Hangs, I can generate just about any error
> condition by intersecting deep trees.
>
> If I put 28 or more DCSes between the pfScene and esprit.pfb's geometry, I
> can make my app crash. (My guess is that esprit.pfb has 4 levels, plus
> the pfScene, plus the 28 DCSes equals a pfPath length of 33 which exceeds 32
> which I suspect is the hard coded limit in pf's isect code)
>
> Sometimes I get very cool and exotic error messages like:
> PF Warning/Resource(2): _pfNewDLName: couldn't allocate GL display lists.
> or:
> Trace/BPT/RangeErr/DivZero/Ovflow trap (core dumped)
> or:
> PF Warning/Usage: pfMemory::realloc() can't realloc from non-pfMemory data
> Bus error (core dumped)
>
>
> (dbx) where
> > 0 pfNode::pf_isect(pfSegSet*,pfHit***,pfChannel*,pfMatrix*)(0x1, 0x7fff2c98, 0x3, 0x7fff2c8c, 0x7fff2380, 0x0, 0x1, 0x0) ["/build/perfbuild/perftot1/perf/lib/libpf/pfNode.C":1488, 0x41fd9e4]
> 1 pfNode::nb_isect(pfSegSet*,pfHit***)(0x1, 0x0, 0x1, 0x7fff2c8c, 0x7fff2380, 0x0, 0x1, 0x0) ["/build/perfbuild/perftot1/perf/lib/libpf/pfNode.C":875, 0x41fbfe0]
> 2 pfNode::isect(pfSegSet*,pfHit***)(this = 0x640a1640, segSet = 0x7fff2840, hits = 0x7fff2c90) ["/usr/include/Performer/pf/pfNode.h":193, 0x1000394c]
> 3 ::do_isect(pfScene*)(scene = 0x640a1640) ["/home/sara/bram/tmp/isect/simple.cxx":46, 0x10002ccc]
> 4 ::main(argc = 1, argv = 0x7fff2ed4) ["/home/sara/bram/tmp/isect/simple.cxx":150, 0x100032d0]
> 5 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177, 0x10002758]
>
> This only happens with PFTRAV_IS_PATH enabled.
>
> I hope you can still fix this one before pf3.0 comes out.
>
> Bram
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Apr 17 2002 - 19:11:40 PDT

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