[email protected]

On Thu, Jan 26, 2012 at 10:20 PM, Robert Osfield
<[email protected]>wrote:

> HI Mohammed,
>
> The trace points to the OpenGL driver failing when trying to create the
> pbuffer.
>
> osgdem uses an OpenGL graphics context to create the GL compressed
> textures, you can avoid the use of the GL driver if you using NVTT.
> To use this you'll need to install NVTT SDK and rebuild VPB against
>
how to rebuilt VPB agains NVTT SDK

> it.  When running osgdem you'll need to add the --compressor-nvtt
> command line option to tell osgdem to use NVTT.
>
> Alternatively you could avoid use of OpenGL compressed textures by
> using the --RGB-24 command option.
>
> Or... just install an non broken OpenGL driver.
>
> Robert.
>
> On 26 January 2012 16:37, Mohammed Rashad <[email protected]>
> wrote:
> > Hi Robert,
> >
> > this is the valgrind output
> >
> > valgrind osgdemd --xx 10 --yy 10 -t ps_texture_16k.png --xx 10 --yy 10 -d
> > ps_height_16k.png  -l 8 -v 0.1 -o puget.ive -a pegout.osga
> > ==12136== Memcheck, a memory error detector
> > ==12136== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
> > ==12136== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
> > copyright info
> > ==12136== Command: osgdemd --xx 10 --yy 10 -t ps_texture_16k.png --xx 10
> > --yy 10 -d ps_height_16k.png -l 8 -v 0.1 -o puget.ive -a pegout.osga
> > ==12136==
> > Warning: archive option -a is temporarily disabled, building with
> archive.
> > --xx 10
> > --yy 10
> > -t ps_texture_16k.png
> > ADD: ps_texture_16k.png
> > loaded layer ps_texture_16k.png
> > --xx 10
> > --yy 10
> > -d ps_height_16k.png
> > ADD: ps_height_16k.png
> > loaded layer ps_height_16k.png
> > -o puget.ive
> > Adding terrainTile
> > DataSet::_run() 0 0
> > Now checking for plug-in osgPlugins-3.0.0/osgdb_nvtt.so
> > DataSet::assignDestinationCoordinateSystem() : assigning first source
> file
> > as the destination coordinate system
> > started DataSet::createDestination(8)
> > Time for after_reproject 0.012247
> > DataSet::assignDestinationCoordinateSystem() : assigning first source
> file
> > as the destination coordinate system
> > local_extents = xMin() 0.000000 163850.000000
> >                 yMin() 0.000000 163850.000000
> > AR=1.000000 C1=1 R1=1
> > createNewDestinationGraph
> > Time for _destinationGraph->computeMaximumSourceResolution() = 1.153935
> > Time for createDestinationGraph 4.648750
> > Time for after_computeNeighbours 2.396875
> > completed DataSet::createDestination(8)
> > There are 2 contributing source files:
> >     ps_height_16k.png
> >     ps_texture_16k.png
> > ==12136== Syscall param ioctl(generic) points to uninitialised byte(s)
> > ==12136==    at 0x613A619: ioctl (syscall-template.S:82)
> > ==12136==    by 0x714304A: drmCommandWriteRead (in /lib/libdrm.so.2.4.0)
> > ==12136==    by 0x4315B7E: radeon_cs_manager_gem_ctor (in
> > /lib/libdrm_radeon.so.1.0.0)
> > ==12136==    by 0x7DEA1AF: r600InitCmdBuf (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE9E26: r600CreateContext (in
> /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE0C3A: ??? (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE0CD5: ??? (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x5DC143C: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x5D99E6A: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x5D9A30D: glXCreateContext (in
> /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x521D033: osgViewer::PixelBufferX11::init() (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x521C17F:
> > osgViewer::PixelBufferX11::PixelBufferX11(osg::GraphicsContext::Traits*)
> (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==  Address 0xbe8c0bf4 is on thread 1's stack
> > ==12136==
> > ==12136== Syscall param ioctl(generic) points to uninitialised byte(s)
> > ==12136==    at 0x613A619: ioctl (syscall-template.S:82)
> > ==12136==    by 0x714304A: drmCommandWriteRead (in /lib/libdrm.so.2.4.0)
> > ==12136==    by 0x7DEA22F: r600InitCmdBuf (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE9E26: r600CreateContext (in
> /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE0C3A: ??? (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x7DE0CD5: ??? (in /usr/lib/dri/r600_dri.so)
> > ==12136==    by 0x5DC143C: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x5D99E6A: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x5D9A30D: glXCreateContext (in
> /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x521D033: osgViewer::PixelBufferX11::init() (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x521C17F:
> > osgViewer::PixelBufferX11::PixelBufferX11(osg::GraphicsContext::Traits*)
> (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x52188AF:
> >
> X11WindowingSystemInterface::createGraphicsContext(osg::GraphicsContext::Traits*)
> > (in /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==  Address 0xbe8c0c38 is on thread 1's stack
> > ==12136==
> > ==12136== Invalid read of size 4
> > ==12136==    at 0x5DBD0B0: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x521D60E: osgViewer::PixelBufferX11::init() (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x521C17F:
> > osgViewer::PixelBufferX11::PixelBufferX11(osg::GraphicsContext::Traits*)
> (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x52188AF:
> >
> X11WindowingSystemInterface::createGraphicsContext(osg::GraphicsContext::Traits*)
> > (in /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x4EB4866:
> >
> osg::GraphicsContext::createGraphicsContext(osg::GraphicsContext::Traits*)
> > (in /usr/local/lib/libosg.so.3.0.0)
> > ==12136==    by 0x41B356F:
> > MyGraphicsContext::MyGraphicsContext(vpb::BuildLog*) (DataSet.cpp:2518)
> > ==12136==    by 0x41AE8E9: vpb::DataSet::_run() (DataSet.cpp:3243)
> > ==12136==    by 0x41ADE7B: vpb::DataSet::run() (DataSet.cpp:3102)
> > ==12136==    by 0x804E1D9: main (osgdem.cpp:288)
> > ==12136==  Address 0xb8 is not stack'd, malloc'd or (recently) free'd
> > ==12136==
> > ==12136==
> > ==12136== Process terminating with default action of signal 11 (SIGSEGV)
> > ==12136==  Access not within mapped region at address 0xB8
> > ==12136==    at 0x5DBD0B0: ??? (in /usr/lib/mesa/libGL.so.1.2)
> > ==12136==    by 0x521D60E: osgViewer::PixelBufferX11::init() (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x521C17F:
> > osgViewer::PixelBufferX11::PixelBufferX11(osg::GraphicsContext::Traits*)
> (in
> > /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x52188AF:
> >
> X11WindowingSystemInterface::createGraphicsContext(osg::GraphicsContext::Traits*)
> > (in /usr/local/lib/libosgViewer.so.3.0.0)
> > ==12136==    by 0x4EB4866:
> >
> osg::GraphicsContext::createGraphicsContext(osg::GraphicsContext::Traits*)
> > (in /usr/local/lib/libosg.so.3.0.0)
> > ==12136==    by 0x41B356F:
> > MyGraphicsContext::MyGraphicsContext(vpb::BuildLog*) (DataSet.cpp:2518)
> > ==12136==    by 0x41AE8E9: vpb::DataSet::_run() (DataSet.cpp:3243)
> > ==12136==    by 0x41ADE7B: vpb::DataSet::run() (DataSet.cpp:3102)
> > ==12136==    by 0x804E1D9: main (osgdem.cpp:288)
> > ==12136==  If you believe this happened as a result of a stack
> > ==12136==  overflow in your program's main thread (unlikely but
> > ==12136==  possible), you can try to increase the size of the
> > ==12136==  main thread stack using the --main-stacksize= flag.
> > ==12136==  The main thread stack size used in this run was 8388608.
> > ==12136==
> > ==12136== HEAP SUMMARY:
> > ==12136==     in use at exit: 14,748,078 bytes in 56,570 blocks
> > ==12136==   total heap usage: 67,158 allocs, 10,588 frees, 19,540,199
> bytes
> > allocated
> > ==12136==
> > ==12136== LEAK SUMMARY:
> > ==12136==    definitely lost: 0 bytes in 0 blocks
> > ==12136==    indirectly lost: 0 bytes in 0 blocks
> > ==12136==      possibly lost: 4,423,956 bytes in 41,567 blocks
> > ==12136==    still reachable: 10,324,122 bytes in 15,003 blocks
> > ==12136==         suppressed: 0 bytes in 0 blocks
> > ==12136== Rerun with --leak-check=full to see details of leaked memory
> > ==12136==
> > ==12136== For counts of detected and suppressed errors, rerun with: -v
> > ==12136== Use --track-origins=yes to see where uninitialised values come
> > from
> > ==12136== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 188 from
> 14)
> > Segmentation fault
> >
> >
> >
> > On Thu, Jan 26, 2012 at 2:30 PM, Robert Osfield <
> [email protected]>
> > wrote:
> >>
> >> Hi Mohammed,
> >>
> >> Could you run osgdem without the -a option, and also run osgdem within
> >> a debugger so you can get the stack trace where it crashes.
> >>
> >> Thanks,
> >> Robert.
> >>
> >> On 26 January 2012 00:08, Mohammed Rashad <[email protected]>
> >> wrote:
> >> >
> >> > osgdem --xx 10 --yy 10 -t ps_texture_16k.tif --xx 10 --yy 10 -d
> >> > ps_height_16k.tif  -l 8 -v 0.1 -o puget.ive -a pegout.osga
> >> > Warning: archive option -a is temporarily disabled, building with
> >> > archive.
> >> > --xx 10
> >> > --yy 10
> >> > -t ps_texture_16k.tif
> >> > ADD: ps_texture_16k.tif
> >> > loaded layer ps_texture_16k.tif
> >> > --xx 10
> >> > --yy 10
> >> > -d ps_height_16k.tif
> >> > ADD: ps_height_16k.tif
> >> > loaded layer ps_height_16k.tif
> >> > -o puget.ive
> >> > Adding terrainTile
> >> > DataSet::_run() 0 0
> >> > Now checking for plug-in osgPlugins-3.0.0/osgdb_nvtt.so
> >> > DataSet::assignDestinationCoordinateSystem() : assigning first source
> >> > file
> >> > as the destination coordinate system
> >> > started DataSet::createDestination(8)
> >> > Time for after_reproject 0.000008
> >> > DataSet::assignDestinationCoordinateSystem() : assigning first source
> >> > file
> >> > as the destination coordinate system
> >> > local_extents = xMin() 0.000000 163850.000000
> >> >                 yMin() 0.000000 163850.000000
> >> > AR=1.000000 C1=1 R1=1
> >> > createNewDestinationGraph
> >> > Time for _destinationGraph->computeMaximumSourceResolution() =
> 0.005384
> >> > Time for createDestinationGraph 0.038835
> >> > Time for after_computeNeighbours 0.005547
> >> > completed DataSet::createDestination(8)
> >> > There are 2 contributing source files:
> >> >     ps_height_16k.tif
> >> >     ps_texture_16k.tif
> >> > Segmentation fault
> >> >
> >> > --
> >> > Regards,
> >> >    Rashad
> >> >
> >> >
> >> > _______________________________________________
> >> > osg-users mailing list
> >> > [email protected]
> >> >
> >> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >> >
> >> _______________________________________________
> >> osg-users mailing list
> >> [email protected]
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> >
> >
> > --
> > Regards,
> >    Rashad
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Regards,
   Rashad
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to