Game crash when loading smaller script into PB, after looking at a larger script
Solved
- Viewing a larger (many lines) script in the Programmable Block, and having the cursor/caret positioned many lines down (like at the last line of the script), possibly having scrolled down.
- Without leaving the PB editor, then when loading another script that is shorter (fewer lines), it causes SE to crash-to-desktop.
Problem could be, that the cursor/caret is not reset to top-left when loading a newscript into the PB.
From SpaceEngineers.log file:
Thread: 1 -> Exception occured: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Text.StringBuilder.get_Chars(Int32 index) at System.Text.StringBuilderExtensions_Format.AppendSubstring(StringBuilder stringBuilder, StringBuilder append, Int32 start, Int32 count) at Sandbox.Graphics.GUI.MyGuiControlMultilineEditableText.GetCarriageOffset(Int32 idx) at Sandbox.Graphics.GUI.MyGuiControlMultilineText.ScrollToShowCarriage() at Sandbox.Graphics.GUI.MyGuiControlMultilineEditableText.set_Text(StringBuilder value) at Sandbox.Game.Gui.MyGuiScreenEditor.ScriptSelected(String scriptPath) at Sandbox.Game.Gui.MyGuiIngameScriptsPage.OnScriptDownloaded() at ParallelTasks.Parallel.RunCallbacks() at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime) at Sandbox.MySandboxGame.Update() at Sandbox.Engine.Platform.Game.UpdateInternal() at Sandbox.Engine.Platform.Game.RunSingleFrame() at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass1.<Run>b__0() at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at SpaceEngineers.MyProgram.Main(String[] args)
Hello,
Could you please provide us with more information regarding the issue you reported? I wasn't able to reproduce it. If it still happens to you, could you please provide both scripts and eventually also a video with the issue would help us.
Thank you.
Kind Regards
Keen Software House: QA Department
Hello,
Could you please provide us with more information regarding the issue you reported? I wasn't able to reproduce it. If it still happens to you, could you please provide both scripts and eventually also a video with the issue would help us.
Thank you.
Kind Regards
Keen Software House: QA Department
Issue has been fixed in version 188.
Issue has been fixed in version 188.
Replies have been locked on this page!