From: Dimi (christop++at++fhw.gr)
Date: 04/07/2005 05:23:44
Hi,
I am at the process of creating a loader for a custom format .dsi and I
am porting the existing IRIX loader to Linux.
Although it is running fine in IRIX I experienced unexpected
segmentation faults in Linux.
After a lot of Debuging I found that it crashes in Linux if the
pfdBuilder is called multiple times (over 400),
and that it crashes in pfdBuilder.c line:2538 (function pfdBuild) when
calling pfQuerySys(PFQSYS_GL, &q);
I attached a simple test loader which creates 600 polys by calling 600
times the pfdBuilder. In my machine it crashes after creating 400
polygons at the above stated command.... In IRIX its working fine
though.
I would be gratefull if anyone could have a look at it and acknowledge
this. If its a Bug please correct the pfdBuilder for future releases.
To solve this Bug I am currently also trying to override the pfdBuild
function not to call pfQuerySys(PFQSYS_GL, &q).
Actually this function is NOT needed at all except in the case when you
set the PFDBLDR_GEN_OPENGL_CLAMPED_TEXTURE_COORDS flag in pfdBuilder.Why
is it called there for every frame? I also noticed that calling this
function slows down processing tremendously.
Unfortunately although I link in a sepereate copy of pfdBuilder.c when
creating my libpfdsi.so the functions defined there are not called
because they are
overriden by the corresponding functions in libpfdu which have the same
name. How can I override the functions defined in lipfdu so that my
pfdBuild function is called?
Thanks in advance
Dimi
--
Dimi Christopoulos {christop++at++fhw.gr}|
VR Software Engineer |Web: www.fhw.gr
Foundation of the Hellenic World |Tel. (+30) 21 254 03800,(+30) 21 034 22292
Athens - Greece |Fax. (+30) 21 254 03838,(+30) 21 034 22272
This archive was generated by hypermail 2b29 : Thu Apr 07 2005 - 05:23:19 PDT