Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert fails in pyinstaller compiled binary #978

Open
hananbeer opened this issue Nov 8, 2024 · 1 comment
Open

assert fails in pyinstaller compiled binary #978

hananbeer opened this issue Nov 8, 2024 · 1 comment

Comments

@hananbeer
Copy link

I have a python script that works in the interpreter and it uses PyAudioWPatch (a windows patch of pyaudio, which may or may not be related)

but whenever I use pyinstaller it keeps crashing at random times, sometimes with this assert:

assert( hostApi->info.defaultInputDevice < hostApi->info.deviceCount );

it seems pretty inconsistent as sometimes there is no error at all, but at least sometimes as this assert suggests it fails enumerating the devices / getting device count / (unlikely but) the default device index is out of bounds?

the mac version of pyinstaller works so it seems specific to windows.

@RossBencina
Copy link
Collaborator

RossBencina commented Nov 15, 2024

The obvious possibilities are that it is a bug in the host api that is initializing that hostApi->info struct, or the memory is getting corrupted somehow.

I don't know what pyinstaller is. Are you always using the same PortAudio binary or does that vary between the setup that works and the setup that fails the assert?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants