Git Product home page Git Product logo

Comments (10)

Pirulax avatar Pirulax commented on June 2, 2024 4

@TheNormalnij okay, so I've looked into the crash log, and it's here:
https://github.com/gta-reversed/gta-reversed-modern/blob/e3219aeccec725c939c13f27e9ecd338d70e5b8d/source/game_sa/Streaming.cpp#L188
Seems like you aren't calling DeleteRwObject anywhere (which would remove the entity's streaming link).

from mtasa-blue.

Nico8340 avatar Nico8340 commented on June 2, 2024

I was only able to reproduce it when I created a lot of buildings at once.

from mtasa-blue.

Nico8340 avatar Nico8340 commented on June 2, 2024

I see that when the error message about running out of slots appears, the game crashes. Otherwise, not really.

from mtasa-blue.

Xenius97 avatar Xenius97 commented on June 2, 2024

I was only able to reproduce it when I created a lot of buildings at once.

Same crash with 5 and 2000 buildings.
I've created 5 buildings (cityhall ls), and crashed at chilliad wood house

from mtasa-blue.

TheNormalnij avatar TheNormalnij commented on June 2, 2024

@Xenius97 can you provide test resource, please?
I knew about crashes with more than 2000 buildings, but it always works well for me with 5 buildings

from mtasa-blue.

Xenius97 avatar Xenius97 commented on June 2, 2024
removeWorldModel(3997, 10000, 0, 0, 0)
removeWorldModel(4045, 10000, 0, 0, 0)
createBuilding(3997, 1479.3359375, -1802.2890625, 12.546875, 0, 0, 0)
removeWorldModel(4163, 10000, 0, 0, 0)
removeWorldModel(4164, 10000, 0, 0, 0)
createBuilding(4163, 1469.3359375, -1732.2890625, 12.4609375, 0, 0, 0)
removeWorldModel(4186, 10000, 0, 0, 0)
removeWorldModel(4057, 10000, 0, 0, 0)
createBuilding(4186, 1479.5546875, -1693.140625, 19.578125, 0, 0, 0)
removeWorldModel(3985, 10000, 0, 0, 0)
removeWorldModel(4210, 10000, 0, 0, 0)
createBuilding(3985, 1479.5625, -1631.453125, 12.078125, 0, 0, 0)
removeWorldModel(3978, 10000, 0, 0, 0)
removeWorldModel(4053, 10000, 0, 0, 0)
createBuilding(3978, 1380.265625, -1655.5390625, 10.8046875, 0, 0, 0)
removeWorldModel(4029, 10000, 0, 0, 0)
removeWorldModel(4136, 10000, 0, 0, 0)
createBuilding(4029, 1629.546875, -1756.0859375, 8.09375, 0, 0, 0)

from mtasa-blue.

Xenius97 avatar Xenius97 commented on June 2, 2024

Tried to reproduce again, but i can't. I don't know what was wrong, maybe not buildings.

from mtasa-blue.

Xenius97 avatar Xenius97 commented on June 2, 2024

Found the issue.
Create a few buildings in one resource, then restart it a few times and crash.

from mtasa-blue.

TheNormalnij avatar TheNormalnij commented on June 2, 2024

I hope #3330 fixes this case too.

from mtasa-blue.

Pirulax avatar Pirulax commented on June 2, 2024

@TheNormalnij You could try clearing the references to the building perhaps. (See CEntity::ResolveReferences)

from mtasa-blue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.