View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0031619||Runner||Windows (YYC)||Public||2020-02-12 17:46||2020-03-04 09:14|
|Reporter||Dan||Assigned To||Russell Kay|
|Priority||Medium||Severity||B - Major||Reproducibility||100%|
|Platform||Windows YYC||OS||Windows 10||OS Version||1909|
|Target Version||2.3.0||Fixed in Version||2.3.0|
|Summary||0031619: Functions: [YYC] Doesn't always validate the number of arguments passed to script_execute(), can cause knock-on errors|
|Description||YYC doesn't always validate the number of arguments passed to a script via script_execute(), which can then can cause knock-on errors and in some cases crashes. You can see from the sample that in some cases it will catch this, but it appears to be that if the first time script_execute() is called it is given the correct number of arguments or more than is required, then YYC will attempt to always allow it thereafter. As soon as you then call the script with too few arguments it will give the wrong result.|
VM will always show a code-error in-game when the script is called if the number of arguments is not correct.
Expected: YYC does the same as VM and always errors in-game if the argument count is wrong OR we at least we fix why the wrong result is being returned in this sample and we also write out a debug message every time that script_execute() is called with the wrong number of arguments but was allowed to carry on.
|Steps To Reproduce||1. Run the attached sample for Windows VM and observe the in-game error that your arguments are wrong for the line where one has been omitted.|
2. Run it again for Windows YYC and observe the project runs, but that the second result is wrong (it's giving 4 instead of 3, for some unknown reason).
|Additional Information||This came from a YYC crash in https://yoyogames.zendesk.com/agent/tickets/166737 - have asked for the code which caused the crash and will add that seperately later, but the reporter has confirmed this issue was the root of the problem in their project.|
|Tags||No tags attached.|
|1.4 Found In|
|2.x Runtime Found In||184.108.40.2068|
|2.x Runtime Verified In||220.127.116.117|