Re: [osg-users] [Crash issue] How to add&remove drawable (geometry) property.

2018-07-26 Thread Jinh Tang
Hi Robert, thanks a lot! I tried single thread, but it can meet project requirement, as we may have 500+ meshes need to update. each mesh has 12000+ points. the main GUI thread will be blocked for 10+ seconds besides, I already set the viewer to use SingleThreaded. paste my code of i

Re: [osg-users] [Crash issue] How to add&remove drawable (geometry) property.

2018-07-26 Thread Robert Osfield
Hi Jinh, First thing I would try is to run your application single threaded. If this fixes the crash then it would indicate a threading issue with how you are going about adding/remove elements of the scene graph. You don't describe any of details of what threads are doing what so I can't specula

[osg-users] [Crash issue] How to add&remove drawable (geometry) property.

2018-07-26 Thread Jinh Tang
Hi, I am doing them real-time rendering application development with Qt + OSG. I created several threads to create new Geometry and in GUI - main threads, try to remove the old one and add new ones. 1, already set node and geometry to user dynamic. geometry->setDataVariance(osg::Object::DYN