billthefarmer / mididriver

Android midi driver using Sonivox EAS library
176 stars 52 forks source link

SIGSEGV from all versions above and including 1.22 #46

Closed Sola85 closed 2 years ago

Sola85 commented 2 years ago

I'm getting crashes when initializing all recent versions of the library, starting with v1.22:

A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 11423 (.appname), pid 11423 (.appname)

I know that this feedback alone probably isn't very helpful, but I'm very inexperienced when it comes to debugging native code, so help or guidance on what further details that I could provide, would be very much appreciated.

Sola85 commented 2 years ago

New information: the crash only happens when calling midiDriver.stop() before calling midiDriver.start() which previously worked fine. So this might be less of an issue after all.

billthefarmer commented 2 years ago

If you call midiDriver.start() from onResume() and midiDriver.stop() from onPause() as per the README then this can't happen, android takes care of it. I have added code to stop this which will be in the next version.