Skip to content

OpenTESArena crashes when using a release build of WildMIDI #192

Closed
@Allofich

Description

@Allofich

Link to the original issue afritz1/OpenTESArena#69.

OpenTESArena uses WildMidi. If run with a Debug or RelWithDebugInfo build of WildMIDI, no crash happens, but if run with a Release build, a crash always happens. Only tested on Windows 7, 64-bit.

Steps to reproduce crash:
First you need OpenTESArena running with MIDI.
It requires a copy of The Elder Scrolls: Arena (the free, floppy-disk version released by Bethesda Softworks) to be installed. It's easy to find. Next,

  1. Download the latest OpenTESArena release (https://github.com/afritz1/OpenTESArena/releases).
  2. Get the eawpats MIDI sound patch library:
    https://github.com/afritz1/OpenTESArena/releases/download/opentesarena-0.1.0/eawpats.zip
    or
    https://github.com/afritz1/OpenTESArena/releases/download/opentesarena-0.1.0/eawpats.tar.gz
    and put the extracted contents into the OpenTESArena data folder.

Make sure you set the path to your installation of Arena in the OpenTESArena options file. The easiest thing to do if you just want to quickly get the game up and running is to directly modify the default in the options-default.txt in the OpenTESArena options folder.

Try the game, it will run fine.
Now replace the supplied wildmidi_dynamic.dll, which I think is a RelWithDebugInfo build, with a Release build of WildMIDI. (As of this writing the latest commit is b008d78)

Start the game. It is fine until you try to leave the title menu to start the game, for example by clicking "Test" at the bottom of the screen, or when you exit the game. For information on the code in OpenTESArena involved in the crash and the specific line in the WildMIDI code that the program crashes on, please see the issue over at OpenTESArena I linked to above. It seems it may have something to do with _WM_do_meta_copyright.

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