Opened 4 years ago
#16967 new bug
Crash when destroying BMidiSynthFile that is currently playing
Reported by: | milek7 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Midi Kit | Version: | R1/beta2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description
When destroying BMidiSynthFile that is currently playing, it sometimes crashes in MidiEventThread due to some race condition. Crashlog attached.
I'm not sure, but I think the cause might be that BSoftSynth functions are calling snooze_until immediately before calling fluid_synth_* functions. It seems to me that if object is deleted from main thread during that snooze, it will crash. https://github.com/haiku/haiku/blob/8f16317a5b6db5c672f331814273e5857555020f/src/kits/midi/SoftSynth.cpp#L382
Attachments (1)
Note:
See TracTickets
for help on using tickets.