alphacep / vosk-android-demo

Offline speech recognition for Android with Vosk library.
Apache License 2.0
714 stars 187 forks source link

MI 8, API Level 28: Assertion failed: (-min <= tolerance * max) #167

Open ramunl opened 2 years ago

ramunl commented 2 years ago

11-17 06:55:48.886: W/VoskAPI(21737): LinearCgd():optimization.cc:549) Doing linear CGD in dimension 30, after 15 iterations the squared residual has got worse, 156003 > 451.406. Will do an exact optimization. 11-17 06:55:48.887: A/VoskAPI(21737): SymPosSemiDefEig():sp-matrix.cc:62) Assertion failed: (-min <= tolerance * max) 11-17 06:55:48.887: A/VoskAPI(21737): --------- beginning of crash 11-17 06:55:48.888: A/libc(21737): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 23681 (Thread-8), pid 21737 (t.recorder.test) 11-17 06:55:48.891: D/libEGL(21737): eglInitialize: enter 11-17 06:55:48.891: D/libEGL(21737): eglInitialize: exit(res=1)

Is there any workaround for this issue?

nshmyrev commented 2 years ago

Ok, and how to reproduce this? Does it happen always or in some particular case?

ramunl commented 2 years ago

I got this crash when I tried to use two AudioRecord instances simultaneously. The second one is used in video recording. Probably it can be the problem reason.

nshmyrev commented 2 years ago

Not sure I follow your setup then, you'd better provide as many details as possible including the code sample.

JennyCGT commented 11 months ago

Hello @ramunl, I have experimented with the same bug. I cannot replicate this issue but I notice that it happens when the app has been used for a long time. Do you found any solution?