Repository navigation
Intermittent /voice session failure on WSL2 #47524
Replies: 2 comments
|
Hello, I experienced the same/a similar problem. I understand that you are on Windows using the WSL, so it is a large step to assume that my bare metal Linux setup has the same problem. After multple interactive troubleshooting sessions with GPT-6-Astra (finally high, thanks to OpenAI for the global reset an hour ago!), it identified a specific cause and applied a local fix. Voice appears to work reliably (but needs actual use, after I got sleep).
The agent wrote the summary below. Setup
Symptoms “Voice conversation failed: voice audio session stopped unexpectedly” Codex logged phase=Some(Device), exit_code=Some(37). Ordinary ALSA recording and playback worked, including simultaneous use. Confirmed cause ALSA function 'snd_pcm_avail_delay' failed with error 'I/O error (5)' Further tracing stopped inside the ALSA PulseAudio plugin’s pulse_delay() function. It captured: pa_stream_get_latency returned: -16 The plugin compared the function’s return value against positive PA_ERR_NODATA (+16). However, libpulse returned the negative error code (-16). Consequently, the plugin converted “timing information is not available yet” into a fatal -EIO instead of taking its existing path that waits for timing information. The source-level correction is:
This is in pulse/pcm_pulse.c, within pulse_delay(): Relevant libpulse implementation: Negative error-return definition: Local workaround and result We then added a pcm_type.pulse definition to ~/.asoundrc pointing to the corrected private library. The system library and Codex binaries were not modified. Normal F8 voice operation now works without the debugger and continued working after logout/login. PULSE_SERVER remains persistently exported by my shell. This confirms the cause on my machine. It does not establish that every exit-code-37 failure, or the failure reported here, has the same cause. However, it provides a specific check for systems using the ALSA PulseAudio plugin. It would also help troubleshooting if Codex exposed the original CPAL/ALSA error and identified whether the input or output stream failed. |
|
This user could solve his problem based on the above summary made by Astra@Codex. Have a look into it and please report, whether this worked for you. |
Uh oh!
There was an error while loading. Please reload this page.
I am posting that here, because "/feedback" gives me "Failed to upload feedback: feedback/upload failed in TUI". Please forward to whom it may concern.
Environment:
Reproduction:
“Voice conversation failed: voice audio session stopped unexpectedly”
Audio recording and playback work outside Codex, both separately and simultaneously, through PulseAudio and ALSA. Adding the ALSA default mapping
changed the failure from an immediate device-open error to a later session failure.
The voice host appears to open the default devices through CPAL’s ALSA backend at 48 kHz, stereo, float32; the PulseAudio plugin connects these to
WSLg and adapts the formats. Realtime setup succeeds, and voice works briefly before failing.
Codex logs the later failure as phase=Device, exit_code=37. Inspection of the bundled voice host indicates this maps to its internal “audio device
failed” path, triggered by a CPAL stream-error callback. The helper does not log the original stream error or identify whether capture or playback
failed, so the underlying ALSA/PulseAudio error is unknown.
Could the voice host log the original CPAL/ALSA stream error and identify which stream failed?
All reactions