View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0022507||Runner||[All Projects] Functions||Public||2016-07-11 10:26||2016-11-30 14:42|
|Reporter||MaddeMichael||Assigned To||Mike Rennie|
|Priority||Medium||Severity||A - Crash/Hang||Reproducibility||100%|
|Platform||Windows||OS||Windows 8||OS Version|
|Target Version||Fixed in Version|
|Summary||0022507: Functions: Runner Crash on "vertex_format_delete"|
|Description||If vertex_format_delete is performed upon a vertex format which is used by a drawable (e.g at least 3 vertices specified for a triangle list) vertex buffer that is actually drawn, the runner crashes.|
Initially, I'd assumed that vertex format information had been copied into the buffer, so I could delete the format after I'd built the buffer. Upon further thinking, that could easily not be the case.
If the vertex format should not be deleted unless all vertex buffers that use the format are no longer being used, meaning this behaviour would be expected, then I believe the documentation for vertex_format_delete should be updated with a note warning this, to make things a little clearer, as well as show a proper crash report stating that a non-existing vertex format is being used.
If, however, this behaviour is unexpected, here is some code that always crashes for me (It's not enough to be worth attatching a project)
I've attatched a gmz project now, including 2 potential crashes. One is the crash I believe is expected (deleting a format that is still in use), contained within an object called "ExpectedCrash"
The other crash could be what was happening before, contained within an object called "Unexpected Crash" - When more than one format has been created, you cannot delete more than one without a crash. There are more details in the code comments, but that's a basic summary.
|Steps To Reproduce||1) Run the attached .gmz you'll get the crash from the ExpectedCrash object|
2) Swap the room order
3) You'll get the crash from the UnexpectedCrash object
|Additional Information||Original helpdesk ticket: http://help.yoyogames.com/tickets/107328|
|1.4 Found In||1.4.1757|
|2.x Runtime Found In|
|2.x Runtime Verified In|