|Anonymous | Login | Signup for a new account||2017-05-25 03:57 BST|
|My View | View Issues | Roadmap | My Account|
|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|
|Assigned To||Mike Rennie|
|Priority||Medium||Severity||A - Crash/Hang||Reproducibility||100%|
|Platform||Windows||OS||Windows 8||OS 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 [^]|
|Runtime Version Verified In|
|Attached Files||VertexFormatCrash.gmz [^] (9,145 bytes) 2016-07-11 10:28|
Mike Rennie (Developer)
An error message is now shown if you try to use a vertex format that has been freed.
The crash in the second example has also been fixed.
|Copyright © 2000 - 2017 MantisBT Team|