question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting std::bad_alloc when trying to use vosk-model-en-us-aspire-0.2

See original GitHub issue

How much RAM does this model need?

My android device has plenty of RAM so I don’t understand why this does not work. Many thanks

Library used: name: ‘vosk-android’, version: ‘0.3.23’

(standard input)-8287-05-11 14:08:09.393 11999 11999 F libc    : /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
(standard input):8288:05-11 14:08:09.393 11999 11999 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 11999 (org.vosk.demo), pid 11999 (org.vosk.demo)
(standard input)-8289-05-11 14:08:09.451 12576 12576 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
(standard input)-8290-05-11 14:08:09.452  1757  1757 I /system/bin/tombstoned: received crash request for pid 11999
(standard input)-8291-05-11 14:08:09.452 12576 12576 I crash_dump32: performing dump of process 11999 (target tid = 11999)
(standard input)-8292-05-11 14:08:09.455 12576 12576 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
(standard input)-8293-05-11 14:08:09.455 12576 12576 F DEBUG   : Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:9/PSR1.180720.117/5875966:user/release-keys'
(standard input)-8294-05-11 14:08:09.455 12576 12576 F DEBUG   : Revision: '0'
(standard input)-8295-05-11 14:08:09.455 12576 12576 F DEBUG   : ABI: 'x86'
(standard input):8296:05-11 14:08:09.455 12576 12576 F DEBUG   : pid: 11999, tid: 11999, name: org.vosk.demo  >>> org.vosk.demo <<<
(standard input)-8297-05-11 14:08:09.455 12576 12576 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
(standard input)-8298-05-11 14:08:09.455 12576 12576 F DEBUG   : Abort message: '/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed'
(standard input)-8299-05-11 14:08:09.455 12576 12576 F DEBUG   :     eax 00000000  ebx 00002edf  ecx 00002edf  edx 00000006
(standard input)-8300-05-11 14:08:09.455 12576 12576 F DEBUG   :     edi 00002edf  esi 00000000
(standard input)-8301-05-11 14:08:09.455 12576 12576 F DEBUG   :     ebp ff910714  esp ff9106a8  eip efcf0b39
(standard input)-8302-05-11 14:08:09.458 12576 12576 F DEBUG   :
(standard input)-8303-05-11 14:08:09.458 12576 12576 F DEBUG   : backtrace:
(standard input)-8304-05-11 14:08:09.458 12576 12576 F DEBUG   :     #00 pc 00000b39  [vdso:efcf0000] (__kernel_vsyscall+9)
(standard input)-8305-05-11 14:08:09.458 12576 12576 F DEBUG   :     #01 pc 0001fdf8  /system/lib/libc.so (syscall+40)
(standard input)-8306-05-11 14:08:09.458 12576 12576 F DEBUG   :     #02 pc 00022ed3  /system/lib/libc.so (abort+115)
(standard input)-8307-05-11 14:08:09.458 12576 12576 F DEBUG   :     #03 pc 00023388  /system/lib/libc.so (__assert2+56)
(standard input):8308:05-11 14:08:09.458 12576 12576 F DEBUG   :     #04 pc 00826a74  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so
(standard input):8309:05-11 14:08:09.458 12576 12576 F DEBUG   :     #05 pc 00826bde  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so
(standard input):8310:05-11 14:08:09.458 12576 12576 F DEBUG   :     #06 pc 008235a9  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so
(standard input):8311:05-11 14:08:09.458 12576 12576 F DEBUG   :     #07 pc 008229ae  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so
(standard input):8312:05-11 14:08:09.458 12576 12576 F DEBUG   :     #08 pc 00822903  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so (__cxa_throw+115)
(standard input):8313:05-11 14:08:09.458 12576 12576 F DEBUG   :     #09 pc 00816701  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so (operator new(unsigned int)+129)
(standard input):8314:05-11 14:08:09.458 12576 12576 F DEBUG   :     #10 pc 00702d72  /data/app/org.vosk.demo-N-Svv_9kddY2DCRlh9LKhg==/lib/x86/libvosk.so (fst::MappedFile::Map(std::__ndk1::basic_istream<char, std::__ndk1::char_traits<char>>*, bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, unsigned int)+994)
(standard input)-8315-05-11 14:08:09.536  1757  1757 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_07
(standard input):8316:05-11 14:08:09.536  1878 12579 W ActivityManager:   Force finishing activity org.vosk.demo/.VoskActivity
(standard input)-8317-05-11 14:08:09.550  1878  1892 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
nshmyrevcommented, May 16, 2021

Feel free to reopen if needed.

0reactions
dewijones92commented, May 14, 2021

@nshmyrev many thanks for this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Models error Fatal error · Issue #677 · alphacep/vosk-api
I have checked, small models download just fine. I ran it I am getting a fatal error, below: You do not have enough...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found