OGRECave/ogre-next

Camera rendering specified visible mask object crash

ChenTianSky opened this issue · 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.

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.