Hi

To visualize a large terrain i tried the OpenSG
contrib source TildeTerrain. Everything works fine but
when i want to use more than one texture for my
terrain with

MaterialPtr mat =makeTerrainTexture("filename.jpg");
tiledTerrain->getMFHeightTextures()->push_back(mat);

i get segmentation faults during execution.
Especially after i crossed getSizeROI()+getSizeROI()+1
tiles.

I used gdb for debugging, but the backtrace differs a
lot from test to test.
For example:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1516591392 (LWP 8198)]
0xa77253bf in
osg::GeoProperty<osg::GeoPTypesUI8PropertyDesc>::getValue
(this=0x828efc8, index=136900552)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl:387
387         return StoredGenericType(_field[index]);
(gdb) backtrace
#0  0xa77253bf in
osg::GeoProperty<osg::GeoPTypesUI8PropertyDesc>::getValue
(this=0x828efc8, index=136900552)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl:387
#1  0xa7537eb4 in osg::RenderAction::dropFunctor
(this=0x8740630, [EMAIL PROTECTED], mat=0x828efc8)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/RenderAction/OSGRenderAction.cpp:745
#2  0xa763ad33 in
osg::MaterialDrawable::renderActionHandler
(this=0x8334740, action=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/NodeCores/Drawables/Base/OSGMaterialDrawable.cpp:117
#3  0xa68408fd in osg::Terrain::renderEnter
(this=0x8334740, action=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/Contrib/Terrain/OSGTerrain.cpp:1262
#4  0xa75fff0c in
osg::TypedTraits2<osg::Action::ResultE,
osg::CPtrRefCallArg<osg::CNodePtr>,
osg::ArgsCollector<osg::Action*> >::callObjectMethod
(pData2=0x8e52994 "X\001\204Š", [EMAIL PROTECTED],
arg2=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/Base/Functors/OSGTypedFunctors2.h:104
#5  0xa75ffe36 in
osg::TypedObjectFunctor2<osg::Action::ResultE,
osg::CPtrRefCallArg<osg::CNodePtr>,
osg::ArgsCollector<osg::Action*>,
osg::DefaultFunctorSizeTraits>::call (this=0x8e52950,
[EMAIL PROTECTED], oArg1=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/Base/Functors/OSGTypedFunctors2.inl:410
#6  0xa752e69b in osg::Action::callEnter
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x8334bf0 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.inl:132
#7  0xa752c804 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x8334bf0 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:315
#8  0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x827bab0 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#9  0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x827bbd0 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#10 0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x827aae0 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#11 0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x827a6c8 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#12 0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x8d0f230 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#13 0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x8d0f350 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#14 0xa752c943 in osg::Action::recurse
(this=0x8740630, node=
---Type <return> to continue, or q <return> to quit---
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x843fc58 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:335
#15 0xa752c4bf in osg::Action::apply (this=0x8740630,
begin=
      {<std::iterator<std::random_access_iterator_tag,
osg::NodePtr, int, osg::NodePtr*, osg::NodePtr&>> =
{<No data fields>}, _M_current = 0x8c734b0}, end=
      {<std::iterator<std::random_access_iterator_tag,
osg::NodePtr, int, osg::NodePtr*, osg::NodePtr&>> =
{<No data fields>}, _M_current = 0x8c734b8}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:255
#16 0xa752c657 in osg::Action::apply (this=0x8740630,
node=
            {<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 136,
_uiParentEPos = 65535, _storeP = 0x843fc58 "š¥Ò§",
static _pRefCountLock = 0x80f72f0}, <No data fields>},
<No data fields>}, <No data fields>}) at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Action/OSGAction.cpp:280
#17 0xa79a6cde in osg::Viewport::render
(this=0x8d08408, action=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Window/OSGViewport.cpp:300
#18 0xa79b189f in osg::Window::renderAllViewports
(this=0x826e1d0, action=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Window/OSGWindow.cpp:1649
#19 0xa79b17d5 in osg::Window::render (this=0x826e1d0,
action=0x8740630)
    at
/home/linip/Desktop/OpenSG/OpenSG/Source/System/Window/OSGWindow.cpp:1626
#20 0x08067683 in osg::SceneManager::redraw
(this=0x8464ef0) at SceneManager.cpp:642

Perhaps someone know the problem and could give me a
hint.

kind regards philipp



       
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to