After some discussion we determined that the important part of this error is:
malloc(296392224) failed: returning null pointer
and it's just happening when the Android emulator runs out of memory. It looks like there are two problems. One, hot reloading leaks memory, and two, the app crashes if you load too many samplers and run out of memory. It would also be great if there was a synthesizer that supports streaming samples from disk instead of loading them all into RAM. We can come back to these later.
After some discussion we determined that the important part of this error is:
and it's just happening when the Android emulator runs out of memory. It looks like there are two problems. One, hot reloading leaks memory, and two, the app crashes if you load too many samplers and run out of memory. It would also be great if there was a synthesizer that supports streaming samples from disk instead of loading them all into RAM. We can come back to these later.
_Originally posted by @mikeperri in https://github.com/mikeperri/flutter_sequencer/issues/2#issuecomment-730852806_