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

Crash report #290

Closed Augustakit closed 1 year ago

Augustakit commented 1 year ago

Scope

Core

What happened?

When I was playing "MP_018 ConquestLarge0 1", I suddenly crashed in the middle of the game.However, the number of bots is only 64, and there is no more settings, and I use a 30hz server.This has never happened before.

What was expected?

Fix the sudden crash of the game

How can we reproduce and test it?

Startuplist: vars.roundStartPlayerCount 1 vars.maxPlayers 64 vars.gameModeCounter 100 vars.playerManDownTime 1 vars.playerRespawnTime 1 vars.autoBalance true vu.ColorCorrectionEnabled false vu.SunFlareEnabled false vu.DisablePreRound true vu.DesertingAllowed false

Version of fun-bots and VU?

fun-bots-2.8.0-dev2 VU version 19968

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

Firjens commented 1 year ago

So do these starup commands cause the crash?

Augustakit commented 1 year ago

Even after I removed some of the instructions

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

BigShottt commented 1 year ago

I've been having the same issue. I cannot get through a single round of Funbots on my own server, alone with bots, without the server crashing at some point in the middle of the round.

Joe91 commented 1 year ago

Can you send me the config you are using? Is there a specific map that crashes very soon? Can you reproduce this without other mods?

BigShottt commented 1 year ago

Hi…I need to do some more testing an pay closer attention as I am a new user of VU & Funbots.

I became aware of another user reporting that this crashing might be due to the mapvote mod (which I am using).

I will play again to see if this crashing is really happening near round end, or not.

I will let you know.

Dave

From: Joe91 @.> Sent: Tuesday, April 25, 2023 11:40 AM To: Joe91/fun-bots @.> Cc: BigShottt @.>; Comment @.> Subject: Re: [Joe91/fun-bots] Crash report (Issue #290)

Can you send me the config you are using? Is there a specific map that crashes very soon? Can you reproduce this without other mods?

— Reply to this email directly, view it on GitHub https://github.com/Joe91/fun-bots/issues/290#issuecomment-1522017727 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKAP6PUBXQB6TIUK4FAKALXC7V4BANCNFSM6AAAAAAVRA3CY4 . You are receiving this because you commented.Message ID: @.***>

BigShottt commented 1 year ago

Okay, so it seems to be happening every time I’m near end of round when there’s only 1 ticket remaining for the losing team. Crash, every time.

I removed the Mapvote mod and now the Funbots mod is the only thing remaining…so I guess it’s either the bots or VU causing the server crash.

I’d have no idea how to test this without the bots as I don’t play PvP. It’s crashed so far on 3 out of 3 maps in a row.

Not sure what config to send you, I’m running the fun-bots-master.

From: Joe91 @.> Sent: Tuesday, April 25, 2023 11:40 AM To: Joe91/fun-bots @.> Cc: BigShottt @.>; Comment @.> Subject: Re: [Joe91/fun-bots] Crash report (Issue #290)

Can you send me the config you are using? Is there a specific map that crashes very soon? Can you reproduce this without other mods?

— Reply to this email directly, view it on GitHub https://github.com/Joe91/fun-bots/issues/290#issuecomment-1522017727 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKAP6PUBXQB6TIUK4FAKALXC7V4BANCNFSM6AAAAAAVRA3CY4 . You are receiving this because you commented.Message ID: @.***>

BigShottt commented 1 year ago

I also tested this issue with procon running and found that if I leave procon running when the match is about to end that it seems to guarantee a crash…but when I shut Procon off before match ends then things strat to improve and I don’t always get a crash at match end.

Here’s what my last test session was like:

After playing 3 matches I think it was the 3rd match that crashed at the end when tickets get to only 1 left…even though procon was shut down.

Hope this helps


Okay, so it seems to be happening every time I’m near end of round when there’s only 1 ticket remaining for the losing team. Crash, every time.

I removed the Mapvote mod and now the Funbots mod is the only thing remaining…so I guess it’s either the bots or VU causing the server crash.

I’d have no idea how to test this without the bots as I don’t play PvP. It’s crashed so far on 3 out of 3 maps in a row.

Not sure what config to send you, I’m running the fun-bots-master.

From: Joe91 @.> Sent: Tuesday, April 25, 2023 11:40 AM To: Joe91/fun-bots @.> Cc: BigShottt @.>; Comment @.> Subject: Re: [Joe91/fun-bots] Crash report (Issue #290)

Can you send me the config you are using? Is there a specific map that crashes very soon? Can you reproduce this without other mods?

— Reply to this email directly, view it on GitHub https://github.com/Joe91/fun-bots/issues/290#issuecomment-1522017727 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKAP6PUBXQB6TIUK4FAKALXC7V4BANCNFSM6AAAAAAVRA3CY4 . You are receiving this because you commented.Message ID: @.***>

Joe91 commented 1 year ago

I just played 10 rounds without a crash at all, even with procon and mapvote (10 Tickets TDM). I played with the latest dev-commit of fun-bots. What version are you using and what gamemode and configs do you use?

Digitalinsite commented 1 year ago

I'm getting the same crash on my end too. Matches run perfectly but crash at the end when it gets down to the last ticket. I'm in process of removing mods one by one to try to narrow it down but it seemed to start to happen after either the last funbots major update or the last VU update - can't be sure though...

Joe91 commented 1 year ago

What version of fun-bots are you using? And dura this happen on all gamemodes? How many bots do you use? It would help me a lot in the process to reproduce this issue.

BigShottt commented 1 year ago

I'm using fun-bots-master v2.71 and so far I've only played all my rounds in the Conquest mode with the default amount of bots which your mod provides (which I think is something like 9 or 10 per team?).

The only thing I've touched as far as the bots are concerned is adjusting most of their skills so they're easier (raising some of the default worsening numbers to either a max of 1 or less, i.e. .8)... btw, what is the actual range for this?

VU exe file properties says it's version 1.0; When server starts it says it's in "prod" environment, build 19987

Mapvote v 1.3

Nothing too unusual about my Startup: vars.serverName "BigShot" vars.gamePassword "123456" vars.roundRestartPlayerCount 0 vars.roundStartPlayerCount 0 admin.password "123456" vu.ColorCorrectionEnabled true vu.SunFlareEnabled false vu.DisablePreRound true mapvote.excludecurrentmap false

Here's my maplist: XP1_004 ConquestAssaultSmall0 1 MP_001 ConquestSmall0 1 MP_003 ConquestSmall0 1 MP_011 ConquestSmall0 1 MP_012 ConquestSmall0 1 MP_Subway ConquestSmall0 1 XP1_001 ConquestAssaultSmall0 1 XP1_002 ConquestAssaultSmall0 1

*Another thing I've noticed today is that it won't crash at end of round IF I manually end the round using Procon (mapList.endRound 1). But, if I let the match play out naturally by itself it'll crash just as soon as the final ticket remains.

***TESTED 3X CONSECUTIVELY WITHOUT FUNBOTS: NO CRASHES

Joe91 commented 1 year ago

Thanks a lot! Was finally able to reproduce it with conquest and mapvote. Without mapvote I just played several rounds without any issue (used the 2.8.0-dev2 version). Would recommend to do this as well. Can't identify why this crashes in this combination at all. Really strange stuff.

BigShottt commented 1 year ago

Joe Hi...your officially released version (v2.71) does crash without mapvote as well... I tested that last night. Good to see that you're now able to see it, even in your latest beta version. I read that this was an issue with older versions of the vubots so I guess you haven't got it figured out 100% yet.

Where can I get the latest dev version you're speaking of? I found 2.8 of fun-bots-dev, but I dont see dev2

*EDIT - never mind, found it

BigShottt commented 1 year ago

Sorry to report that even with using 2.8.0dev2 and NO other mods, the VU server still crashed today upon final ticket remaining at end of the 2nd round. That round ending crash you thought you fixed a few months ago still seems to remain today. It's just not every single round now.

Hope you sort it anyway, one day.

Joe91 commented 1 year ago

Can you check if you see any improvement when using the branch "debug_crashes"?

Joe91 commented 1 year ago

I think I found a workaround at least for the moment. If you change the following two values in the Registry.lua this improves the sability on the EndOfRound a lot... RAYCAST_INTERVAL_ENEMY_CHECK = 0.05, BOT_BOT_CHECK_INTERVAL = 0.1,

But sadly this does not work when there are a lot of bots. Will continue the search...

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