Hi, I have just manged to get some time to look into the issue and have found what appears to be a problem.
The build compatablity check that is failing, the previous and current DatabaseBuilder having a different number of layer image options, seems to be the correct state when adding a new layer. If I understand this correctly, the check should not be in the code as this will stop you from ever adding new layers to an existing database. I will submit a patch that removes this check but thought I would see if anyone knew if it is there for a reason that I am missing. The relevent code is in BuildOptions.cpp in the compatable method. I have now created a more complex test which is failing in a different way so back to the debugger.. : ) Cheers, Brad -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Christiansen, Brad Sent: Wednesday, 23 June 2010 1:16 PM To: OpenSceneGraph Users Subject: [osg-users] VPB master fails to patch an existing database (serialization error again?) Hi, I seem to have uncovered another issue with the recent changes to VPB. If I try to do a trivial patch of an existing database I get the error: Build configuration invalid : Previous build options not compatible with new build options, cannot patch database. To reproduce the problem I am using the following simple test case: -create the database: vpbmaster --bluemarble-west -t hills.png --bluemarble-east -t hills2.png -o ./out/test.osgb -then patch it: vpbmaster --patch ./out/test.osgb --add --layer 1 --bluemarble-east -t hill3.png This used to work without issue. I have started tracking down what is going wrong and it seems to be failing in BuildOptions.cpp method: bool BuildOptions::compatible(BuildOptions& rhs) const. This method returns false as the number of image options are different ( if (_imageOptions.size() != rhs._imageOptions.size()) return false; ). It seems that when the new .soure file is written out (in the test case above, the file: test.osgb.1.source) it contains two identical ImageOptions. I will keep investigating and post any further information, or hopefully a fix. Cheers, Brad ps- Windows XP, Visual Studio 2008 SP1 DISCLAIMER:--------------------------------------------------------------------------- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. -------------------------------------------------------------------------------------- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org DISCLAIMER:--------------------------------------------------------------------------- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. -------------------------------------------------------------------------------------- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

