View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0019022||Runner||[All Projects] Windows||Public||2015-10-08 11:19||2016-12-15 12:27|
|Reporter||ry||Assigned To||Russell Kay|
|Priority||Medium||Severity||A - Crash/Hang||Reproducibility||100%|
|Platform||Windows||OS||Windows 8||OS Version|
|Target Version||Fixed in Version|
|Summary||0019022: Windows: [show_error() on game startup will cause a runner crash when clicking Abort]|
|Description||If in a persistent object, you switch to another room, then, in the same event, attempt to access any of the instances in the room, they have not yet been initialized.|
If this is intended, please add some information on this in the documentation for room_goto, as well as any other relevant documents.
|Steps To Reproduce||1) Run the project supplied|
2) Click abort when the error is shown
3) Observe the game crashes
|Additional Information||Original helpdesk ticket: http://help.yoyogames.com/tickets/94965|
|1.4 Found In||1.4.1657|
|2.x Runtime Found In|
|2.x Runtime Verified In|
tmp.gmz (7,098 bytes)
Your actual issue/code is incorrect and not a bug - you do not shift immediately on calling room_goto(); you shift at the end of that event/step. So your second line will always return that no instance of the second object exist, as you're not in room1 at that point.
You are correct that the manual does not explicily state this for the room-changing functions, however, so we'll get this information added. Thanks.
Also, in running your program we started reproducing game crashes when dismissing the error prompt where it has been called in the Create event, which is why the issue has been passed on for investigation as a A class. Simply moving the show_error back a step using an alarm, etc., fixes the crash.
||Fixed in SVN|