ogre-next icon indicating copy to clipboard operation
ogre-next copied to clipboard

Camera rendering specified visible mask object crash

Open ChenTianSky opened this issue 11 months ago • 1 comments

HI! I have a camera that specifies which objects are visible, using the setVisibilityFlags interface. When I add multiple objects to the camera, some visible objects that were not initially rendered by the camera are temporarily created and added to the scene, and the camera's mWorkSpace->_update(); crashes. error in image

sharedData is NULL?It's very strange.

ChenTianSky avatar Apr 01 '24 12:04 ChenTianSky

Hi!

Could you post the callstack of the crash?

A way to reproduce this issue would help a lot.

Other things you can try:

  1. Trying other APIs (Vulkan, OpenGL, Metal) may reveal the cause of the problem if it crashes somewhere else.
  2. Visual Studio supports ASAN. Building both OgreNext and your project with ASAN enabled will help you detect memory corruption errors earlier.

darksylinc avatar Apr 01 '24 18:04 darksylinc