Skip to content

Stability: GM emergency-restarts often on my machine, due to an "incomplete vertexbuffer state" exception #15939

Description

@gm-bug-reporter

Description

Whenever I'm using the Code Editor 2, or making changes in a room, the GameMaker IDE suddnely closes without any warnings, and reopens automatically, without any error message or anything that I could use to debug where the problem could be. This is becoming tiresome, since it's happening a lot (sometimes even 2 times within a minute), thus making me going veeery cautious like where to put the mouse or where to scroll the code (sometimes it happens, sometimes not).

[16:49:17:638(0b60)] Exception in YoYoStudio.Plugins.CodeEditor2.GUI.TextEditorPanel,Void TextEditorPanel_Render(System.TimeSpan, YoYoStudio.Core.Utils.rect) : System.InvalidOperationException: Attempting to update VertexBuffer which is in an incomplete state
at YoYoStudio.Graphics.VertexBuffer.Update(VertexData _srcdata)
at YoYoStudio.Graphics.VertexManager.Flush()
at YoYoStudio.Graphics.VertexManager.AddVerts[TVertexFormat](TexturedPrimitiveParameters _textureParams1, TexturedPrimitiveParameters _textureParams2, ePrimType _primtype, Int32 _numVerts, IntPtr sourceArrayAddress)
at Graphics.Text.Text.BatchState.End()
at YoYoStudio.Plugins.CodeEditor2.Components.LineNumbersComponent.RenderGutter(TimeSpan deltaTime, rect contentArea, GutterRail rail, VirtualPage page)
at YoYoStudio.Plugins.CodeEditor2.GUI.TextEditorPanel.TextEditorPanel_Render(TimeSpan deltaTime, rect contentArea)
at WeakDelegate(Object, Object[])
at YoYoStudio.Core.Utils.WeakDelegate`1.Invoke(Object[] _args)
[16:49:17:650(0b60)] IDE Exiting: bLogout=False:ForceLogoutOnExit=False:m_isRestarting=True:pcount=1:m_isUpdating=False

Steps To Reproduce

Open a code in Code Editor 2, and scroll it. Also, when it doesn't crash, sometimes it crashes when Feather tries to show suggestions about the code.

Code has a few #region, enums and #macro, along with functions, independently if it's editing code of an object or a script.

It happened also once when editing tiles in room editor.

Which version of GameMaker are you reporting this issue for?

IDE v2026.0.0.16 Runtime v2026.0.0.23

Which operating system(s) are you seeing the problem on?

Windows 10.0.26200.0

fd67ccf7-1da3-4589-a98a-32d82ffda7dd

Activity

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

Metadata

Metadata

Assignees

Labels

projectThis issue has a sample project attached

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions