I wrote a program that uses pyaudio to record and play audio signal simultaneously. for some unknown reason sometimes when playing signals the program crashes with this error:
Unhandled exception at 0x72A6AE7A (msvcr90.dll) in python.exe: 0xC0000005: Access violation reading location 0x02F4DB94.
the program uses the libraries pygame, pyaudio, numpy
is there a way to understand where exactly is the problem ? Thank you, Netanel
This is more a workaroud than a proper answer, but: The problem ceased to exist when the signal was played by using the "blocking" mechanism of pyaudio, ie: opening a stream something like:
and then playing with something like:
the use of the non blocking mode play (by configuring a callback function for the stream) seems to have be the source for the crashes.