#W-Okada (TG Fork) - xhr poll error

1 messages · Page 1 of 1 (latest)

crisp musk
#

So this has been an ongoing battle for about a month now. I'm on a brand new PC and I've been using W-Okada for a few months.
I use W-Okada and it works fine usually, then one day it stopped working. It refuses to work and it just crashes to desktop. Below are my PC specs.

  • CPU: Ryzen 9 7900 12 Core Processor
  • GPU: GIGABYTE Radeon RX 9070 XT | 16 GB VRAM
  • RAM: 64 GB DDR5
  • OS: Windows 10
  • Browser: Brave Browser

Main Issue: I'll open W-Okada and I will swap it to "Server" as Client has completely stopped working (which is what I used to use.), I'll fire up the program, then the CMD window will freeze for 5 seconds before closing without anything else. Then in my browser I get an xhr poll error. It doesn't even work if I swap it to CPU. It only fully crashes on Server, and Client does not work.

What I am looking for: Someone else who uses the same or similiar GPU/CPU set up that I have, could you recreate this issue.
Things I've tried so far...the list grows.

  • Using the latest Windows Update (EOS Update)
  • Using Current GPU Drivers
  • Rolled Back Current GPU Drivers (September 2025)
  • Updated BIOS
  • Reset my PC multiple times.

If anyone can figure this out and actually help me to get it working or make a private fork of the program that you keep updated for me, I'll throw $50-75 USD your way for the trouble. Thanks in advanced.

#

Feel free to directly ping me if you figure something out.

hollow hearth
#

have you tried a different browser?

crisp musk
#

<@&1159293204038955078>

hollow hearth
#

check advanced settings and try to change from sio to rest

#

try disabling windows defender/any other antivirus too

#

try vac lite

crisp musk
#

I have VAC Lite.

hollow hearth
crisp musk
crisp musk
hollow hearth
crisp musk
hollow hearth
crisp musk
#

Let me try that next.

hollow hearth
hollow hearth
crisp musk
hollow hearth
crisp musk
#

Yeah when I open it, it does.

hollow hearth
#

can u make it crash on purpose then send a screenshot of what the cmd window says?

crisp musk
#

That's the thing, the CMD window just closes.

hollow hearth
#

or miliseconds lol

crisp musk
#

Uh

#

I think so

#

Let me check.

hollow hearth
# crisp musk

ok so this says nothing

hmmmmm, does it works if you use contentvec/hubert?

hollow hearth
# crisp musk

uhh, try downloading fcpe onnx and see if it works

crisp musk
#

Nope. Crashes.

hollow hearth
crisp musk
#

Let me download that one again.

#

Oh

#

That's the one I was using I think.

hollow hearth
#

this is the deiteris fork for amd ^

crisp musk
#

The next step for me is to buy a new SSD and put Windows 11 on it and try it from there on a clean Windows install.

hollow hearth
#

uhh what about trying chrome and firefox?

crisp musk
#

Let me see if Chrome works.

#

Nope.

#

Even on a different browser.

hollow hearth
#

weird, this must be something deeper

#

here are all of the versions of the tg develop fork

#

perhaps an older version may still work for your system?

crisp musk
#

Let me try.

hollow hearth
#

You could try updating your internet driver, but it's a bit risky

crisp musk
#

I doubt it's that.

hollow hearth
#

looks like some weird unknown hardware issue

crisp musk
crisp musk
#

Even upgrading to Windows 11.

#

It's not working.

#

I have no idea.

smoky geode
# hollow hearth looks like some weird unknown hardware issue

It's hardware for sure, nothing else would explain why it continues to fail no matter the settings/drivers and even after clean OS reinstall.
But it's so hard to locate. At this point I think live debugging and code tracing is the only sensible way to find the cause

smoky geode
#

Assuming I don't forget to do it, perhaps I could pull the code ~tomorrow, take a look, maybe add some debug logs and build it for you to run it. Far from ideal (ideally one would want to directly debug it in reproducible scenario but, well, we can't reproduce it) but the additional logs could help locate where it crashes.

#

Haven't ever taken a look at tg's code and build env so no details yet from my side, but I'll check later and maybe there's a chance we could figure it out

brave crypt
#

If nothing above works, can you try using CPU? I have seen users with similar hardware having similar issues: #✨│ai-help message

crisp musk
#

Yeah my PC should be able to run the program with zero issues.

crisp musk
brave crypt
#

might want to downgrade to the gpu drivers you used a month ago

crisp musk
brave crypt
#

was it working previously with the same hardware you have rn or were you on an nvidia gpu?

crisp musk
#

My old PC ran it just fine.

#

My old PC is Nvidia but is weaker than my current PC.

#

Old PC is 32 GB DDR 4, Ryzen 5 CPU, and 30 series card in it.

brave crypt
crisp musk
#

No it did.

crisp musk
smoky geode
#

It loses connection because this is when the app crashes. This has nothing to do with networking/firewall/browser.

#

Disabling a firewall should work as expected and allow all network traffic. It would be silly if the entire thing had to be uninstalled just for this purpose.

#

That would be terribly bad design

brave crypt
#

that would be weird since this issue seems to happen only for AMD GPU users on Windows tbh

crisp musk
#

Good Morning.

#

I just woke up. I'll start troubleshooting after I get some breakfast.

#

So Client seems to be "working" in a loose sense.

#

It works but no audio is being transferred.

flint horizon
#

I thought the server was still running when I said what I did. My mistake. Forget about what I said then. (I'll remove the misinformation, otherwise the OP might do something that isn't good.) "it crashed on the server" is what confused me on that part.

flint horizon
#

When you run the server, it generates audio files inside the user's temp directory. (it doesn't remove these). I think the crash might be caused by the permission settings on the directories it tries to access currently.

#

but without a log, idk for sure.

#

The server has a log file, there is also a Windows Logs entry within windows that can help figure out why it closed. (Perhaps the CMD window didn't get the time to display the output, but it was still logged within the logs file as to why it crashed.)

crisp musk
#

So is there a way for me to log it?

flint horizon
#

Yeah, there is.

#

Launch the server as: MMVCServerSIO.exe --log-level debug

smoky geode
crisp musk
#

Do I do this through CMD?

flint horizon
#

Yeah, or make a shortcut and then change the target value

#

CMD can do it

smoky geode
#

having high hopes about this

#

hopefully will shed some more light

flint horizon
#

when the server crashes, you don't need to screenshot. All of its logs can be found in vcclient.log (a text file located where mmvcserversio.exe is)

crisp musk
flint horizon
#

I just noticed that I have errors that aren't registered into vcclient.log. (errors that happen when I shut down the server). You may need to make a screenshot anyway.

#

When you launch the server using the windows 11 terminal (with cmd or powershell), then the window remains open when it crashes. This helps read errors you may otherwise miss, (which I just did).

crisp musk
hollow hearth
flint horizon
# crisp musk

That's Powershell (indicated by PS), it works differently from CMD. You indeed need to use .\MMVCServerSIO.exe --log-level debug instead when using powershell

crisp musk
#

Yeah I got it up and running now.

#

Gonna do my usual routine with the log up.

#

@flint horizon

#

Ok so it crashed.

#

But the log is still up.

smoky geode
#

anything new in it?

crisp musk
#

I have no clue how to read this.

smoky geode
#

you can show us

crisp musk
#

Ok. I know you guys said I can dump the log file.

smoky geode
#

especially interesting if anything new appeared at the moment of the crash

#

Yeah, you can actually just copy and paste all text from the commandline window

#

perhaps to a file if it's too long

#

and send us the file

#

(pastebin is a nice alternative)

crisp musk
#

Ok 1 sec

smoky geode
#

damn, doesn't look like there's any decent hint in it

#

unless i'm misinterpreting something

#

maybe Rumi will notice something I don't

flint horizon
#

There are a number of strange things going on actually...

smoky geode
#

is the GPU faiss failure the thing?

#

I dunno if it's expected to always be supported

flint horizon
#

Yeah, idk what is going on, but here's for example what happens when I run the server at start:

2026-04-01 16:49:33,334 INFO     [main] Python: 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
2026-04-01 16:49:33,336 INFO     [main] Voice changer version: b2397 DirectML
2026-04-01 16:49:33,337 INFO     [main] Server settings: model_dir='model_dir' sound_dir='sound_dir' content_vec_500_onnx_on=True host='127.0.0.1' port=18888 ssl_enabled=False ssl_certfile=None ssl_keyfile=None allowed_origins=[] edition='DirectML'
2026-04-01 16:49:33,337 INFO     [main] Checking for mandatory models...
2026-04-01 16:49:33,444 INFO     [ModelManager] All mandatory models are already downloaded.
2026-04-01 16:49:37,638 INFO     [loader] Loading faiss with AVX2 support.```
#

see that? What I am not seeing here for example is the whole logging about Weights

#

so it's immediately strange to me basically

smoky geode
#

you're using different versions, that's for sure

#

2397 vs 2377

#

so some differences perhaps are expected

#

i can't compare directly because I don't have an AMD GPU anyway so it would be pointless from my side

flint horizon
#

So he's using an older version... hm

hollow hearth
#

hes crashing in the latest version too

smoky geode
#

yeah, a lot of different things have been attempted before

flint horizon
#

The log doesn't show why it crashed unfortunately.

crisp musk
#

Bruh

smoky geode
#

yeah, so it's the same case as before adjusting the log level. It crashes suddenly with no info

flint horizon
#

That said, the entire part below 2026-04-01 16:49:41,720 INFO [server] -------- 2026-04-01 16:49:41,720 INFO [server] The server is listening on http://127.0.0.1:18888/ 2026-04-01 16:49:41,720 INFO [server] --------
is different from what it reads on the latest version

hollow hearth
#

[DeviceManager] Switched to CPU (cpu). FP16 support: False

wait what, you tried cpu infer?

smoky geode
#

Guess it all comes down to adding additional logs in code and testing like that

hollow hearth
#

tg-develop has the ability to turn on fp32?

flint horizon
#

I mean the developer clearly changed the logging output

flint horizon
hollow hearth
#

i see

#

loamy try to force fp32 mode

brave crypt
smoky geode
#

yeah, for sure!

flint horizon
crisp musk
#

So what should I do?

hollow hearth
#

enable FP32

loud void
#

Now this is what makes helping about voice changer more fun than typical threads about simply getting newer versions. mikathink

hollow hearth
#

we dont need new realtime clients, we need a better architecture

flint horizon
#

glad you enjoy reading through this

crisp musk
#

So do I need to use the TG Dev Fork?

flint horizon
#

yeah preferrably. It probably works best with your gpu. (also note: I too use an amd gpu, but its an older gen one)

crisp musk
#

Ok. Let me fire it up.

#

What is FP32?

hollow hearth
#

how precise the ai calculations gonna be

crisp musk
#

Someone said I need to enable it?

hollow hearth
#

by default realtime clients use fp16 because is faster than fp32

#

but not all gpus support fp16

#

w-okada automatically switchs to fp32 if it detects a non fp16 capable gpu

crisp musk
#

Ok

#

I'm gonna fire it up on the newest build then.

#

One moment.

hollow hearth
#

okay just try to force fp32 mode

#

deiteris fork has that setting in the advanced settings

loud void
hollow hearth
#

no clue about tg-develop

smoky geode
#

probably similar, tg is fork of deiteris

flint horizon
#

You can set it by changing the json directly as well: "forceFp32": 1

crisp musk
smoky geode
#

Switched to 0: AMD Radeon RX 9070 XT (DirectML) (privateuseone:0). FP16 support: True
so i guess fp16 should not be the issue

#

but sure worth trying with fp32

#

at this point any new idea is good to try

crisp musk
#

I forced the FP32

hollow hearth
crisp musk
#

They do.

#

But I don't use them

hollow hearth
#

try to use one of them

#

it crashes with a sound effect too?

smoky geode
#

Rumi, do you have the Failed to load GPU Faiss: name 'GpuIndexIVFFlat' is not defined log too?
Also if you could share which log appears next after [VoiceChangerManager] update configuration serverAudioStated: 1 this could help locate where in the code it crashes

flint horizon
#

yeah

#
2026-04-01 16:49:41,720 INFO     [server] The server is listening on http://127.0.0.1:18888/
2026-04-01 16:49:41,720 INFO     [server] --------
2026-04-01 16:49:45,462 INFO     [MMVC_Namespace] Connected SID: WJg1wuhWGjU9JFXjAAAB
2026-04-01 16:49:49,454 INFO     [VoiceChangerManager] update configuration serverAudioStated: 1
2026-04-01 16:49:49,986 INFO     [ServerAudio] Devices:
2026-04-01 16:49:49,986 INFO     [ServerAudio]   [Input]: ServerAudioDevice(index=24, name='FlexASIO', hostAPI='ASIO', maxInputChannels=2, maxOutputChannels=2, default_samplerate=44100.0) None
2026-04-01 16:49:49,986 INFO     [ServerAudio]   [Output]: ServerAudioDevice(index=24, name='FlexASIO', hostAPI='ASIO', maxInputChannels=2, maxOutputChannels=2, default_samplerate=44100.0), None
2026-04-01 16:49:49,986 INFO     [ServerAudio]   [Monitor]: ServerAudioDevice(index=8, name='Line 4 (Virtual Audio Cable)', hostAPI='MME', maxInputChannels=0, maxOutputChannels=2, default_samplerate=44100.0), None
2026-04-01 16:49:50,380 INFO     [ServerAudio] Sample Rate:
2026-04-01 16:49:50,380 INFO     [ServerAudio]   [Input]: 48000 -> True
2026-04-01 16:49:50,380 INFO     [ServerAudio]   [Output]: 48000 -> True
2026-04-01 16:49:50,380 INFO     [ServerAudio]   [Monitor]: 48000 -> True
2026-04-01 16:49:58,417 INFO     [VoiceChangerManager] update configuration serverAudioStated: 0```
#

The next step is it looking for audio devices

#

that is where it seems to crash

hollow hearth
#

this is what claude opus found

flint horizon
#

Well, I mean tg-dev uses the server info and then silently switches back serveraudiostated for some reason, before it starts voice changing. (there are no logs beyond this till you stop the voice changer)

hollow hearth
#

this is most likely audio driver related i agree tho

#

perhaps a different microphone may work?

smoky geode
#

for Loamy it doesn't reach the "Devices:" log so it should be somewhere in here

crisp musk
#

Wait

smoky geode
#

so seems audio related for sure

crisp musk
#

I did buy a new DJ controller.

hollow hearth
#

:0

crisp musk
#

I bought a Traktor Kontrol S8 recently and installed Traktor Pro 4.

smoky geode
#

Is it plugged in?

hollow hearth
#

unplug it

smoky geode
#

nice hardware btw

crisp musk
#

It's not plugged in no. It's sitting in a case. I tested the controller maybe 3-4 times.

smoky geode
#

me likey

crisp musk
loud void
flint horizon
smoky geode
#

i don't like going through code in the browser anyway, just pulled it

crisp musk
#

Should I check my audio driver?

loud void
brave crypt
crisp musk
flint horizon
#

You have three types of audio drivers: Audio Controllers, Audio Processing Objects (APOs) and Audio Input and Output devices.

#

(you've shown a list of audio controllers)

crisp musk
flint horizon
# crisp musk

Also, this list excludes currently disabled controllers (things that are disconnected)

crisp musk
#

Where can I find that?

flint horizon
#

In the top bar, under View

#

you can enable show hidden devices

#

The voice changer, so far I know only access the input and output devices list

#

I don't see anything odd in there though.

crisp musk
loud void
#

Leave those "Virtual Audio Cable", Realtek(R) Audio and "AMD" enabled, try disable some audio devices that are unused at the moment.

flint horizon
#

Yeah... I was thinking the same (actually uninstalling, but disabling could be enough.)- it doesn't make sense though

#

I am clueless

smoky geode
#

(if the issue happens during enumeration then perhaps disabling will change nothing)

#

I'm taking a look at the code to perhaps find some spot where it possibly fails

flint horizon
#

Good luck

crisp musk
#

Oh let me do a quick run of it with audio effects

#

1 sec

smoky geode
#

don't want to be too hasty but

#

i think i can reproduce it

#

unless it fails for a different reason for me xD

crisp musk
flint horizon
#

What is that Voice Clarity driver for? (under APO). It doesn't have a brand next to it and ... googling it gets you vague results
(I am just fishing in the wild basically.)

crisp musk
#

No idea.

flint horizon
#

Oh, that is microsoft

#

never mind (It's part of Microsoft Surface Laptop Studio)

loud void
#

Mine (using Windows 11 on an unsupported Dell laptop) doesn't have that Voice Clarity feature so.

smoky geode
hollow hearth
# crisp musk

try to disable amd high definition audio device and amd streaming audio device

#

and maybe uninstall vb audio cable

flint horizon
#

It's not AMD's drivers. People with VB Cable don't crash either.

#

It's not fifine either. (I tested a fifine mic, and yeah- the mic also comes with an audio output due to a headset jack)

#

(idk about the corsair devices, the emeet webcam, and the microsoft devices though)

hollow hearth
#

there is so many audio drivers lol

flint horizon
#

Yeah, it could very well be the number of them I guess and not a specific driver.

crisp musk
#

Wait a fucking minute

#

I just looked into my drivers.

#

And none of this showed up

flint horizon
#

o_o

#

So that stuff does install drivers.... I thought so

#

So... originally I suspected that Traktor's software may have installed drivers, that would.. for some reason cause the crash with the voice changer

smoky geode
#

it won't necessarily add a bunch of stuff to the audio driver section

#

the controller is not just an audio i/o device

#

although i would expect the s8 to appear as disconnected, but w/e

hollow hearth
#

try uninstall everything related to traktor

crisp musk
#

I didn't think it would install so many audio drivers

flint horizon
crisp musk
#

Ok

#

I uninstalled all the drivers.

#

Gonna reset my PC

#

Brb

#

Ok

#

PC is reset

#

Traktor stuff is removed.

#

Let's see how it goes.

hollow hearth
flint horizon
#

I'm not sure what the code is doing that would cause it to interact with Traktor's drivers, and eventually crash. In the video the OP shared, it's shown that he clearly selected audio devices that are not Traktor.

crisp musk
#

IT FUCKING WORKS

hollow hearth
#

i knew it was traktor

#

lol

smoky geode
#

so the question now is

flint horizon
#

yeah- thought so, but- why does it work. xd

smoky geode
#

why

#

how does the enumeration fail in that case

hollow hearth
#

god knows why

smoky geode
#

I'd love to debug it, perhaps i should be able to reproduce it once i install those drivers as well?

crisp musk
#

That's exactly what I installed.

#

Looks like I'll need to DJ on my other PC then.

#

And keep this PC purely for V-Tubing.

smoky geode
flint horizon
#

Didn't realize you were a vtuber. Still, this crash shouldn't happen. It's a software issue.

smoky geode
#

or just the traktor pro 4?

brave crypt
crisp musk
#

And then reset my PC.

flint horizon
#

It's one or maybe multiple of the drivers. (or maybe an issue with the voice changer iterating over the list of drivers)

smoky geode
#

but there's one thing confusing me the most

#

it just stops abruptly. I would expect the main try/catch clause to print an exception of some kind

#

I don't really get why a python app crashes like this

flint horizon
#

Maybe it's the other way around; the drivers are what are catching it and crashing -- idk currently. (I have no clue what those drivers are instructing windows to do)

crisp musk
#

But in all seriousness. Thank you guys so much for helping to resolve this issue.

hollow hearth
flint horizon
#

I don't think tg-develop will attempt to bug fix this problem unfortunately. They haven't updated their fork in a while.

smoky geode
#

reeeeee

#

installed all of them and it still enumerates fine for me

#

wonder if the traktor pro software itself installs some additional stuff - virtual devices perhaps?

#

i hate issues that are not easily reproducible xD

flint horizon
#

Closed Source software is hard to predict. Yeah- it could be installing something related to their hardware.

#

(and because you don't have it, you don't get the same drivers)

smoky geode
#

I mean, I still think it's not likely fault of the NI software per se

hollow hearth
#

this is probably the most obscure realtime issue ever

#

lol

smoky geode
#

my vote for now is some low-level API calls from python failing obscurely

flint horizon
#

It doesn't help that they have software on there that are exclusive to the Microsoft Surface Laptop series.

#

I'm not sure, because of that on how to set up a hyper-v virtual environment to emulate this.

#

meh- I think I'll let it go.

smoky geode
#

now that I think of it, one of possible ways for the entire process to crash abruptly would be a dynamic lib access failure

#

missing library file or symbols

#

possibly reflected with exit code (which we did not check)

#

but without being able to reproduce it it's gonna be a PITA to work with

#

and as installing all of the drivers from screenshot provided above by OP is apparently not enough

#

I think this is where my attempts end as well, unless this gets brought up again or I come up with an easy way to simulate it

#

the traktor software is not free so i can't install it to see if that causes the issue

#

so i'd either blame invalid package setup or python-sounddevice/portaudio itself

hollow hearth
#

hehe pita

flint horizon
#

It's too expensive to try out indeed

smoky geode
#

there used to be a demo but they've taken it down

flint horizon
#

Hm, maybe we need to become vtubers first lol *jokes*

#

(idk where people get the money for these things)

smoky geode
#

NI stuff (both hardware and software) is absurdly priced

#

I mean, it's great quality for sure

#

But still

#

So i have a love/hate relationship with that company xD

flint horizon
#

I am staring at the code:

def list_audio_device():
    try:
        audioDeviceList = sd.query_devices()
    except Exception as e:
        logger.exception(e)
        raise e

It should end the process with an exception displayed in the log, but this doesn't happen.

smoky geode
#

But the world of digital music is $$$ in general

#

Yeah, that's what I've been saying before, the entire main is within a huge try/except anyway

flint horizon
#

not even an empty line is printed

smoky geode
#

A python app doesn't shut down like this in general

#

That's why my vote is a library call

#

And I think the most likely thing is what I said about the missing symbols/library file

flint horizon
#

Yeah, probably-- but idk how you'd fix that

smoky geode
#

Can't talk about fixing an issue we haven't located, really

#

Might as well be as easy as adding one more binary file to the package

#

Dunno

flint horizon
#

I'll try to deal with ... basically failing to identify the problem, but fixing it by removing the problem causer for now. (I was hoping we could make it work without them needing a second machine for their DJ stuff)

#

(the reason, unclear)

smoky geode
#

This is likely connected to the implementation. So forks - yeah.
Vonovox - unless proven otherwise, I would expect there should be no issue with it, it's a separate thing built from scratch

crisp musk
#

Would it be possible to look into the drivers I posted?

smoky geode
#

I did, but simply installing the drivers didn't cause the issue

crisp musk
#

Strange.

smoky geode
#

But traktor pro is something I did not install so perhaps it's related

#

This issue needs a reproducible crash scenario on our side to be able to effectively deal with it TBH

#

But I'm away now, will give it a second thought later perhaps 🤔

#

A part of me sees this as a potentially difficult issue, but another part of me really wants to get it solved just for the sake of it

crisp musk
#

Yeah keeping this thread open for future people.

brave crypt
#

I remember other people having the same issue but only on the same AMD GPU on WIndows

#

@tropic walrus @leaden hinge maybe check this post if it fixes your issue

brave crypt
#

Oh nvm then, your PC is way too weak, make a new post if you need help still, since it's a separate issue

brave crypt
#

please make your own post in #1192011222023950368 , unfortunately the issue isn't related to what I initially thought it was

brave crypt
brave crypt
# crisp musk Nope.

I think you might still be able to use wokada tg develop with traktor pro 4 installed, if you plug the DJ Controller

I did a bit of research and used Gemini 3.1 Pro

and it seems like the issue is that W-Okada is written in Python and uses a library called python-sounddevice, which uses PortAudio C-library to scan and communicate with Windows audio interfaces, but since the DJ Controller was unplugged it wasn't able to query and initialize the Native Instruments ASIO driver

#

If you want you could try that and let me know

#

might be better than having to uninstall and reinstall the program over and over

brave crypt
#

@crisp musk could you please try this to let me know if it works? If it works I can add it in the docs to help everyone more easily

crisp musk
#

I can later on today.

brave crypt
crisp musk
brave crypt
crisp musk