{"action":"created","issue":{"url":"https://api.github.com/repos/exult/exult/issues/1","repository_url":"https://api.github.com/repos/exult/exult","labels_url":"https://api.github.com/repos/exult/exult/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/exult/exult/issues/1/comments","events_url":"https://api.github.com/repos/exult/exult/issues/1/events","html_url":"https://github.com/exult/exult/issues/1","id":159339980,"number":1,"title":"Crash when Music is set to CoreMidi and MT32","user":{"login":"lavadrop","id":6760790,"avatar_url":"https://avatars.githubusercontent.com/u/6760790?v=3","gravatar_id":"","url":"https://api.github.com/users/lavadrop","html_url":"https://github.com/lavadrop","followers_url":"https://api.github.com/users/lavadrop/followers","following_url":"https://api.github.com/users/lavadrop/following{/other_user}","gists_url":"https://api.github.com/users/lavadrop/gists{/gist_id}","starred_url":"https://api.github.com/users/lavadrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavadrop/subscriptions","organizations_url":"https://api.github.com/users/lavadrop/orgs","repos_url":"https://api.github.com/users/lavadrop/repos","events_url":"https://api.github.com/users/lavadrop/events{/privacy}","received_events_url":"https://api.github.com/users/lavadrop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-06-09T06:56:30Z","updated_at":"2016-06-11T21:07:50Z","closed_at":null,"body":"When I configured Exult to use CoreMIDI and my real MT-32 through a Roland USB adapter, Exult crashes. When configured by running Exult through the terminal, the crash info is the following:\r\n\r\nExult version 1.5.0git\r\nBuilt at: May 14 2016 10:24:50\r\nCompile-time options: USE_FMOPL_MIDI, USE_MT32EMU_MIDI, HAVE_ZIP_SUPPORT, HAVE_OPENGL\r\nCompiler: gcc, version: 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)\r\n\r\nPlatform: Mac OS X\r\nExult path settings:\r\nData          : /Library/Application Support/Exult/data\r\nDigital music : /Library/Application Support/Exult/data/music\r\n\r\nLooking for 'blackgate' at '/Library/Application Support/Exult/blackgate'... found game with identity 'FORGE'\r\nLooking for 'forgeofvirtue' at '/Library/Application Support/Exult/forgeofvirtue'... but it wasn't there.\r\nLooking for 'serpentisle' at '/Library/Application Support/Exult/serpentisle'... found game with identity 'SILVER SEED'\r\nLooking for 'silverseed' at '/Library/Application Support/Exult/silverseed'... but it wasn't there.\r\nBlack Gate   : not found (<BLACKGATE_STATIC>/)\r\nForge of Virtue   : found\r\nexult_bg.flx : not found (/Library/Application Support/Exult/data/exult_bg.flx)\r\nSerpent Isle   : not found (<SERPENTISLE_STATIC>/)\r\nSilver Seed   : found\r\nexult_si.flx : not found (/Library/Application Support/Exult/data/exult_si.flx)\r\nChecking rendering support\r\n Windowed\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 640x480\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 800x600\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1024x768\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1280x720\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1280x1024\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1344x756\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1600x900\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1600x1200\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1680x1050\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1920x1080\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 1920x1200\t 8 bpp ok 16 bpp ok 32 bpp ok\r\n 2560x1440\t 8 bpp ok 16 bpp ok 32 bpp ok\r\nCreating AudioMixer...\r\nAudio opened using format: 44100 Hz 2 Channels\r\nTimbers Precached: On play only\r\nOGG Vorbis Digital Music: Disabled\r\nTrying config specified Midi driver: `CoreMidi'\r\nCoreMidi driver found 1 destinations:\r\n0: Unknown / Invalid\r\nSuccess!\r\nMidi Output: Enabled\r\nLLMD: Uploading Rhythm for note 28\r\nLLMD: Uploading Rhythm for note 33\r\nLLMD: Uploading Rhythm for note 74\r\nLLMD: Uploading Rhythm for note 76\r\nLLMD: Uploading Rhythm for note 77\r\nLLMD: Uploading Rhythm for note 78\r\nLLMD: Uploading Rhythm for note 79\r\nLLMD: Uploading Rhythm for note 80\r\nLLMD: Uploading Rhythm for note 81\r\nLLMD: Uploading Rhythm for note 82\r\nLLMD: Uploading Rhythm for note 83\r\nLLMD: Uploading Rhythm for note 84\r\nLLMD: Uploading Rhythm for note 85\r\nLLMD: Uploading Rhythm for note 86\r\nLLMD: Uploading Rhythm for note 87\r\nSegmentation fault: 11\r\nlogout\r\nSaving session...\r\n...copying shared history...\r\n...saving history...truncating history files...\r\n...completed.\r\n\r\nUsing CoreMIDI with GS, GM and GS127 works on my Roland SC-88 Pro (GS127 under CM64 mode). Strangely, when I tried again, I left the GS127 option and the MT-32 started outputting the most of the correct notes, but as soon as I changed it to MT32, it crashed again.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/exult/exult/issues/comments/225394239","html_url":"https://github.com/exult/exult/issues/1#issuecomment-225394239","issue_url":"https://api.github.com/repos/exult/exult/issues/1","id":225394239,"user":{"login":"DominusExult","id":3313896,"avatar_url":"https://avatars.githubusercontent.com/u/3313896?v=3","gravatar_id":"","url":"https://api.github.com/users/DominusExult","html_url":"https://github.com/DominusExult","followers_url":"https://api.github.com/users/DominusExult/followers","following_url":"https://api.github.com/users/DominusExult/following{/other_user}","gists_url":"https://api.github.com/users/DominusExult/gists{/gist_id}","starred_url":"https://api.github.com/users/DominusExult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominusExult/subscriptions","organizations_url":"https://api.github.com/users/DominusExult/orgs","repos_url":"https://api.github.com/users/DominusExult/repos","events_url":"https://api.github.com/users/DominusExult/events{/privacy}","received_events_url":"https://api.github.com/users/DominusExult/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T21:07:49Z","updated_at":"2016-06-11T21:07:49Z","body":"@wench seems like a legit memory corruption somewhere. This is my backtrace:\r\n´´´\r\nLMD: Uploading Rhythm for note 87\r\nProcess 13435 stopped\r\n* thread #1: tid = 0x3bd98c, 0x00007fff8b07cfd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\r\n    frame #0: 0x00007fff8b07cfd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182\r\nlibsystem_platform.dylib`_platform_memmove$VARIANT$Haswell:\r\n->  0x7fff8b07cfd6 <+182>: movb   (%rsi,%r8), %cl\r\n    0x7fff8b07cfda <+186>: movb   %cl, (%rdi,%r8)\r\n    0x7fff8b07cfde <+190>: subq   $0x1, %rdx\r\n    0x7fff8b07cfe2 <+194>: je     0x7fff8b07cff8            ; <+216>\r\n(lldb) bt\r\n* thread #1: tid = 0x3bd98c, 0x00007fff8b07cfd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\r\n  * frame #0: 0x00007fff8b07cfd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182\r\n    frame #1: 0x00000001000688c0 exult`BufferDataSource::read(this=0x0000000100fbca30, b=0x00007fff5fbfe4d0, len=4) + 48 at databuf.h:265\r\n    frame #2: 0x000000010010b6d5 exult`XMidiFile::ExtractTracks(this=0x0000000100c46d20, source=0x0000000100fbca30) + 1413 at XMidiFile.cpp:1423\r\n    frame #3: 0x000000010010b12e exult`XMidiFile::XMidiFile(this=0x0000000100c46d20, source=0x0000000100fbca30, pconvert=9) + 94 at XMidiFile.cpp:539\r\n    frame #4: 0x000000010010c753 exult`XMidiFile::XMidiFile(this=0x0000000100c46d20, source=0x0000000100fbca30, pconvert=9) + 35 at XMidiFile.cpp:536\r\n    frame #5: 0x000000010010542e exult`LowLevelMidiDriver::loadTimbreLibrary(this=0x000000010184fc00, ds=0x0000000100fbca30, type=TIMBRE_LIBRARY_XMIDI_FILE) + 1374 at LowLevelMidiDriver.cpp:1356\r\n    frame #6: 0x00000001000f0b37 exult`MyMidiPlayer::load_timbres(this=0x0000000100fc2230) + 1591 at Midi.cc:418\r\n    frame #7: 0x00000001000f619c exult`Pentagram::AudioMixer::openMidiOutput(this=0x0000000100a12e90) + 140 at AudioMixer.cc:403\r\n    frame #8: 0x00000001000e7d58 exult`Audio::Init(this=0x0000000100a278d0, _samplerate=22050, _channels=2) + 248 at Audio.cc:312\r\n    frame #9: 0x00000001000e7c08 exult`Audio::Init() + 184 at Audio.cc:257\r\n    frame #10: 0x000000010005f6fb exult`Init() + 1275 at exult.cc:954\r\n    frame #11: 0x000000010005b3dd exult`exult_main(runpath=\"/Users/Dominus/Code/Git/exult/exult\") + 6717 at exult.cc:754\r\n    frame #12: 0x00000001000595d2 exult`main(argc=1, argv=0x00007fff5fbff780) + 3234 at exult.cc:424\r\n    frame #13: 0x0000000100001ac4 exult`start + 52\r\n´´´"}}
{"actor":{"display_login":"DominusExult"}}