Skip to content

Fast double map change corrupt internal structure of shop data #107

Description

@Kailo97

Describe the bug
this bug requires testing and confirmation
Fast double map change corrupt internal structure of shop data.
Sourcemod error logs start to spam

L 07/26/2021 - 21:51:01: [SM] Exception reported: Invalid Handle c710bab (error: 1)
L 07/26/2021 - 21:51:01: [SM] Blaming: shop/shop.smx
L 07/26/2021 - 21:51:01: [SM] Call stack trace:
L 07/26/2021 - 21:51:01: [SM]   [0] ArrayList.FindValue
L 07/26/2021 - 21:51:01: [SM]   [1] Line 659, addons/sourcemod/scripting/shop/item_manager.sp::ItemManager_OnItemRegistered

I looked at action SM log and found that in time of error starts spam map was changed twice in 2-4 seconds.

L 07/26/2021 - 21:51:00: -------- Mapchange to de_mirage --------
L 07/26/2021 - 21:51:02: -------- Mapchange to de_mirage --------

Full logs with two exmples here: (12:02:10 and 21:51:00)
errors_20210726.log
L20210726.log

To Reproduce
Steps to reproduce the behavior:

  1. Change map once
  2. Change map again in next 2-4 seconds
  3. See error

Expected behavior
No errors =)

Server (please complete the following information):

  • OS Linux
  • Sourcemod version 1.10.0.6502
  • Version 3.0E2

Activity

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

Metadata

Metadata

Assignees

Labels

Accepting Merge RequestsYou can help by contributing this project by making Pull Request with your changes.Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions