tildearrow / furnace

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

CSM crashes when using ymfm! #2215

Open tildearrow opened 7 hours ago

freq-mod commented 3 hours ago
Stack trace (most recent call last) in thread 18031:
#8    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#7    Object "/usr/lib/libc.so.6", at 0x782e3372849b, in 
#6    Object "/usr/lib/libc.so.6", at 0x782e336a339c, in 
#5    Object "/usr/lib/libSDL2-2.0.so.0", at 0x782e33f072e9, in 
#4    Object "/usr/lib/libSDL2-2.0.so.0", at 0x782e33de3802, in 
#3    Object "furnace", at 0x563463f12bad, in TAAudioSDL::onProcess(unsigned char*, int)
#2    Object "furnace", at 0x563463d4614f, in DivEngine::nextBuf(float**, float**, int, int, unsigned int)
#1    Object "furnace", at 0x563463d39b96, in 
#0    Object "furnace", at 0x563463ddf211, in DivPlatformYM2608::acquire_ymfm(short**, unsigned long)
Segmentation fault (Address not mapped to object [0x20])
Eknous-P commented 1 hour ago

the crash is in src/engine/platform/ym2608.cpp, between lines 482 and 490 (where oscBuf is filled) and yes the per-chan osc is wrong after the csm channel