TheDoctor0 / CSGOMod

CS:GO Mod for Counter-Strike 1.6 (AMXX 1.8.3 / 1.9 / 1.10).
MIT License
59 stars 37 forks source link

Critical error #35

Closed ksm200 closed 4 years ago

ksm200 commented 4 years ago

L 08/25/2020 - 14:52:53: [FAKEMETA] Invalid entity L 08/25/2020 - 14:52:53: [AMXX] Displaying debug trace (plugin "csgo_core.amxx", version "2.1.0") L 08/25/2020 - 14:52:53: [AMXX] Run time error 10: native error (native "pev") L 08/25/2020 - 14:52:53: [AMXX] [0] fakemeta_util.inc::fm_get_aim_origin (line 737) L 08/25/2020 - 14:52:53: [AMXX] [1] csgo_core.sma::fm_get_user_aiming_ent (line 3487) L 08/25/2020 - 14:52:53: [AMXX] [2] csgo_core.sma::check_aim_weapon (line 2542)

Server crashed with 3 players online

TheDoctor0 commented 4 years ago

Does your server run with -debug in starting options? Are there any logs in debug.log outside cstrike directory?

ksm200 commented 4 years ago

L 24/08/2020 - 02:22:52: (map "csgo_dust2_new") Cache_TryAlloc: 11461024 is greater then free hunk L 24/08/2020 - 08:24:50: (map "csgo_dust2_new") Cache_TryAlloc: 11461024 is greater then free hunk L 24/08/2020 - 14:26:54: (map "csgo_dust2_new") Cache_TryAlloc: 11461024 is greater then free hunk L 25/08/2020 - 03:39:05: (map "csgo_dust2_new") Cache_TryAlloc: 11461024 is greater then free hunk L 25/08/2020 - 06:40:22: (map "csgo_cobblestone") Host_Error: ED_ParseEdict: Model '*258' failed to precache because the item count is over the 512 limit. Reduce the number of brush models and/or regular models in the map to correct this.

L 25/08/2020 - 09:41:37: (map "csgo_cobblestone") Host_Error: ED_ParseEdict: Model '*258' failed to precache because the item count is over the 512 limit. Reduce the number of brush models and/or regular models in the map to correct this.

L 25/08/2020 - 12:42:57: (map "csgo_cobblestone") Host_Error: ED_ParseEdict: Model '*258' failed to precache because the item count is over the 512 limit. Reduce the number of brush models and/or regular models in the map to correct this.

L 25/08/2020 - 14:52:53: (map "csgo_dust2") PF_MessageBegin_I: with no target entity

-sys_ticrate 1000 -debug -heapsize 65536

@EDIT I finish translation for brazillian portuguese I just need to fix some things

TheDoctor0 commented 4 years ago

L 25/08/2020 - 03:39:05: (map "csgo_dust2_new") Cache_TryAlloc: 11461024 is greater then free hunk

You can fix this by adding -heapsize 65536 to server starting options as described in README. You can also try to increase heapsize value (for example to 131072) if server is still crashing on this map.

L 25/08/2020 - 09:41:37: (map "csgo_cobblestone") Host_Error: ED_ParseEdict: Model '*258' failed to precache because the item count is over the 512 limit. Reduce the number of brush models and/or regular models in the map to correct this.

I assume you are using additional plugins with models/sprites, so this map probably won't work for you.

L 25/08/2020 - 14:52:53: (map "csgo_dust2") PF_MessageBegin_I: with no target entity

Seems to be related to #17. I implemented additional validation.

I finish translation for brazillian portuguese I just need to fix some things

Awesome 👍

ksm200 commented 4 years ago

I only have 1 custom plugin that uses sprite I will test with -heapsize 131072

new logs erros

L 08/25/2020 - 16:22:03: String formatted incorrectly - parameter 3 (total 2) L 08/25/2020 - 16:22:03: [AMXX] Run time error 25 (plugin "csgo_accounts.amxx") - debug not enabled! L 08/25/2020 - 16:22:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 08/25/2020 - 16:33:09: Start of error session. L 08/25/2020 - 16:33:09: Info (map "csgo_dust2") (file "addons/amxmodx/logs/error_20200825.log") L 08/25/2020 - 16:33:09: [HAMSANDWICH] Invalid entity 1 L 08/25/2020 - 16:33:09: [AMXX] Displaying debug trace (plugin "csgo_core.amxx", version "2.1.0") L 08/25/2020 - 16:33:09: [AMXX] Run time error 10: native error (native "get_pdata_cbase") L 08/25/2020 - 16:33:09: [AMXX] [0] csgo_core.sma::deploy_weapon_switch (line 2678)

print user send me image

TheDoctor0 commented 4 years ago

I only have 1 custom plugin that uses sprite

Mod pack on csgo_cobblestone is really close to 512 resource limit, so it may crash with this custom plugin and work without it.

I will test with -heapsize 131072

Does csgo_dust2_new work now?

L 08/25/2020 - 16:33:09: Info (map "csgo_dust2") (file "addons/amxmodx/logs/error_20200825.log")

L 08/25/2020 - 16:33:09: [HAMSANDWICH] Invalid entity 1 L 08/25/2020 - 16:33:09: [AMXX] Displaying debug trace (plugin "csgo_core.amxx", version "2.1.0") L 08/25/2020 - 16:33:09: [AMXX] Run time error 10: native error (native "get_pdata_cbase") L 08/25/2020 - 16:33:09: [AMXX] [0] csgo_core.sma::deploy_weapon_switch (line 2678)

Ok, we're getting closer. I added more validation checks in all plugins to make get_pdata_cbase access crash impossible.

L 08/25/2020 - 16:22:03: String formatted incorrectly - parameter 3 (total 2) L 08/25/2020 - 16:22:03: [AMXX] Run time error 25 (plugin "csgo_accounts.amxx") - debug not enabled! L 08/25/2020 - 16:22:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Probably fixed here.

ksm200 commented 4 years ago

https://www.sendspace.com/filegroup/SmRzjn2qkjezmwSBw2irEw Demo 0 animation in weapon

@TheDoctor0 https://steamcommunity.com/profiles/76561198839665676/ If you want to contact me and test together

TheDoctor0 commented 4 years ago

0 animation in weapon

Fixed, in previous commit I added invalid ent check in update_client_data_post.

TheDoctor0 commented 4 years ago

Were there any crashes on your server since this last fix?

TheDoctor0 commented 4 years ago

I assume that this issue is no longer relevant. @ksm200, you can reopen this issue or create a new one if you encounter any crashes.