igorski / MWEngine

Audio engine and DSP library for Android, written in C++ providing low latency performance within a musical context, while providing a Java/Kotlin API. Supports both OpenSL and AAudio.
MIT License
259 stars 45 forks source link

abort_message: assertion "terminating with uncaught exception of type std::out_of_range: vector" failed #98

Closed stylixpro closed 3 years ago

stylixpro commented 5 years ago

Run example app, then close app without any action. Shows app crash message with "terminating with uncaught exception of type std::out_of_range: vector" message Playing music and slider control works as expected. only after closing app that message is displayed

igorski commented 5 years ago

Hi, could you paste the full stack trace of the crash to get a better idea of where the out of range error is thrown ?

stylixpro commented 5 years ago

It doesn't give any useful information. Logcat message is below

06-18 20:23:28.680 25033-25033/nl.igorski.example V/MWENGINE: STOPPING engine 06-18 20:23:28.700 25033-25054/nl.igorski.example V/MWENGINE: STOPPED engine 06-18 20:23:28.700 25033-25054/nl.igorski.example D/MWENGINE: native audio rendering thread halted 06-18 20:23:29.070 25033-25033/nl.igorski.example V/MWENGINE: RESET engine 06-18 20:23:29.070 25033-25033/nl.igorski.example D/MWENGINE: MWEngineActivity destroyed 06-18 20:23:34.120 25033-25045/nl.igorski.example A/libc: /usr/local/google/buildbot/src/android/ndk-release-r19/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::out_of_range: vector" failed 06-18 20:23:34.120 25033-25045/nl.igorski.example A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 25045 (FinalizerDaemon)

Screenshot_2019-06-18-20-24-44

igorski commented 4 years ago

This is likely addressed in 3096d92ced9c6926a3664989f05727aae4e3938e where a similar error was the culprit. Can you verify whether this change works for you ?

igorski commented 3 years ago

Closing as there has been no recent activity on this question, nor any similar reports.