pfGSetGState problems

New Message Reply Date view Thread view Subject view Author view

Ken Sakai (sakai++at++sgi600.msd.lmsc.lockheed.com)
Thu, 23 Feb 95 10:11:58 -0800


I am hoping someone can help explain a core dumping problem that I am having
when trying to call pfGSetGState() with an in-house geometry loader similar to
the geometry loaders supplied with Performer. I am executing the following
standard geometry loader/builder stuff in the APP process:

   gsetList = pfuMakeGSets(builder);
   for(i = 0; i < pfGetNum(gsetList); i++)
   {
      gset = (pfGeoSet *)pfGet(gsetList,i);
      pfGSetGState(gset, geostate);
      pfAddGSet(geode,gset);
   }

> 0 prRef(obj = 0xb) ["../../../lib/libpr/object.c":193, 0x5e8104]
   1 pfGSetGState(gset = 0x189eb3d0, gstate = 0xb) ["../gset.c":4752, 0x5be68c]
   2 VsimPerfIndexedGeomObject::getPerformerNode(_pfGeoState*)(this = 0x7ffedc64, geostate = 0xb) ["/tmp_mnt/ufs/smokey/uf1/sakai/vsim/vsl/VsimPerfIndexedGeomObject.cc":139, 0x4a6398]
   3 VsimPerf6DBody::replaceGeometry(char*)(this = 0x10257298, geometryFilename = 0x7ffede40 = "radarfan.geom") ["/tmp_mnt/ufs/smokey/uf1/sakai/vsim/vsl/VsimPerf6DBody.cc":1486, 0x4997a4]
   4 VsimPerfManager::processSocketData()(this = 0x1016b6f8) ["/tmp_mnt/ufs/smokey/uf1/sakai/vsim/vsl/VsimPerfManager.cc":1540, 0x484e1c]
   5 VsimPerfApp::updateSim()(this = 0x10114430) ["/tmp_mnt/ufs/smokey/uf1/sakai/perfApp/VsimPerfApp.cc":397, 0x47536c]
   6 VsimPerfApp::postFrame()(this = 0x10114430) ["/tmp_mnt/ufs/smokey/uf1/sakai/perfApp/VsimPerfApp.cc":335, 0x475034]
   7 VsimPerfApp::drawWorkproc(ptr = 0x10114430) ["/tmp_mnt/ufs/smokey/uf1/sakai/perfApp/VsimPerfApp.cc":304, 0x474e50]
   8 CallWorkProc(0x101290d0, 0x7fffae60, 0x1, 0x0, 0xfbc3c48) ["NextEvent.c":673, 0xf6cdfa0]
   9 XtAppNextEvent(0x101290d0, 0x7fffae60, 0x1, 0x0, 0x10) ["NextEvent.c":737, 0xf6ca9e0]
  10 PerfApp::KensXtAppMainLoop(_XtAppStruct*)(this = 0x10114430, app_context2 = 0x101290d0) ["/tmp_mnt/ufs/smokey/uf1/sakai/perfApp/PerfApp.cc":127, 0x4725dc]
  11 PerfApp::handleEvents()(this = 0x10114430) ["/tmp_mnt/ufs/smokey/uf1/sakai/perfApp/PerfApp.cc":117, 0x47258c]
  12 main(0x9, 0x7fffaf1c, 0x1, 0x0, 0x100378a0) ["Main.C":46, 0x478d90]

The geostate being used is one that had been created for another object
during scene initialization. Reusing this geostate in the midst of
pipelined APP, CULL, DRAW rendering seems to be a problem. However, if I
create a NEW geostate along with the NEW geosets my core problem goes away.
What is wrong with the call to pfGSetGState() using the OLD geostate?
Any ideas?

                  Thanks,

Kenneth N. Sakai Email: sakai++at++lmsc.lockheed.com
Research Specialist/Computer Graphics Phone: (408) 756-0682
Lockheed Missiles and Space Co.
Sunnyvale, CA 94088-3504


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:51:00 PDT

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