Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)  (Read 237 times)

0 Members and 2 Guests are viewing this topic.

alainlant

  • Newbie
  • *
  • Posts: 1
    • View Profile
 UPDATE:
The problem appears if I launch the application with sudo app
Otherwise it is fine
So why sudo cannot load the audio in SFML?


if (music.openFromFile(sound_file) == true)
            {
            std::cout << " music.openFromFile(sound_file) == true "  << std::endl;   
            }
            else
            std::cout << " music.openFromFile(sound_file) == false "  << std::endl;

It load the music file, but the audio device has an error:   

[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
Failed to open the audio device
An internal OpenAL call failed in SoundSource.cpp(44).
Expression:
   alGenSources(1, &m_source)
Error description:
   AL_INVALID_OPERATION
   The specified operation is not allowed in the current state.

An internal OpenAL call failed in SoundSource.cpp(45).
Expression:
   alSourcei(m_source, AL_BUFFER, 0)
Error description:
   AL_INVALID_OPERATION
   The specified operation is not allowed in the current state

/inxi -A
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
  API: ALSA v: k6.8.0-51-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active

systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-12-26 06:02:15 EST; 2 days ago
TriggeredBy: ● pipewire.socket
   Main PID: 1301 (pipewire)
      Tasks: 3 (limit: 9185)
     Memory: 8.9M (peak: 10.6M swap: 3.7M swap peak: 3.7M)
        CPU: 11min 38.003s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1301 /usr/bin/pipewire

Dec 26 06:02:15 allaptop-ideapad systemd[1288]: Started pipewire.service - PipeWire Multimedia Service.
Dec 26 06:02:17 allaptop-ideapad pipewire[1301]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.Ser>

systemctl --user daemon-reload

« Last Edit: December 29, 2024, 01:50:53 am by alainlant »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11066
    • View Profile
    • development blog
    • Email
Re: [ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
« Reply #1 on: December 29, 2024, 08:30:39 pm »
Looking around a bit, it might be related to wireplumber?

https://github.com/kcat/openal-soft/issues/840
https://bbs.archlinux.org/viewtopic.php?id=297374
https://bbs.archlinux.org/viewtopic.php?id=281062

I've no experience with either PipeWire nor wireplumber so, can't answer anything specifically.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/