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

Extremely LOUD white noise until game exit after mouse steering #5804

Closed
pcercuei opened this issue Mar 24, 2024 · 6 comments · Fixed by #5812
Closed

Extremely LOUD white noise until game exit after mouse steering #5804

pcercuei opened this issue Mar 24, 2024 · 6 comments · Fixed by #5812

Comments

@pcercuei
Copy link
Contributor

Observed behaviour

And extremely LOUD white noise can be triggered by just playing the game. When it triggers, steering with the keyboard is not possible anymore. The only way to stop the white noise, is to exit back to the main menu.

Expected behaviour

Calm and quiet game session.

Steps to reproduce

  1. Get my savestate from https://app.box.com/s/6mg4zw13oqec83yg6533t5vf43aeg6oi
  2. Load the savestate in the game
  3. Press the "Take off" button on the bottom bar
  4. When in the air, right-click on an empty space of the screen, then drag the mouse. Repeat a few times if needed, until the bug appears.

My pioneer version (and OS):
Pioneer master (7f1cb21)

My output.txt (required) and game save (optional, but recommended)

output.txt

@bszlrd bszlrd changed the title Extremely LOUD white noise until game exit Extremely LOUD white noise until game exit after mouse steering Mar 24, 2024
@bszlrd
Copy link
Contributor

bszlrd commented Mar 24, 2024

Addendum:
I was unable to trigger this with a new game, but it was pretty reliable with the attached save. I was unable to get it with keyboard steering, only with the mouse. It happens with or without the flight assists, and even after you fly for a bit.
Steering controls are completely locked out, both mouse and keyboard. Haven't yet tried with a joystick.

It seems like it doesn't happen after a hyperjump.
Also I noticed that that save sometimes won't load, it says it is corruped (damaged?), then it loads after reselecting the save and pressing of the load button. Or crashes the game without an error message. This happens after loading it once, then exiting back to the main menu. Not sure if it is releated, or a general issue with the loading code.

WARNING: the noise is quite loud on this recording!

pioneer-noisebug.mp4

@p164505
Copy link

p164505 commented Apr 3, 2024

I can't remember if it ever happened with any other ship than the Xylophis, after playing for maybe a few hours, taking off of an orbital station and often during the flight. I can regain rotation control when setting time acceleration to 10x for a few seconds, but only until the rotation stops. Trying to dock in this state or colliding with the orbital station freezes the game for me.
Playing on an up-to-date installation of Artix (linux with OpenRC, glibc) with the newest release(I have not yet tried to compile myself):
https://github.com/pioneerspacesim/pioneer/releases/tag/20240314
Here's my savefile too where I was close to docking if it is of help:
b.gz

@neumond
Copy link
Contributor

neumond commented Apr 3, 2024

Happened to me, made some debugging. Save data contains m_angVel = -nan,-nan,-nan, and many other things related to rotation get NaN poisoning. Subjectively, happens mostly after using autopilot on maximum time speed.

@pcercuei
Copy link
Contributor Author

pcercuei commented Apr 3, 2024

If that matters, I never use the autopilot.

@p164505
Copy link

p164505 commented Apr 3, 2024

If that matters, I never use the autopilot.

The first thing I do in a new game is sell the autopilot. I didn't use it at all in my above save but I still have the issue. I have not tested if using it has any effect but it happened a lot when travelling from an orbital station.
By the way, I also didn't set time acceleration above 1000x because it messed with the physics a little (shifted the prograde indicator a tiny bit when using cruise mode).

@neumond
Copy link
Contributor

neumond commented Apr 3, 2024

Well, looks like when desired mouse direction becomes equal to ship direction, their cross product becomes all zeros, and when it gets normalized, it's all NaNs.

rot_vel = (ship_dir.Cross(dir) * c.m_ship->GetOrient()).Normalized() * tot_speed;

So, to avoid the bug, you must have right mouse button released before blue mouse marker coincides with forward marker.

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

Successfully merging a pull request may close this issue.

4 participants