View Issue Details

IDProjectCategoryView StatusLast Update
0031666RunnerHTML5Public2020-06-29 10:23
ReporterPatrick RocheAssigned ToFritz 
PriorityLowSeverityB - MajorReproducibility100%
Status AssignedResolutionOpen 
PlatformWindowsOS10OS Version
Product Version 
Target VersionFixed in Version 
Summary0031666: HTML5: Buffers loaded with buffer_load() are corrupted, buffer_read(...buffer_string) hangs
DescriptionWhen loading a file using buffer_load(), the returned data is corrupted. This can be seen by reading out bytes from the buffer and trying to reconstruct an expected string.

Additionally, trying to read a string from the buffer using buffer_read() causes the game to hang. This occurs with both buffer_string and buffer_text.

Neither of these bugs occur if using the file_text_*() functions, or when reading a buffer loaded using buffer_load_async().
Steps To Reproduce1 - Launch attached project
2 - Run project in HTML5
3 - Press keys in order shown
4 - Notice pressing B returns no value when other keys return hello world
Additional InformationDevtools print:

Uncaught RangeError: Offset is outside the bounds of the DataView
    at DataView.getUint8 (<anonymous>)
    at _0F2._hF2 (html5 buffer2.js?WWTYB=260020361:2488)
    at buffer_read (html5 buffer2.js?WWTYB=260020361:2511)
    at _UX1.gml_Object_oTest_Step_0 [as StepNormalEvent] (html5 buffer2.js?WWTYB=260020361:20)
    at _UX1._b4 (html5 buffer2.js?WWTYB=260020361:2764)
    at _dI._b4 (html5 buffer2.js?WWTYB=260020361:2624)
    at _0w2._b4 (html5 buffer2.js?WWTYB=260020361:2656)
    at _Ib3 (html5 buffer2.js?WWTYB=260020361:3265)
    at _db3 (html5 buffer2.js?WWTYB=260020361:3271)
    at _Pa3 (html5 buffer2.js?WWTYB=260020361:3253)
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In IDE v2.2.5.481 Runtime v2.2.5.378
2.x Runtime Verified In


Patrick Roche

2020-03-13 09:49


html5 buffer.yyz (21,823 bytes)