Hello,
I have a crash in function add(const IdStore&, ObjectT*) in file OSGShaderCacheTree.inl. The problem is that the value type of container IdStore is UInt16. But my model results in storing values greater than 65535. This leads to negative uiCurrIdx indices not tolerated anymore. I have some logging: DEBUG: scv3::add : DEBUG: 65519 DEBUG: DEBUG: scv3::add : DEBUG: 65520 DEBUG: DEBUG: scv3::add : DEBUG: 65521 DEBUG: DEBUG: scv3::add : DEBUG: 65522 DEBUG: DEBUG: scv3::add : DEBUG: 65523 DEBUG: DEBUG: scv3::add : DEBUG: 65524 DEBUG: DEBUG: scv3::add : DEBUG: 65525 DEBUG: DEBUG: scv3::add : DEBUG: 65526 DEBUG: DEBUG: scv3::add : DEBUG: 65527 DEBUG: DEBUG: scv3::add : DEBUG: 65528 DEBUG: DEBUG: scv3::add : DEBUG: 65529 DEBUG: DEBUG: scv3::add : DEBUG: 65530 DEBUG: DEBUG: scv3::add : DEBUG: 65531 DEBUG: DEBUG: scv3::add : DEBUG: 65532 DEBUG: DEBUG: scv3::add : DEBUG: 65533 DEBUG: DEBUG: scv3::add : DEBUG: 65534 DEBUG: DEBUG: scv3::add : DEBUG: 65535 DEBUG: DEBUG: scv3::add : DEBUG: 0 DEBUG: DEBUG: -------------------------------------- DEBUG: for(; uiCurrId < uiLastId; ++uiCurrId) DEBUG: -------------------------------------- DEBUG: scv3::add::vIds[uiCurrId] = 0 DEBUG: scv3::add::uiLevelSub = 65532 DEBUG: scv3::add::uiCurrIdx = -65532 DEBUG: -------------------------------------- DEBUG: -------------------------------------- DEBUG: before crash point DEBUG: -------------------------------------- DEBUG: scv3::add::uiCurrIdx = -65532 DEBUG: scv3::add::uiJumpDist = 32768 DEBUG: scv3::add::LevelBits = 6 DEBUG: scv3::add::uiCurrIdx = -262140 Is this a problem of my model or a problem in the algorithm or should the container's value type be UInt32? Any help is appreciated :-) Best, Johannes ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users