BullyWiiPlaza / JMaster-Duel-Bot

A mod and bot for Yu-Gi-Oh! Master Duel (Steam version)
https://www.youtube.com/watch?v=EBuDqRFmSQI
120 stars 13 forks source link

Program Keeps Crashing #30

Closed Fackonami closed 1 year ago

Fackonami commented 1 year ago

Every time I leave the bot to duel in Ranked, it keeps crashing. Nurse Burn has proven to be able to go through the ranks even with Invalidate Losses turned on to stop de-ranks, even with the patches, but every time it crashes it possibly “disables” invalidating losses meaning derank is possible.

My computer is 32GB RAM and every time Master Duel opens I always set the process of it to Real-time to prioritize it and make sure it doesn’t crash. I tried setting the bot’s Thread Count as low as 1 or 10, because I thought the problem was that it was too high (it was 40 at one time). My computer is way too beefy for the program to keep crashing like that. It also crashes sometimes in the middle of duels when I do Illegal Decks on Solo.

What causes these crashes? Should I send logs? Where can I find them?

FuhKonami commented 1 year ago

Sorry, this and Fackonami are two different accounts I use for Github. Here's an image of the exact moment that the bot crashed. It happened right at the beginning of a Ranked duel, just as the 5 cards each were drawn.

These lines from the logs from the "Saliva" file are from the exact moment of the crash. Some of the bottom lines are of the program restarting.

[2023-07-02 18:27:44.907] [15776] [info] It's currently the opponent's turn... [2023-07-02 18:27:44.919] [13388] [info] New duel log entry added: CardMove [2023-07-02 18:27:44.920] [13388] [debug] Duel log size count: 8 [2023-07-02 18:27:44.947] [13388] [info] New duel log entry added: CardMove [2023-07-02 18:27:44.948] [13388] [debug] Duel log size count: 9 [2023-07-02 18:27:45.036] [14388] [info] Getting duel step... [2023-07-02 18:27:45.036] [14388] [info] Duel step: ExecDuel [2023-07-02 18:27:45.196] [16860] [info] Getting duel step... [2023-07-02 18:27:45.196] [16860] [info] Duel step: ExecDuel [2023-07-02 18:27:45.481] [14764] [info] Getting duel step... [2023-07-02 18:27:45.481] [14764] [info] Duel step: ExecDuel [2023-07-02 18:27:46.103] [10912] [info] Getting duel step... [2023-07-02 18:27:46.103] [2023-07-02 18:27:55.273] [7688] [info] Welcome to Master Drool Saliva [2023-07-02 18:27:55.273] [7688] [info] Copyright 2022 - 2023 (C) BullyWiiPlaza [2023-07-02 18:27:55.311] [7688] [info] Restoring settings from "last-master-drool-saliva-settings.json"... [2023-07-02 18:27:55.311] [4572] [info] Running Network replay handler...

image

BullyWiiPlaza commented 1 year ago

Hi, thanks for the details. Crashes aren't your PCs problem generally. The issue is somewhere else, I can probably fix it when I figure out how it happens. I'll see about it, you're not the only person reporting this currently.

BullyWiiPlaza commented 1 year ago

I updated the bot, now hopefully the random crashes at the start of a duel are fixed.