Hello Johannes,

Johannes Brunen wrote:
> I got a crash on applying the GeometryMergeGraphOp to a scene. I did
> perform the following operations on my scene (model1.osb):
> 
> The last calls does not return due to dereferencing null pointers in
> file OSGGeoFunctions.cpp (line  ~3230) in function
> 
> void calcMergePropertyType(
>     const GeoIntegralProperty *prop1,
>     const GeoIntegralProperty *prop2,
>           bool                 combineValues,
>           UInt32              &format        )
> {
>     UInt32 form1 = prop1->getFormat();               <------------
>     UInt32 form2 = prop2->getFormat();
>     ...
> }

hm, ok, the caller of this function does not check that the Geometry 
actually does have types (in other words it assumes the Geometry is 
valid without checking).

> At this point I'm a little lost. Is this a problem with my model,  with
> the MergeGraphOp, with the GeometryMergeGraphOp or something else?

It's a mixture of your model containing Geometry without types (which is 
normally considered invalid - you should see a warning like:
"WARNING: masterPump: Geometry 0x1d44df0 has no Types!" in the log when 
the display list is compiled). The other problem is that the geometry 
merging code is perhaps a bit too optimistic and should check for 
invalid geometry instead of crashing. I'll add some checks.

        Cheers,
                Carsten

------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to