Joe91 / fun-bots

A highly customizable and configurable bot mod for your Venice Unleashed Battlefield 3 server.
https://discord.gg/zNk3qCzk6x
236 stars 45 forks source link

routine in bot can crash server on end round #288

Closed iamadeadpixel closed 1 year ago

iamadeadpixel commented 1 year ago

Scope

Core

What happened?

2023-02-09 16:57:58+01:00] [error] [VeniceEXT] [fun-bots-master280dev2] Error: [string "Bot.lua"]:199: tried accessing an invalid or destroyed EntityBusPeer stack traceback: [C]: in method 'SingleStepEntry' [string "Bot.lua"]:199: in method 'OnUpdatePassPostFrame' [string "BotManager.lua"]:72: in method 'OnUpdateManagerUpdate'

--- RESTARTING SERVER ---

What was expected?

should not happen ,and normal map end routine should start.

How can we reproduce and test it?

randomly, cant force it here.

Version of fun-bots and VU?

fun-bots-master280dev2 - VU 19968 DEV

I have checked the following... (if applicable)

Joe91 commented 1 year ago

this is really strange. I already check if the soldier is nil before calling this method. I don't think there is anything else I can do there. Maybe this can be fixed on the VU side if we are able to reproduce this issue fast...

iamadeadpixel commented 1 year ago

Thank Mr Joe. As i noticed, it happens most of time on grand bazar here (with Bflag mod,and yes, also without it it can happen) rarely on other the other maps, but most of time ,there where buildings nearby. what i noticed in the time writing this and topic start, it looks sudenly that on the last second i end up for a split second under the map. it happens with version DEV 1 and 2, also with 271, i also have the idea that it can be a server isue. Runing latest DEV as server and also as client..

again,as sayd, it happens randomly, not always, i can play 4 round on a row, than sudenly 2 rounds where the server is crashing.

iamadeadpixel commented 1 year ago

litle update,, for testing i disabled funbots and after 15 test rounds, no crash.. THIS is what happens.

Normal: when last ticket is done, the screen goes white ,you get the win or loos message, and see the scorebord.

Crash: last ticket, bots start moonwalking, players shows for a fraction under the map, game over, server crash and it reboots itself. i post it also on VU discord, lets see what they think of it.

pixel..

germanc6 commented 1 year ago

Hi, i also get a crash when changing the map. im using funbots 2.7.1 and no other mod. This is part of the dump: [string "Bot.lua"]:199: tried accessing an invalid or destroyed EntityBusPeer stack traceback: [C]: in method 'SingleStepEntry' [string "Bot.lua"]:199: in method 'OnUpdatePassPostFrame' [string "BotManager.lua"]:72: in method 'OnUpdateManagerUpdate'

iamadeadpixel commented 1 year ago

we simply should wait for a fix and the VU crew gives more code info to Mr Joe..

BigShottt commented 1 year ago

I've been experiencing the same end of round crashes without mods, only funbots installed and VU. It happens with v2.7.1 as well as 2.8.0dev2...only way to stop crash at end of round (last ticket remains) is to remove funbots.

Hope it gets fixed soon. I'm a strict PvE'er...I don't play PvP so I really only play BF3 for the bot play and this mod.

Joe91 commented 1 year ago

I'm working on it but it is really strange and confusing. Had some tries, but they all just don't fix this... Hope beeing able to provide an update on this soon...

BigShottt commented 1 year ago

No problem, don't give up on it Joe. I understand how frustrating it can get with this sort of trouble.

I appreciate all the time you put into making the mod, as it allows me to bring back some really fun memories of playing on these old classic maps and finally being able to do that with the bots so that I don't need to PvP it.

Thanks again...I'm sure eventually it'll get sorted out.

germanc6 commented 1 year ago

I'm working on it but it is really strange and confusing. Had some tries, but they all just don't fix this... Hope beeing able to provide an update on this soon...

take your time man and thanks for the mod. will you be doing a mod for Warsaw Revamped too?

Joe91 commented 1 year ago

@FlashHit found the fix for this bug! It's included in the new dev-version: https://github.com/Joe91/fun-bots/releases/tag/v2.8.0-dev4