Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
367 stars 55 forks source link

Wargus crashing after custom game. #434

Open JKCougar opened 1 year ago

JKCougar commented 1 year ago

Describe the bug After doing a custom game and winning or losing the game crashes with an error.

To Reproduce Steps to reproduce the behavior:

  1. Start a Standard Game
  2. Go to Skirmish Modern
  3. Setup a game between myself and AI
  4. Finish the game
  5. Click on Victory
  6. See error

Expected behavior It should pull up the final game stats

Screenshots and Logs image

stderr.txt stdout.txt Wargus-extraction.log

Add screenshots to help explain your problem. If you encountered the issue inside a game, please add the log from the game (find it in "My Documents/Stratagus/wc2/logs" on Windows or "$HOME/.stratagus/wc2/logs" on Linux). Please also attach your stderr and stdout. If you're on Windows, these will be in "My Documents/Stratagus/std*.txt"

Desktop (please complete the following information):

timfel commented 1 year ago

No idea, sorry can you reproduce this reliably? There's nothing in the logs pointing to anything wrong.

JKCougar commented 1 year ago

No idea, sorry can you reproduce this reliably? There's nothing in the logs pointing to anything wrong.

Yes it happens on every single custom game I do. Would the version of my CDs make a difference? They are pretty old and probably not the latest version of WC2 from Blizzard.

Hunteil commented 1 year ago

No idea, sorry can you reproduce this reliably? There's nothing in the logs pointing to anything wrong.

This issue has been happening to us over in discord chat. You got me and another separate active user. We could possibly get you logs to look through. I have it installed on a win 10 and a win 7 laptop (trying to play locally). Same version of game GoG and Wargus. Trying to play on local network. We can join each other but this same error crashes me on join win 10. I tried the campaign single player on windows 7 and it shows up and kills the game. It runs on win 10 in single player but when you leave the game on both OS the error shows up too. So it crashes going out the door too lol. Not sure what's going on here.

SimoneStarace commented 1 year ago

@Hunteil

I tried the campaign single player on windows 7 and it shows up and kills the game.

Does it happen on specific maps of the campaign or in any one? I tried with the first two human missions and the game didn't crash.

sidav commented 1 week ago

I have literally the same problem, with the same error window. I'm on Kubuntu 24.04, installed deb for 22.04 from the PPA manually.

  1. Start a custom game
  2. Play it until the end
  3. Press "Victory" button
  4. Crashes with the same error window I also have literally the same problem with war1gus, so it may be a general Stratagus bug.
sidav commented 1 week ago

Update: strangely enough, I still get the error message in latest Wargus Portable run under wine, but the game does not crash. I finish the custom game as usual, exit the game via the menu... and see this error message after the game has exited. It does not occur if the game was exited without playing the custom game. Update 2: I've found that I can download appimages of nightly builds from Stratagus (not Wargus!) repo. The bug is not present there (latest nightly appimage for Linux) if I lose, but it's still here if I win.

SimoneStarace commented 5 days ago

Hello @sidav. Wargus version 3.3.2 has a weird bug that after finishing the map and pressing the victory button it crashes the game with an error message like the one in this issue. Using a terminal to run Wargus it actually shows something more, like an error related to a double free memory corruption or something. Unfortunately, I didn't test the nightly builds of Stratagus to see if this bug is still present.