leopard: Leopard Issue: OSError: exception: stack overflow
Expected behaviour
Leopard outputs transcribed text from audio.
Actual behaviour
Leopard throws an OSError.
Steps to reproduce the behaviour
pip3 install pvleoparddemoleopard_demo_file --access_key ${ACCESS_KEY} --audio_paths ${AUDIO_PATH}- Wait
Other Information
I cannot provide the audio file I am using, sorry. I have tried a different audio file and Leopard does work correctly for it. The audio file I am using is not broken, and behaves normally in any other circumstance I’ve observed.
Full traceback:
Traceback (most recent call last): File "C:\Users\jgogo\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\jgogo\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\jgogo\AppData\Local\Programs\Python\Python310\Scripts\leopard_demo_file.exe\__main__.py", line 7, in <module> File "C:\Users\jgogo\AppData\Local\Programs\Python\Python310\lib\site-packages\pvleoparddemo\leopard_demo_file.py", line 36, in main transcript, words = o.process_file(audio_path) File "C:\Users\jgogo\AppData\Local\Programs\Python\Python310\lib\site-packages\pvleopard\leopard.py", line 253, in process_file status = self._process_file_func( OSError: exception: stack overflow
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
I am still using the same file, yes. I’ll try on Linux soonish, but no access to macOS.
I can say - HURRAY! All is working with 1.1.4 - THANK U A LOT mrrrostam and picovoice team
I’ve reopened the issue as I was able to reproduce it (only) on Windows for long files
It seems that Leopard has some odd issue with the content of the file. Unfortunately, there is no way for us to reproduce and debug the problem on our end at this point.
If you see the same issue with a different file that you can share with us, please let us know and we’ll continue from there.
This is from a converted mp3 file:
ffprobe version 5.1.2-full_build-www.gyan.dev Copyright (c) 2007-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Input #0, mp3, from '2022-11-14 15-02-13.mp3': Metadata: encoder : Lavf59.27.100 Duration: 00:38:26.86, start: 0.023021, bitrate: 271 kb/s Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 271 kb/s Metadata: encoder : Lavc59.37This is from an original mkv file:
ffmpeg version 5.1.2-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Input #0, matroska,webm, from '2022-11-14 15-02-13.mkv': Metadata: ENCODER : Lavf59.16.100 Duration: 00:38:26.83, start: 0.000000, bitrate: 842 kb/s Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn Metadata: DURATION : 00:38:26.834000000 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp Metadata: title : All Audio DURATION : 00:38:26.816000000 Stream #0:2: Audio: aac (LC), 48000 Hz, stereo, fltp Metadata: title : Computer DURATION : 00:38:26.816000000 Stream #0:3: Audio: aac (LC), 48000 Hz, stereo, fltp Metadata: title : Microphone DURATION : 00:38:26.816000000