Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer_create downconverts int64 size argument, preventing creating large buffers >2Gb #2590

Closed
thennothinghappened opened this issue Dec 25, 2023 — with GM Bug Reporter · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation are required by this issue project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@thennothinghappened
Copy link

Description

As in the title, it doesn't seem possible to create buffers greater in size than the 32-bit signed integer limit.

Tested on Latest, and Beta Runtime v2023.1100.0.459.

Steps To Reproduce

Example code:

var i32 = 2_147_483_647;
show_debug_message(i32);

// ok
var b1 = buffer_create(i32, buffer_fixed, 1);
buffer_delete(b1);

var i64 = int64(2_147_483_648);
show_debug_message(i64);

// buffer_create: Illegal size -2147483648
var b2 = buffer_create(i64, buffer_fixed, 1);
buffer_delete(b2);

1038296e-ab94-4081-828c-a8c69f8c7525

@gm-bug-reporter gm-bug-reporter bot added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes project This issue has a sample project attached labels Dec 25, 2023
@thennothinghappened
Copy link
Author

thennothinghappened commented Dec 25, 2023

whoops, would've made more sense to check if GM was happy handling buffers that size first anyway :P

GM seems to completely fail loading anything above that size, it returns a totally empty buffer, but still says the buffer exists, so that's probably its own issue to report (or feature request for large buffer handling?)

@jackerley jackerley added the documentation Improvements or additions to documentation are required by this issue label Jan 3, 2024
@gurpreetsinghmatharoo
Copy link

Documented that buffers that are 2 Gibibytes or more cannot be created

gurpreetsinghmatharoo added a commit to YoYoGames/GameMaker-Manual that referenced this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation are required by this issue project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
None yet
Development

No branches or pull requests

3 participants