StartDrawing(ScreenOutput()) the specified output is NULL
Posted: Mon Sep 08, 2025 9:32 pm
I should first say that I am using PB 5.73 cause I want the original backend for now.
Anyway, I am making a game in PB that uses an OpenWindowedScreen(). Now for some really strange reason I can't figure out (nor can ChatGPT - it gives me random irrelevant stuff) why the call StartDrawing(ScreenOutput()) is failing randomly as if the window is no longer in existence, but I do not close the window or anything. The exact error is "StartDrawing(): The specified output is NULL (0 value)." It happens at random times throughout gameplay. It tends to happen after about 3 minutes, but it varies a bit. It's one of those scary intermittent problems that seems to have no rhyme or rhythm. Has anyone encountered anything like this before?
I will post the source of the game if I have to, but I wasn't planning on making the game open source. It's a pretty simple game, so I don't see why such a thing is happening.
Anyway, I am making a game in PB that uses an OpenWindowedScreen(). Now for some really strange reason I can't figure out (nor can ChatGPT - it gives me random irrelevant stuff) why the call StartDrawing(ScreenOutput()) is failing randomly as if the window is no longer in existence, but I do not close the window or anything. The exact error is "StartDrawing(): The specified output is NULL (0 value)." It happens at random times throughout gameplay. It tends to happen after about 3 minutes, but it varies a bit. It's one of those scary intermittent problems that seems to have no rhyme or rhythm. Has anyone encountered anything like this before?
I will post the source of the game if I have to, but I wasn't planning on making the game open source. It's a pretty simple game, so I don't see why such a thing is happening.