Lua Bug Report (Police computer memory leak)

GP

Messages
259
Reaction score
287
Points
435
Type of Bug: Lua

Description of the Bug: Police computer memory leak

How to reproduce the Bug: The bug is related to incidents on the Police Computer. It's happened a couple of times today, and all of them under similar circumstances (see clip): I interact with my open incident, and close it, and from that moment I can't access the computer again, you can see the derma controls on the top right part of the screen all cramped together.

I've been doing lots of traffic stops, and for each one I create a quick incident (Traffic Stop ANPR). I'm pretty sure the bug happens after closing many quick incidents

To fix the constant lua error spam and regain access to the police computer, I've had to reconnect.

Time Stamp: 2022-09-20-23:36 UTC+2

Errors: I get constant console errors related to CBaseEntityList::AddNonNetworkableEntity: no free slots!
(see the screenshot)

Media:
https://streamable.com/o6l2jo
 
Upvote 0
I've been able to reproduce the bug. It happens after opening the police computer around 20 times.
It happens, at least, for the first and second tabs. Players online while recording: 99



Error:

Code:
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. BoneMergeCS - gamemodes/darkrp/gamemode/modules/bonemerging/sh_bonemerging.lua:17
     4. AttachBodyPart - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:221
      5. AttachClothing - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:239
       6. ApplyClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:280
        7. v - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:298
         8. Call - lua/includes/modules/hook.lua:96
          9. SetClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothingdata.lua:27
           10. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:64
            11. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
             12. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/warrants.lua:32
              13. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. BoneMergeCS - gamemodes/darkrp/gamemode/modules/bonemerging/sh_bonemerging.lua:17
     4. AttachBodyPart - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:221
      5. AttachClothing - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:239
       6. ApplyClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:280
        7. v - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:298
         8. Call - lua/includes/modules/hook.lua:96
          9. SetClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothingdata.lua:27
           10. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:64
            11. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
             12. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/latest.lua:32
              13. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
     4. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/warrants.lua:32
      5. unknown - lua/includes/extensions/net.lua:33

Then, this code gets spammed:

Code:
Timer Failed! [Simple][@gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua (line 66)]
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. func - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:68
     4. unknown - gamemodes/darkrp/gamemode/modules/profiler/hooks/sh_hooks.lua:33

Also, here's a clip right before the error starts while on duty, I wasn't trying to reproduce it (happened with the Employees tab)

 
Is this still happening to you? I tried opening the police computer a good 100 times (even switching through the tabs) and it did not break for me.
 
Yes, this still happens to me. I can open the Police computer ~20 times before I need to restart my game due to lua errors/cramped derma.
This is not the case when opening it as EMS, so it could be related to the Warrants and Latest tabs.

No need to watch the proof, but I recorded it just in case:

The errors:
Code:
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. BoneMergeCS - gamemodes/darkrp/gamemode/modules/bonemerging/sh_bonemerging.lua:17
     4. AttachBodyPart - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:221
      5. AttachMissingBodyParts - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:201
       6. AttachClothing - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:257
        7. ApplyClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:280
         8. v - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:298
          9. Call - lua/includes/modules/hook.lua:96
           10. SetClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothingdata.lua:27
            11. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:64
             12. SetEmployee - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employee.lua:158
              13. UpdateEmployeeList - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employees.lua:44
               14. Init - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employees.lua:13
                15. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
                 16. Init - gamemodes/darkrp/gamemode/modules/policedatabase/gui/window.lua:14

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268: Tried to use a NULL entity!
  1. SetParent - [C]:-1
   2. SpawnOrnament - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268
    3. func - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:319
     4. unknown - gamemodes/darkrp/gamemode/modules/profiler/hooks/sh_hooks.lua:33

Timer Failed! [ornamentSpawner3172][@gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua (line 317)]
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268: Tried to use a NULL entity!
  1. SetParent - [C]:-1
   2. SpawnOrnament - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268
    3. func - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:319
     4. unknown - gamemodes/darkrp/gamemode/modules/profiler/hooks/sh_hooks.lua:33

Timer Failed! [ornamentSpawner3447][@gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua (line 317)]
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268: Tried to use a NULL entity!
  1. SetParent - [C]:-1
   2. SpawnOrnament - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:268
    3. func - gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua:319
     4. unknown - gamemodes/darkrp/gamemode/modules/profiler/hooks/sh_hooks.lua:33

Timer Failed! [ornamentSpawner3651][@gamemodes/darkrp/gamemode/modules/vehiclesystem/cl_vehicles.lua (line 317)]
CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetEmployee - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employee.lua:158
     4. UpdateEmployeeList - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employees.lua:44
      5. Init - gamemodes/darkrp/gamemode/modules/policedatabase/gui/employees.lua:13
       6. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
        7. Init - gamemodes/darkrp/gamemode/modules/policedatabase/gui/window.lua:14
         8. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
          9. v - gamemodes/darkrp/gamemode/modules/jobs/police/cl_police.lua:25
           10. Call - lua/includes/modules/hook.lua:96
            11. v - gamemodes/darkrp/gamemode/modules/core/cl_keymousehook.lua:26
             12. unknown - lua/includes/modules/hook.lua:96

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. BoneMergeCS - gamemodes/darkrp/gamemode/modules/bonemerging/sh_bonemerging.lua:17
     4. AttachBodyPart - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:221
      5. AttachClothing - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:239
       6. ApplyClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:280
        7. v - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:298
         8. Call - lua/includes/modules/hook.lua:96
          9. SetClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothingdata.lua:27
           10. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:64
            11. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
             12. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/latest.lua:32
              13. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
     4. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/warrants.lua:32
      5. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41: Tried to use a NULL entity!
  1. SetMoveType - [C]:-1
   2. Reattach - gamemodes/darkrp/gamemode/modules/bonemerging/cl_bonemerging.lua:41
    3. BoneMergeCS - gamemodes/darkrp/gamemode/modules/bonemerging/sh_bonemerging.lua:17
     4. AttachBodyPart - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:221
      5. AttachClothing - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:239
       6. ApplyClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:280
        7. v - gamemodes/darkrp/gamemode/modules/clothing/sh_clothing.lua:298
         8. Call - lua/includes/modules/hook.lua:96
          9. SetClothingData - gamemodes/darkrp/gamemode/modules/clothing/sh_clothingdata.lua:27
           10. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:64
            11. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
             12. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/latest.lua:32
              13. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
     4. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/warrants.lua:32
      5. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
     4. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/latest.lua:32
      5. unknown - lua/includes/extensions/net.lua:33

CBaseEntityList::AddNonNetworkableEntity: no free slots!

[ERROR] gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63: Tried to use a NULL entity!
  1. SetSequence - [C]:-1
   2. SetClothingData - gamemodes/darkrp/gamemode/modules/guicore/general/dprofilepicture.lua:63
    3. SetProfile - gamemodes/darkrp/gamemode/modules/policedatabase/gui/record.lua:101
     4. func - gamemodes/darkrp/gamemode/modules/policedatabase/gui/warrants.lua:32
      5. unknown - lua/includes/extensions/net.lua:33
 
This should be fixed whenever we merge in the changes the next time.
 
Back
Top