Skip to content

[migrated] Running a Local PC match a second time crashes Java #5

@phoglenix

Description

@phoglenix

Reported by [email protected], Feb 24, 2014

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 .", 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.

Feb 24, 2014
#1 [email protected]

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.

Feb 25, 2014
Project Member #2 [email protected]

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions