Closed osrf-migration closed 11 years ago
Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).
Looks like a threading issue. Ogre is not very thread safe and usually complains if resources are being created/deleted from a different thread. In this case, the compositor resources are being deleted from outside the main rendering thread.
I created a branch to verify this by moving the sensor removal call to the main update function. Deleting the camera here doesn't seem to crash here.
Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).
@iche033: awesome, thanks! I'll work with approach and merge it into camera_noise
.
Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).
Merged delayed removal code from camera_noise_destroy
to camera_noise
and updated pull request #412
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
Original report (archived issue) by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).
Using the camera noise support from pull request #412, deleting a noisy camera causes a segfault. Backtrace below. Deleting a non-noisy camera doesn't have this problem. Must be something with the compositor chain resources.