Tried to set a zero-length GPU buffer

I clicked to place a new town and the game crashed with:
“Failed assertion: Error: Tried to set a zero-length GPU buffer!”

Here is the log:

Checking supported resolutions…
Available Modes
0: 1920 x 1080
1: 1680 x 1050
2: 1600 x 1200
3: 1600 x 1024
4: 1600 x 900
5: 1440 x 900
6: 1366 x 768
7: 1360 x 768
8: 1280 x 1024
9: 1280 x 960
10: 1280 x 800
11: 1280 x 768
12: 1280 x 720
13: 1152 x 864
14: 1024 x 768
15: 800 x 600
16: 720 x 576
17: 720 x 480
18: 640 x 480
Initialising [1024x768] resolution…
Found 2 displays:
Display #0 Generic PnP Monitor (1920x1080)

Display #1 Generic PnP Monitor (1680x1050)

OpenGL Context:
Vendor: NVIDIA Corporation
Renderer: GeForce GTX 1060 6GB/PCIe/SSE2
Version: 3.3.0 NVIDIA 372.70
Shading Language Version: 3.30 NVIDIA via Cg compiler
== Begin OpenGL limits ==
Max 3D texture size: 16384
Max array texture layers: 2048
Max clip distances: 8
Max samples in a color multisample texture: 32
Maximum atomic counters: 98304
Maximum fragment shader uniform components: 233472
Maximum geometry shader uniform components: 231424
Maximum combined texture image units: 192
Maximum combined uniform blocks: 84
Maximum cube map dimensions: 32768
Maximum samples in a multisample depth or depth-stencil texture: 32
Maximum simultaneous draw buffers: 8
Maximum simultaneous draw buffers with dual-source blending: 1
Recommended maximum number of vertex array indices: 1048576
Recommended maximum number of vertex array vertices: 1048576
Max fragment shader input components: 128
Max fragment shader uniform components: 4096
Maximum texels in the texel array of a texture buffer: 134217728
Maximum supported texture image units in a fragment shader: 32
Maximum texture size (rough estimate): 32768
Maximum uniform buffer binding points: 84
Maximum uniform block size: 65536
Maximum uniform locations: 65536
Maximum varying components: 124
Maximum floating point varying components: 124
Maximum atomic counters in vertex shaders: 16384
Maximum vertex attributes in vertex shader: 16
Maximum active shader storage blocks in a vertex shader: 16
Maximum texture image units in vertex shader: 32
Maximum uniform components in vertex shader: 4096
Maximum output components in vertex shader: 128
Maximum uniform blocks per vertex shader: 14
Maximum simultaneous viewports: 16
Maximum MSAA samples: 32
== End OpenGL limits ==
VSync: ENABLED
TextureUnits: 32 from vertex shader, 192 total
Screen Ratio: 1.333333
– Initialising game "MMORPG"
TextInput was enabled by default; turning it off until we need it!
No joystick found. Using keyboard input.
Shown
Exposed
Event 0: Path event:/UI/window close end: min range 0.000000: max range 0.000000
Event 1: Path event:/UI/button slot deselect: min range 0.000000: max range 0.000000
Event 2: Path event:/UI/button slot desocket: min range 0.000000: max range 0.000000
Event 3: Path event:/old/general click: min range 0.000000: max range 0.000000
Event 4: Path event:/UI/general cancel: min range 0.000000: max range 0.000000
Event 5: Path event:/Title screens/loading screen world appear: min range 0.000000: max range 0.000000
Event 6: Path event:/UI/window open start: min range 0.000000: max range 0.000000
Event 7: Path event:/UI/button slot socket: min range 0.000000: max range 0.000000
Event 8: Path event:/Title screens/loading screen whoosh 01: min range 20.000000: max range 300.000000
Event 9: Path event:/Title screens/loading screen whoosh 02: min range 16.000000: max range 65.000000
Event 10: Path event:/Title screens/loading screen launch: min range 0.000000: max range 0.000000
Event 11: Path event:/UI/general notification: min range 0.000000: max range 0.000000
Event 12: Path event:/Title screens/loading screen white flash: min range 0.000000: max range 0.000000
Event 13: Path event:/UI/button click: min range 0.000000: max range 0.000000
Event 14: Path event:/UI/window close start: min range 0.000000: max range 0.000000
Event 15: Path event:/old/button release toggle on: min range 0.000000: max range 0.000000
Event 16: Path event:/UI/window open end: min range 0.000000: max range 0.000000
Event 17: Path event:/UI/window looping: min range 0.000000: max range 0.000000
Event 18: Path event:/Title screens/loading screen loop: min range 0.000000: max range 0.000000
Event 19: Path event:/UI/button click up new field: min range 0.000000: max range 0.000000
Bus 0: Path ‘bus:/UI/UI_UnD’: Volume: 1.000000
Bus 1: Path ‘bus:/UI’: Volume: 1.000000
Bus 2: Path ‘bus:/UI/UI_d1’: Volume: 1.000000
Bus 3: Path ‘bus:/UI/UI_d2’: Volume: 1.000000
Bus 4: Path ‘bus:/Reverb’: Volume: 1.000000
Bus 5: Path ‘bus:/’: Volume: 1.000000
Param 0: dramaticMIX [0.00-1.00] (default 0.00)
Rebuild front plate mesh
Rebuild front plate mesh
Unable to find requested power "TerrainEdit"
Unable to find requested power "ShapeEdit"
Unable to find requested power "ColorEdit"
Unable to find requested power "Build"
Unable to find requested power "Terrain"
Unable to find requested power "EditSelect"
Unable to find requested power "EditSelectMulti"
Unable to find requested power "Buildings"
Unable to find requested power "Roads"
Unable to find requested power "CastleBuild"
Unable to find requested power "NPCs"
Unable to find requested power "Town Edit"
Unable to find requested power "Destroy Town"
Unable to find requested power "Build Capital"
Unable to find requested power "Ability0"
Unable to find requested power "Ability1"
Unable to find requested power "Ability2"
Unable to find requested power "Ability3"
Unable to find requested power "Ability4"
Unable to find requested power "TerrainEdit"
Unable to find requested power "ShapeEdit"
Unable to find requested power "ColorEdit"
Unable to find requested power "Build"
Unable to find requested power "Terrain"
Unable to find requested power "EditSelect"
Unable to find requested power "EditSelectMulti"
Unable to find requested power "Buildings"
Unable to find requested power "Roads"
Unable to find requested power "CastleBuild"
Unable to find requested power "NPCs"
Unable to find requested power "Town Edit"
Unable to find requested power "Destroy Town"
Unable to find requested power "Build Capital"
Unable to find requested power "Ability0"
Unable to find requested power "Ability1"
Unable to find requested power "Ability2"
Unable to find requested power "Ability3"
Unable to find requested power "Ability4"
Failed assertion: Error: Tried to set a zero-length GPU buffer!
Failed condition: (size)
at VS_RenderBuffer.cpp:101

Doesn’t seem repeatable. Didn’t crash next time I tried.

Can you confirm that you’re on the latest build? (v0.12.28) This report doesn’t seem to have been sent to me via the crash reporter, so I’m guessing you might not have set your game to the ‘test’ beta branch in Steam, and so are still on an older build? (Right-click on the game in the Library list, choose ‘Properties’, ‘Betas’ tab, and choose ‘test’ from the drop-down menu)

I think I fixed this bug a few versions ago. Can you confirm that you’re on the latest version? Thanks! :slight_smile:

Wow, I’m sorry! I was most certainly on the old build. I don’t do too much gaming on steam :slight_smile:

Phew! Good to know. If you have it happen again under the new build, please let me know! :slight_smile: