cyberjunk / meridian59-dotnet

New 3D client and tools for Meridian 59
GNU General Public License v3.0
34 stars 36 forks source link

Camera-related StackOverflowException. #320

Open skittles1 opened 4 years ago

skittles1 commented 4 years ago

There is a StackOverflowException that can be triggered by walking to/teleporting to a specific location in the Arena of Kraanan while in 3rd person mode, or moving there and then moving the camera from 1st person to 3rd person mode.

CameraListener::objectMoved is called with an object with name "AvatarCamera", this function then calls ControllerInput::PerformMouseOver which makes the call to getCameraToViewportRay on line 150, however this call leads back to objectMoved. This loops until the client crashes.

Coordinates are row 16, finerow 42, col 19, finecol 54. Not entirely sure what I should do (if anything) to fix this, or if you wanted to have a look at it?

Also if you have some free time to pop into discord, there's 3 or 4 other Ogre crashes that we're having trouble tracking down (I have some log files from players but they don't include enough information as far as I can tell).