[osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Roman Grigoriev
Hi, I try to build globe database. Works fine but when I try to build poligonal 
database got segmentation fault. 
vpbmaster --geocentric --POLYGONAL --compressor-nvtt --compressed-dxt1 
--compression-quality-fastest  -t bluemarble.tif -o earth.osgb

Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41198#41198





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Torben Dannhauer
Hi Adun,

Sorry that are not enough information about your setup, can't help you.

What is your
- OS
- Compiler
- OSG version
- VPB version
- NVTT version

Anyway, if you VPBmaster run fails, try to simplify the command and remove all 
unnecessary options like compression etc. if it works, add each run one 
argument and determine which of you arguments causes the crash.

have you tried to run vpmaster without options? 


Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41200#41200





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Roman Grigoriev
Hi,
Lubuntu 11.04 x86 
VPB from trunk 
osg from trunk 
nvtt from trunk 
gcc 4.5.1
here is output 

i@t520:~/work/atlantik/earth$ vpbmaster --geocentric --POLYGONAL -t 
bluemarble.tif -l 6 -o 1.osgb
--geocentric 
-t bluemarble.tif
ADD: bluemarble.tif
-o 1.osgb
Adding terrainTile 
DataSet::generateTasks_new
local_extents = xMin() -180.00 180.00
yMin() -90.00 90.00
AR=2.00 C1=2 R1=1
Computed maximum source level = 5
Selected single split at 2
local_extents = xMin() -180.00 180.00
yMin() -90.00 90.00
AR=2.00 C1=2 R1=1
   Task directory already created
   Log directory already created
totalNumOfTasksSansRoot = 2
getTaskName(1,0,0) no nest, 2 0
getTaskName(1,1,0) no nest, 2 0
Generated tasks file = build_master.tasks
Revsion source = 1.osgb.0.source
Setting up MachinePool to use all 4 cores on this machine.
Begining run
scheduling task : tasks/build_root_L0_X0_Y0.task
scheduling task : tasks/build_subtile_L1_X0_Y0.task
scheduling task : tasks/build_subtile_L1_X1_Y0.task
machine=t520 running task=tasks/build_root_L0_X0_Y0.task
machine=t520 running task=tasks/build_subtile_L1_X0_Y0.task
machine=t520 running task=tasks/build_subtile_L1_X1_Y0.task
Now checking for plug-in osgPlugins-3.1.0/osgdb_nvtt.so
osg::Registry::addImageProcessor(ImageProcessor)
Loaded plug-in osgPlugins-3.1.0/osgdb_nvtt.so and located ImageProcessor
Now checking for plug-in osgPlugins-3.1.0/osgdb_nvtt.so
osg::Registry::addImageProcessor(ImageProcessor)
Loaded plug-in osgPlugins-3.1.0/osgdb_nvtt.so and located ImageProcessor
Now checking for plug-in osgPlugins-3.1.0/osgdb_nvtt.so
osg::Registry::addImageProcessor(ImageProcessor)
Loaded plug-in osgPlugins-3.1.0/osgdb_nvtt.so and located ImageProcessor
Segmentation fault
machine=t520 completed task=tasks/build_subtile_L1_X0_Y0.task in 0.8 seconds
Number of tasks completed 1, running 2, pending 0. Estimated time to completion 
0 seconds, 54.1 percent done.

Warning: Task tasks/build_subtile_L1_X0_Y0.task has failed, blacklisting 
machine t520 and resubmitting task.

Segmentation fault
machine=t520 completed task=tasks/build_subtile_L1_X1_Y0.task in 0.9 seconds
Number of tasks completed 2, running 1, pending 0. Estimated time to completion 
1 seconds, 56.1 percent done.

Warning: Task tasks/build_subtile_L1_X1_Y0.task has failed, blacklisting 
machine t520 and resubmitting task.

osg::Registry::removeImageProcessor();
machine=t520 completed task=tasks/build_root_L0_X0_Y0.task in 1.0 seconds
Number of tasks completed 3, running 0, pending 1. Estimated time to completion 
0 seconds, 61.7 percent done.
End of TaskSet: tasksPending=2 taskCompleted=1 taskRunning=0 tasksFailed=0
End of run: tasksPending=2 taskCompleted=1 taskRunning=0 tasksFailed=0
MachinePool::reportTimingStats()
Machine : t520
Task::type=''   minTime=0.770286maxTime=1.021428
averageTime=0.888108totalComputeTime=2.664324   numTasks=3
Finished run, but did not complete 2 tasks.
Total elapsed time = 2.408422
Run Complete.
Recieved signal 15, doing TERMINATE_RUNNING_TASKS_THEN_EXIT.
MachinePool::signal(15)
Machine::signal(15)
Machine::cancelThreads() hostname=t520, threads=4
  Cancel thread
  Cancel thread
  Cancel thread
  Cancel thread
Completed Machine::cancelThreads() hostname=t520, threads=4

Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41201#41201





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Torben Dannhauer
Hi,

ah!
vpbmaster calls osgdem to perform all the single processing tasks.

osgdem failed, therefor vpbmaster blacklistes the according host which is 
unfortunately in your case your OS. Now vpbmaster has no machine available and 
stops to process pending tasks.

look in the according *.task file of that task, it cointains the command line 
which is used to start osgdem for that task. Then you can start osgdem with 
that commandline and produce a callstack to get the reason.

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41203#41203





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Roman Grigoriev
Hi,
Maybe you try to reproduce this error that happens only if you try to build 
whole globe. I take world.tif from osgearth data.
vpbmaster --geocentric --POLYGONAL -t world.tif  -o 1.osgb
if I try to build some region all works fine.
Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41207#41207





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Roman Grigoriev
Hi, here is gdb
Starting program: /usr/local/bin/osgdem --run-path /home/i/work/atlantik/earth 
-s build_master.source --record-subtile-on-leaf-tiles -l 2 --task 
tasks/build_root_L0_X0_Y0.task --log logs/build_root_L0_X0_Y0.log
[Thread debugging using libthread_db enabled]
RegisterWindowingSystemInterfaceProxy()
X11WindowingSystemInterface()
GraphicsContext::setWindowingSystemInterface() 0x80821280xbbcf60
Opened DynamicLibrary osgPlugins-3.1.0/osgdb_osg.so
VPBReaderWriter::readNode()
readNode_new()
   found ReaderWriter, readNode_new()
Opened DynamicLibrary libosgTerrain.so
Opened DynamicLibrary osgPlugins-3.1.0/osgdb_serializers_osgterrain.so
Opened DynamicLibrary libosg.so
Constructing PixelBufferObject for image=0x80a93e0
Constructing PixelBufferObject for image=0x80b6238
CullSettings::readEnvironmentalVariables()
Opened DynamicLibrary osgPlugins-3.1.0/osgdb_serializers_osg.so
Now checking for plug-in osgPlugins-3.1.0/osgdb_nvtt.so
osg::Registry::addImageProcessor(ImageProcessor)
Loaded plug-in osgPlugins-3.1.0/osgdb_nvtt.so and located ImageProcessor

Program received signal SIGSEGV, Segmentation fault.
0x00de8fca in std::_Rb_treeosg::ref_ptrEdgeCollapse::Edge, 
osg::ref_ptrEdgeCollapse::Edge, 
std::_Identityosg::ref_ptrEdgeCollapse::Edge , dereference_less, 
std::allocatorosg::ref_ptrEdgeCollapse::Edge  
::_M_erase(std::_Rb_tree_nodeosg::ref_ptrEdgeCollapse::Edge *) ()
   from /usr/local/lib/libosgUtil.so.78

Thank you!

Cheers,
Roman

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41208#41208





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Torben Dannhauer
Hi,

Sorry I do not have time to dive into you seg fault, I showed you how you can 
get the correct osgdem call, now you have to dive into your stack trace with 
gdb and solve it.

As workaround:
I you discovered the whole globe option as problem, then avoid it. if your data 
cover the globe anyway, then osgdem will build the glob without the problematic 
parameter. Use --geocentric to build a round globe and not a flat one.

Good look!

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41209#41209





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Can't build polygonal database with latest VPB an OSG (segmentation fault)

2011-07-06 Thread Wang Rui
Hi Roman,

The EdgeCollapse::Edge belongs to osgUtil::Simplifier, which is used
for simplifying generated polygonal terrain tiles. I wonder if this
process causes the problem and we have to look for the bug into the
simplifier's implementation. Is it possible that you provide the
entire call stack information and where you downloaded the dem and dom
files?

Thanks,

Wang Rui


2011/7/7 Roman Grigoriev grigor...@gosniias.ru:
 Hi, here is gdb
 Starting program: /usr/local/bin/osgdem --run-path 
 /home/i/work/atlantik/earth -s build_master.source 
 --record-subtile-on-leaf-tiles -l 2 --task tasks/build_root_L0_X0_Y0.task 
 --log logs/build_root_L0_X0_Y0.log
 [Thread debugging using libthread_db enabled]
 RegisterWindowingSystemInterfaceProxy()
 X11WindowingSystemInterface()
 GraphicsContext::setWindowingSystemInterface() 0x8082128        0xbbcf60
 Opened DynamicLibrary osgPlugins-3.1.0/osgdb_osg.so
 VPBReaderWriter::readNode()
 readNode_new()
   found ReaderWriter, readNode_new()
 Opened DynamicLibrary libosgTerrain.so
 Opened DynamicLibrary osgPlugins-3.1.0/osgdb_serializers_osgterrain.so
 Opened DynamicLibrary libosg.so
 Constructing PixelBufferObject for image=0x80a93e0
 Constructing PixelBufferObject for image=0x80b6238
 CullSettings::readEnvironmentalVariables()
 Opened DynamicLibrary osgPlugins-3.1.0/osgdb_serializers_osg.so
 Now checking for plug-in osgPlugins-3.1.0/osgdb_nvtt.so
 osg::Registry::addImageProcessor(ImageProcessor)
 Loaded plug-in osgPlugins-3.1.0/osgdb_nvtt.so and located ImageProcessor

 Program received signal SIGSEGV, Segmentation fault.
 0x00de8fca in std::_Rb_treeosg::ref_ptrEdgeCollapse::Edge, 
 osg::ref_ptrEdgeCollapse::Edge, 
 std::_Identityosg::ref_ptrEdgeCollapse::Edge , dereference_less, 
 std::allocatorosg::ref_ptrEdgeCollapse::Edge  
 ::_M_erase(std::_Rb_tree_nodeosg::ref_ptrEdgeCollapse::Edge *) ()
   from /usr/local/lib/libosgUtil.so.78

 Thank you!

 Cheers,
 Roman

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=41208#41208





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org