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

Exception spam in the flight plan window #2158

Closed
eggrobin opened this issue May 11, 2019 · 2 comments · Fixed by #2160
Closed

Exception spam in the flight plan window #2158

eggrobin opened this issue May 11, 2019 · 2 comments · Fixed by #2160
Labels
Milestone

Comments

@eggrobin
Copy link
Member

eggrobin commented May 11, 2019

Under circumstances that I have yet to identify, opening the flight plan window will cause a spam of

[EXC 11:49:27.684] ArgumentNullException: Argument cannot be null.
Parameter name: input
	System.Text.RegularExpressions.Regex.Match (System.String input, Int32 startat)
	System.Text.RegularExpressions.Regex.Match (System.String input)
	System.Text.RegularExpressions.Regex.Match (System.String input, System.String pattern, RegexOptions options)
	System.Text.RegularExpressions.Regex.Match (System.String input, System.String pattern)
	principia.ksp_plugin_adapter.FlightPlanner.TryParseTimeSpan (System.String str, System.TimeSpan& value)
	principia.ksp_plugin_adapter.FlightPlanner.TryParsePlanLength (System.String str, System.Double& value)
	principia.ksp_plugin_adapter.DifferentialSlider.Render (Boolean enabled)
	principia.ksp_plugin_adapter.FlightPlanner.RenderFlightPlan (System.String vessel_guid)
	principia.ksp_plugin_adapter.FlightPlanner.RenderWindow (Int32 window_id)
	UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)
	UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, Int32 instanceID, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)

causing the window to render with no contents and no extent (and thus making the flight plan unusable).

@eggrobin eggrobin added the bug label May 11, 2019
@eggrobin
Copy link
Member Author

This state is persistent across scene changes and save loads. I have put a save exhibiting this behaviour in the usual place.

@pleroy
Copy link
Member

pleroy commented May 11, 2019

I reproduced the problem: this happens if you have a flight plan with no manoeuvres and you switch scenes.

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

Successfully merging a pull request may close this issue.

2 participants