flaing / jnibwapi

Automatically exported from code.google.com/p/jnibwapi
0 stars 0 forks source link

Running a Local PC match a second time crashes Java #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps I took:

1. Set ChaosLauncher to use these settings:
auto_menu = SINGLE_PLAYER
lan_mode = Local PC
auto_restart = ON
game_type = MELEE
2. Run JNIBWAPI (through Eclipse), run Starcraft Multi-instance twice, have it 
play a 1v1 game against either an AI or human player.
3. Upon starting the second game, Java crashes.

Starcraft continues to run as normal.
Starcraft displays the message "BWAPI r4160 is now live using <Client 
Connection>.", but the JNIBWAPI console doesn't show "Bridge: Starting match!".
The method matchStart() is never called.
When running the provided pre-compiled JNIBWAPI AI, a "Java(TM) Platform SE 
binary has stopped working" message appears. When running from Eclipse, no 
error message appears - Eclipse justs terminates the execution.

Using r64 unmodified, Windows 8.1 32-bit.

Original issue reported on code.google.com by MechPla...@gmail.com on 24 Feb 2014 at 4:04

GoogleCodeExporter commented 9 years ago
Follow up: I've been testing it a bit more, and it seems that this only happens 
with Melee or Free For All, while Top Vs Bottom and map settings for Allied 
maps are fine.

Original comment by MechPla...@gmail.com on 25 Feb 2014 at 12:53

GoogleCodeExporter commented 9 years ago
That sounds like the crash is happening in the C++ code, specifically, in the 
section:
while (!Broodwar->isInGame()) {
    BWAPI::BWAPIClient.update();
    if (Broodwar == NULL) {
        return;
    }
}

This may be a more general problem in BWAPI - BWAPI definitely has some issues 
using multi-instance in certain configurations. Often for AI-vs AI it is 
recommended to use a VM. Maybe ask about this on the BWAPI forums/facebook/IRC 
and see if the problem is common to BWAPI (and please report back with 
findings)?

Original comment by phogle...@gmail.com on 25 Feb 2014 at 11:01