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.

Leopard Issue: OSError: exception: stack overflow

See original GitHub issue

Expected behaviour

Leopard outputs transcribed text from audio.

Actual behaviour

Leopard throws an OSError.

Steps to reproduce the behaviour

  1. pip3 install pvleoparddemo
  2. leopard_demo_file --access_key ${ACCESS_KEY} --audio_paths ${AUDIO_PATH}
  3. 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

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JartanFTWcommented, Dec 15, 2022

@JartanFTW Interesting! maybe the issue you’re encountering is different from what we have identified and fixed. I assume you are still using the same input audio file with the length of 38 mins, right? Is it possible for you to try the Leopard demo on macOS or Linux by any chance?

I am still using the same file, yes. I’ll try on Linux soonish, but no access to macOS.

1reaction
anthonyanikoscommented, Dec 14, 2022

I can say - HURRAY! All is working with 1.1.4 - THANK U A LOT mrrrostam and picovoice team

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ctypes: OSError: exception: stack overflow - python
Python throw this error when program run to dec(&buffer2, &length, &buffer); . Both python and dll are x64. #include "Decompress.h" #pragma ...
Read more >
OSError: exception: stack overflow · Issue #2555 · apache/mxnet
This is an interesting problem that raises up. This was due to the usage of shared_ptr inside the symbol and the deletion triggered...
Read more >
Stack overflow in task extraction - Apache TVM Discuss
In keeping my fork updated, the latest from master is giving me a stack overflow in the autotvm.task.extract_from_program.
Read more >
Convert a CameraImage to ui.Image in Flutter - Stack Overflow
[edit] The problem seems to be that the code I'm trying to use, doesn't work inside an isolate. When I try the same...
Read more >
Fatal Python error: Cannot recover from stack overflow.
Sometimes it happens immediately after trying to attach, sometimes the operation is successful, and it happens after a few seconds of doing some...
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