tildearrow / furnace

a multi-system chiptune tracker compatible with DefleMask modules
GNU General Public License v2.0
2.65k stars 209 forks source link

Furnace crashes when attempting a WAV export (macOS and Android) #2068

Open host12prog opened 3 months ago

host12prog commented 3 months ago

there are actually 2 variants:

how to reproduce variant 1:

how to reproduce variant 2:

on variant 2: Eknous did a bit of investigation and it appears that the app is segfaulting after rendering the WAV file, and has pinpointed it down to a line in src/audio/sdlAudio.cpp, line 49:

SDL_CloseAudioDevice(ai);

i haven't investigated variant 1, but i'd imagine that it is crashing because no audio devices have been opened, while in variant 2, an audio device HAS been opened (because of the playback), so it will render just fine

tildearrow commented 3 months ago

The problem is that I fail to reproduce this issue. I wonder why does closing audio device result in a crash...

tildearrow commented 2 months ago

Build Git master. I have pushed a possible fix.

tildearrow commented 2 months ago

It still crashes...