Closed connorjclark closed 7 months ago
This looks like a bug in MIDIA5. When creating an output handle with midia5_create_output_handle()
, the platform-specific code it defers to has the potential to return NULL
. When this happens, midia5_create_output_handle()
should fail and return NULL
instead of the partially initialized handle.
Fixed in dc2d68ad51598d0d0c3b94b4cff905a409cc6ecf.
I have a user crash report that lands in this method: https://zeldaclassic.sentry.io/share/issue/97684d22a3a146f1851588b9fd77e424/
It seems that
cm_data
is null here.My expectation is that if
midia5_create_output_handle
failed (due to_midia5_init_output_platform_data
not being able to get a MIDIA5_PLATFORM_DATA handle), thena5_midi_init
(allegro5 midi init method) would fail and somidi_driver->raw_midi
should be null now. Perhaps that's not the case?The user that reported this crash was able to fix this by running something called Codec Tweak Tool (following this guide)