WRBot Segmentation fault (Server crash on map load)
Hello,
I'm using "WRBot Auto" from kraster (https://xtreme-jumps.eu/e107_plugins...c.php?364070.0) for my KZ Server Unfortunately nearly 50% of available KZ Maps are getting crashed by this plugin due to a segmentation fault. Crash Log: Aside from that plugin's really impressive so it would be a waste to not fix this. Hope someone has the knowledge to help me. Code:
L 06/20/2018 - 08:55:03: [AmxxArch] Processing addons/amxmodx/data/hm_timeattack_LeblE_0004.71.rar addons/amxmodx/data/demo0.dem https://i.imgur.com/SblELgG.jpg |
Re: WRBot Segmentation fault (Server crash on map load)
It seems like the module used for extracting .RAR archives only supports some types of them. When it fails to extract, the failure never gets passed to the plugin which continues trying to handle the newly extracted files (that don't exist).
To prevent this from happening, you'd need to add a check to make sure the files actually exist after extraction. Changing this: PHP Code:
PHP Code:
If your goal is to make the bot work for all maps though, I'm afraid it's much more complicated than that, since AFAIK there are no other modules for extracting archives, so you'd need to develop one that works for all RAR types yourself. Either that, or repackage all the bad demos into the default RAR format. |
Re: WRBot Segmentation fault (Server crash on map load)
Thanks for your code, unluckily server is still crashing on mapchange. Anyway gotta wait for someone to be able to fix unsupported rar format.
|
Re: WRBot Segmentation fault (Server crash on map load)
Quote:
PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 12:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.