OGRECave / ogre-next

aka ogre v2 - scene-oriented, flexible 3D C++ engine
https://ogrecave.github.io/ogre-next/api/latest
Other
1.09k stars 235 forks source link

Camera rendering specified visible mask object crash #438

Open ChenTianSky opened 8 months ago

ChenTianSky commented 8 months ago

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.

darksylinc commented 8 months ago

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.