pyo icon indicating copy to clipboard operation
pyo copied to clipboard

Process finished with exit code -1073741819 (0xC0000005)

Open rsp4jack opened this issue 4 years ago • 22 comments

Server can't boot and crash. s = Server().boot() Process finished with exit code -1073741819 (0xC0000005)

rsp4jack avatar Mar 27 '20 05:03 rsp4jack

Same issue python 3.7 x64 pyo cp37 amd64 windows 10

work perfectly on linux

chninkel avatar Apr 01 '20 20:04 chninkel

Same. python 3.7 x64 windows 10

edouin avatar Apr 13 '20 08:04 edouin

i use Anaconda3 2019.10 windows 10

rsp4jack avatar Apr 13 '20 08:04 rsp4jack

windows 10 python3.8.2 also can't work

rsp4jack avatar Apr 14 '20 04:04 rsp4jack

x64

rsp4jack avatar Apr 14 '20 04:04 rsp4jack

@Creepercdn - I was having this same issue in windows but not in linux.

I saw this thread tonight - https://github.com/belangeo/pyo/issues/159

I'm not sure why its happening, but I was able to work my way into a fix.

Try this:

First. Disconnect any unneeded devices from your computer. In my case my Midi keyboard was causing issues 😕. Next, run:

from pyo import *
pa_list_devices()

and take note of a few potentially valid output devices. In my case it was device 79. The default device is 0, which for me was causing another issue causing a crash.

Next configure the following script with one of the devices you selected above

from pyo import *

MY_DEVICE = ## Your Device ID from pa_list_devices()
s = Server(duplex=0)
s.setOutputDevice(MY_DEVICE)
s.boot()

osc = Sine(freq=200).out()

s.gui(locals())

Hope this helps!

SteveMaybe avatar Apr 19 '20 04:04 SteveMaybe

I will try that. My computer install so much virtual audio/midi drivers.

rsp4jack avatar Apr 19 '20 06:04 rsp4jack

Not working too. Errorlevel:-1073741819 MME Output Device(virtual) in device list sample rate:44100hz, but audio settings is 48000hz. virtual audio device panel also set sample rate is 48000hz. WASAPI Output device sample rate all is 48000hz WDM-KS OUTput device sample rate same as MME. I can't find DirectSound device in device list. WASAPI can't use. It error: Portaudio error in Pa_OpenStream: Invalid device Pyo error: From portaudio, Invalid device Portaudio error in Pa_CloseStream (pa_deinit): PortAudio not initialized Portaudio error in Pa_Terminate (pa_deinit): PortAudio not initialized Pyo error: Server not booted.

rsp4jack avatar Apr 19 '20 07:04 rsp4jack

I will test pyo in WSL.

rsp4jack avatar Apr 19 '20 07:04 rsp4jack

Hmm. Can you share the results from the script here: http://ajaxsoundstudio.com/pyodoc/winaudioinspect.html

If that fails to run, can you share the output from the following script

from pyo import *

pa_list_devices()
pa_list_host_apis()

From the output, what device numbers did you try?

SteveMaybe avatar Apr 19 '20 15:04 SteveMaybe

Link is break. I use "Internet archive" to browse it. I can't run script in http://ajaxsoundstudio.com/pyodoc/winaudioinspect.html. It error -1073741819 Device/Host List: https://pastebin.com/NyfavYVt I did try 8 23 33 50, 33 it error invaild number. I want output to "VoiceMeeter Aux vaio". It send Processed audio to "Realtek HD Audio output", and send not Processed audio to VoiceMeeter Aux Output. I don't want use any input device in pyo.

rsp4jack avatar Apr 20 '20 00:04 rsp4jack

Which version of pyo? How did you install it? Did you set duplex=0?

belangeo avatar Apr 20 '20 01:04 belangeo

Pyo 1.0.1 pip install -U pyo Yes, i set. s = Server(duplex=0)

rsp4jack avatar Apr 20 '20 01:04 rsp4jack

Well, I can see anything but unplugging your devices one by one until you find the one that prevent pyo's Server from booting...

belangeo avatar Apr 20 '20 01:04 belangeo

How i unplug virtual device...

rsp4jack avatar Apr 20 '20 01:04 rsp4jack

Sorry, I really don't know... I don't use virtual devices.

belangeo avatar Apr 20 '20 01:04 belangeo

Maybe Disbale in audio settings?

rsp4jack avatar Apr 20 '20 01:04 rsp4jack

Try device

58: OUT, name: Speakers (VoiceMeeter vaio), host api index: 3, default sr: 44100 Hz, latency: 0.010000 s

I am also using VoiceMeeter and only my last device worked.

SteveMaybe avatar Apr 20 '20 01:04 SteveMaybe

Not working.

rsp4jack avatar Apr 20 '20 02:04 rsp4jack

But be sure that sampling rate and number of channels match with pyo's settings. Another thing to check with WDM-KS is the exclusive mode (if ON, be sure that no other app is already using the audio driver).

belangeo avatar Apr 20 '20 02:04 belangeo

But be sure that sampling rate and number of channels match with pyo's settings. Another thing to check with WDM-KS is the exclusive mode (if ON, be sure that no other app is already using the audio driver).

belangeo avatar Apr 20 '20 02:04 belangeo

All device sample rate is 48000hz.

rsp4jack avatar Apr 20 '20 03:04 rsp4jack