View Issue Details

IDProjectCategoryView StatusLast Update
0028061RunnerWindows (YYC)Public2019-02-13 13:35
ReporterYellowAfterlifeAssigned ToRussell Kay 
PriorityMediumSeverityB - MajorReproducibility100%
Status ClosedResolutionUnable To Reproduce 
PlatformWindowsOSWindows 8OS Version8.1
Product VersionPre-2.1.3 
Target VersionFixed in Version 
Summary0028061: [Windows YYC] Under specific circumstances, returned number becomes `undefined`
DescriptionA recent regression, somewhat concerning.

A simple `return tj_decode_number(c)` turns the returned value into `undefined` in process.
Assigning it into intermediate variable `var num1 = tj_decode_number(c); return num1` fixes the issue.

1.99.533: OK
1.4.1757: Presumably OK
1.4.1773: Broken
7.7.1566: Broken
Steps To Reproduce1. Open project, run on Windows-VM. Output is { { 1 }, }
2. Run on Windows-YYC. Output is { { undefined }, }
3. Open extensions/tjson/tjson.native.gml, uncomment block on line 447, save.
4. Clear cache.
5. Run on Windows-YYC again. Output is { { 1 }, }
Additional InformationI have inspected the generated C++ code, but was not able to spot anything out of ordinary - the existing scheme with assigning the returned value into `result` seems to be in place for this in particular.

If needed, can do a pass at cutting out code that is not directly related to the issue.
TagsNo tags attached.
1.4 Found In7.7.1566
2.x Runtime Found In2.1.0.136
2.x Runtime Verified In2.1.1.1

Activities

Russell Kay

2018-05-22 22:23

Manager   ~0059983

Unable to reproduce in v9.9.1.1039

YellowAfterlife

2018-06-26 13:01

Developer   ~0060638

Made a minimal reproduction case. Happens in 2.1.4.218, doesn't happen in 9.9.1.1071

Comes down to:
var l_b = argument[0];
var l_t = buffer_read(l_b, buffer_u8);
switch (l_t) { // if you just do buffer_read(l_b, buffer_u8) here, it's all good.
    case 1: return buffer_read(l_b, buffer_string);
    case 2: return buffer_read_any(l_b);
    default: return "no";
}


a_bug.yyz (18,572 bytes)

Dan

2019-02-13 13:35

Adminstrator   ~0063049

Mass-closing as per the Resolution of Unable To Reproduce and because many of these reports are very old / relate to GM: S 1.4.

If the comment from the dev above says this report was resolved because there was no sample, but you still have this issue in a CURRENT version of GMS2, please do submit a Helpdesk ticket and give us a sample project and we will add a new bug report with the fresh info.