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

Game Crash when Object pool reaches 1500 RedM #3247

Open
outsider31000 opened this issue Mar 15, 2025 · 1 comment
Open

Game Crash when Object pool reaches 1500 RedM #3247

outsider31000 opened this issue Mar 15, 2025 · 1 comment
Labels
bug RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action

Comments

@outsider31000
Copy link
Contributor

What happened?

Object pool is listed as 3000 max items and yet the game crashes if you have more than 1500

Image

by increasing the pool with increase_pool_size "Object" 2000 it allows you to spawn 2000 more objects

so at 2500 objects you crash when the limit is 5000

Image

CfxCrashDump_2025_03_15_15_20_22.zip

Expected result

should not crash and allow the max items allowed

Reproduction steps

spawn 1500 props or more you will get a crash

Importancy

Unknown

Area(s)

RedM

Specific version(s)

1491

Additional information

local props = {}
RegisterCommand("testProp", function()
    RequestModel("p_table01x", false)
    repeat Wait(0) until HasModelLoaded("p_table01x")

    local coords = GetEntityCoords(PlayerPedId())
    for i = 1, 1500 do
        local table = CreateObject("p_table01x", coords.x, coords.y, coords.z, false, false, false, false)
        props[#props + 1] = table
    end
    print("done")
end, false)

--on resource stop
AddEventHandler("onResourceStop", function(resource)
    if resource == GetCurrentResourceName() then
        for _, prop in ipairs(props) do
            DeleteObject(prop)
        end
    end
end)
@outsider31000 outsider31000 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Mar 15, 2025
@github-actions github-actions bot added the RedM Issues/PRs related to RedM label Mar 15, 2025
@outsider31000
Copy link
Contributor Author

outsider31000 commented Mar 15, 2025

@Nobelium-cfx im sure no one will look at this issue like the others, but can we allow more objects in the pool list to at least reach more limits? it seems to not crash at lower numbers when we increase. even increasing at 2000 we still cant spawn max items by default wich is 3000 it crashes at 2500.
a good number would be 5000 so 3000 more so we can at least spawn more than the default
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

1 participant