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

r_aspectRatio -1 crashes the engine when trying to connect to a server #70

Closed
motorsep opened this issue May 14, 2013 · 11 comments
Closed

Comments

@motorsep
Copy link

Was trying to test multiplayer again yesterday, and got this:

assertion fail!
Game_local.cpp
Line 2767
Expression ( fov_x > 0 ) && ( fov_y > 0)

Windows 7 Pro 64bit (I recall the other guy had Linux)

setting r_aspectRatio to any other available value solves the crash, but doesn't solve having autodetection of aspect ratio working.

@DanielGibson
Copy link
Member

I'll try to reproduce that later.
Was this in windowed or fullscreen mode? what resolution?

On Tue, May 14, 2013 at 11:39 PM, motorsep notifications@github.com wrote:

Was trying to test multiplayer again yesterday, and got this:

assertion fail!
Game_local.cpp
Line 2767
Expression ( fov_x > 0 ) && ( fov_y > 0)

Windows 7 Pro 64bit (I recall the other guy had Linux)

setting r_aspectRatio to any other available value solves the crash, but
doesn't solve having autodetection of aspect ratio working.


Reply to this email directly or view it on GitHubhttps://github.com//issues/70
.

@motorsep
Copy link
Author

windowed mode, 1280x720

@DanielGibson
Copy link
Member

This seems to be a known bug, see

// FIXME: somehow, this is happening occasionally

(that comment is from the originally released source)

If I find some time and motivation I'll try to investigate it further

@motorsep
Copy link
Author

Thanks

@DanielGibson
Copy link
Member

Please replace idGameLocal::CalcFov() from neo/game/Game_local.cpp with https://gist.github.com/DanielGibson/5595590 and post the output.
Ideally you run a debug build in a debugger and also post a stacktrace

@DanielGibson
Copy link
Member

Any news?

@motorsep
Copy link
Author

No, not yet.. I am not sure whether it was game code causing it or something else. Still under investigation.

@Wintch
Copy link

Wintch commented Jun 23, 2015

You can check my horrible solution here:
https://github.com/Wintch/dhewm3/blob/master/neo/game/Game_local.cpp
I had this problem with dedicated server (lacks FOV at all, so assert pops up)

@DanielGibson
Copy link
Member

did you try https://gist.github.com/DanielGibson/5595590 to get some more infos?

I haven't looked into this issue in years because the original reporter failed to deliver more information..

@Wintch
Copy link

Wintch commented Jun 24, 2015

I can test it, no problem. my code is just dhewm3's fork with minor changes, so it is still a valid environment.
Spawn dedicated server, join the game, dedicated output:

ratio_x = 0.000000, ratio_y = 0.000000

drapded: /home/me/drap/dhewm3/trunk/neo/game/Game_local.cpp:2424: void idGameLocal::CalcFov(float, float&, float&) const: Assertion `ratio_x > 0 && ratio_y > 0' failed.
Aborted

@DanielGibson
Copy link
Member

I couldn't reproduce this.. but I added a workaround for the case that ratio_x or ratio_y is 0 anyway.
Please reopen if you still get this crash with the latest code.

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

No branches or pull requests

3 participants