View Issue Details

IDProjectCategoryView StatusLast Update
0031536RunnerBuffersPublic2020-03-27 14:39
ReporterDanAssigned ToFritz 
PriorityHighSeverityC - GeneralReproducibility100%
Status ResolvedResolutionFixed 
Platform-OSWindows 10OS VersionPro x64
Product Version2.2.4 
Target Version2.3.0Fixed in Version2.3.0 
Summary0031536: Buffers: Creating a buffer doesn't set its "used size" properly in some cases
DescriptionCreating/decompressing a buffer doesn't set its "used size" properly in some cases.

1) When filling a buffer with the function buffer_get_surface(), other buffer functions will treat it as if the buffer was empty:
buffer_save() will create an empty file.
buffer_base64_encode() will return the string "AA=="
buffer_compress() will return a buffer of size 9, which upon decompression will return a buffer of (allegedly) only size 1.
The issue appears when trying to save, encode or compress buffers filled by the function buffer_get_surface().

2) Using game_save_buffer() and then game_load_buffer() won't result in a usable buffer. You currently have to game_save(), load that file into a buffer, and then game_load_buffer() that.

3) buffer_get_surface() will return the string "AA=="
Steps To Reproduce1. Run the first attached sample project.
2. Observe the multi-coloured surface appears and your Output Window log gives the described results / as shown in the screenshot.
Repro: 100%

1. Run the second attached sample project.
2. Pressing 1 and then 3 will game_save_buffer() and then game_load_buffer(). Observe this fails to load anything.
Repro: 100%
Additional Informationhttps://yoyogames.zendesk.com/agent/tickets/164841

TagsGMKI
1.4 Found In
2.x Runtime Found In2.2.4.374
2.x Runtime Verified In

Activities

Dan

2019-12-09 14:00

Adminstrator  

SurfaceToBuffer.yyz (147,079 bytes)
BufferSizeWrong.png (94,638 bytes)
BufferSizeWrong.png (94,638 bytes)

Dan

2019-12-10 11:03

Adminstrator  

GameSaveBufferBug.yyz (24,880 bytes)

Dan

2020-03-27 14:39

Adminstrator   ~0065554

CB3