Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CinematicModel:SetCameraPosition() may crash the game when called with the parameters 1, 0, 0 #685

Open
Ghostopheles opened this issue Nov 20, 2024 · 0 comments

Comments

@Ghostopheles
Copy link

Calling CinematicModel:SetCameraPosition(1, 0, 0) on a frame with a visible model crashes the game with a FLT_DIVIDE_BY_ZERO error.

Unsure if this is a new bug in 11.0.7 or if it's just a test build-only thing. The method works as you'd expect on live (11.0.5.57637).

Repro

local f = CreateFrame("CinematicModel", nil, UIParent);
f:SetPoint("CENTER");
f:SetSize(800, 800);
f:SetUnit("player");
f:SetCameraPosition(1, 0, 0);

or a chat command

/run local f=CreateFrame("CinematicModel", nil, UIParent);f:SetPoint("CENTER");f:SetSize(800, 800);f:SetUnit("player");f:SetCameraPosition(1, 0, 0);

Tested on 11.0.5.57637 (no crash) and 11.0.7.57528 (crash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant