Skip to content

Core crashes (pickups/gangzones) #718

Closed

Description

@andreev02

Describe the bug
Server just crashes by it's components (pickups/ganzones) .

To Reproduce
Random. Idk.

Expected behavior
At first I thought the &IPlayer was nullptr, but then I saw queryExtension(player);
I check all queryExtensions and see that there is may be nullptr as a result.
image
image

If I was right some problems may be in gangzones, pickups, dialogs.
image

Screenshots and/or logs
photo_2023-09-17_13-23-11
photo_2023-09-17_13-18-45

Release version
5746f42d73118b70ceb43edc864897243c766923

Activity

  1. added
    bug
    on Sep 17, 2023
  2. andreev02 commented on Sep 17, 2023

    @andreev02
    Author

    There are alot of places. Check queryExtension
    image

  3. AmyrAhmady commented on Sep 17, 2023

    @AmyrAhmady
    Member

    Checking if queried extension is null or not is fine
    we are making sure retrieved pointer to our object is not invalid in order to do further actions.

    I'd say the parts this check doesn't exist is more problematic, but not sure if that's the cause
    thanks for reporting this

  4. andreev02 commented on Sep 17, 2023

    @andreev02
    Author

    Checking if queried extension is null or not is fine

    data == nullptr continue?
    image

  5. AmyrAhmady commented on Sep 17, 2023

    @AmyrAhmady
    Member

    Yes, I meant for other pictures you sent, and no, if data is null we are not continuing the execution
    I understand the others

  6. self-assigned this
    on Sep 18, 2023
  7. andreev02 commented on Sep 18, 2023

    @andreev02
    Author

    @andreev02 Please try this build and update me with the results

    https://github.com/openmultiplayer/open.mp/actions/runs/6217146604

    Hi. Sorry I can't check it now. Already added checks in forked project. But I found more places to add checks just in case.
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugnightly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions