Page MenuHomePhabricator

e22 _pulse_connect() Could not connect to pulse
Open, NormalPublic

Description

This is likely system specific, maybe something of with my Gentoo ebuild etc. More seeking information than bug, but maybe a bug. Pretty sure e22 specific, I do not recall in e21. Sound works, including at times unwanted ones, terminology bell I disable. Mixer works, etc. Though I guess using alsa vs pulse. I need to look further into it, to see what is off in my system.

ERR<572>: ../enlightenment-9999/src/modules/mixer/lib/backends/pulseaudio/pulse.c:835 _pulse_connect() Could not connect to pulse
## Copy & Paste the below (until EOF) into a terminal, then hit Enter

eina_btlog << EOF
/usr/lib64/libeina.so.1  0x7fadccaab389 0x7fadcca83000
/usr/lib64/libeina.so.1  0x7fadccaac15f 0x7fadcca83000
/usr/lib64/libeina.so.1  0x7fadccaad5ff 0x7fadcca83000
/usr/lib64/enlightenment/modules/mixer/linux-gnu-x86_64-ver-0.22/module.so       0x7fadb1bbdb98 0x7fadb1bab000
/usr/lib64/enlightenment/modules/mixer/linux-gnu-x86_64-ver-0.22/module.so       0x7fadb1bbf1b4 0x7fadb1bab000
/usr/lib64/enlightenment/modules/mixer/linux-gnu-x86_64-ver-0.22/module.so       0x7fadb1bb5875 0x7fadb1bab000
/usr/bin/enlightenment   0xb9bee6d246 0xb9bed5f000
/usr/bin/enlightenment   0xb9bee6d9a0 0xb9bed5f000
/usr/lib64/libecore.so.1         0x7fadcc1d57ae 0x7fadcc1bb000
/usr/lib64/libeo.so.1    0x7fadc712d51b 0x7fadc711b000
/usr/lib64/libeo.so.1    0x7fadc7129e84 0x7fadc711b000
/usr/lib64/libecore.so.1         0x7fadcc1d8bc6 0x7fadcc1bb000
/usr/lib64/libecore.so.1         0x7fadcc1d9287 0x7fadcc1bb000
/usr/bin/enlightenment   0xb9beda5ec2 0xb9bed5f000
/lib64/libc.so.6         0x7fadc8a43551 0x7fadc8a23000
/usr/bin/enlightenment   0xb9beda707a 0xb9bed5f000
EOF
abyomi0 triaged this task as Pending on user input priority.Oct 20 2017, 11:37 AM
abyomi0 raised the priority of this task from Pending on user input to Incoming Queue.Oct 20 2017, 11:58 AM
zmike triaged this task as Normal priority.Nov 6 2017, 10:29 AM
zmike reassigned this task from zmike to bu5hm4n.
zmike added a subscriber: bu5hm4n.

@bu5hm4n if you can see anything obvious related to this then great, otherwise close: most likely system-specific configuration in that case.

Well, something seems to be odd here, if the user uses alsa then pulse should definitely not be trying to connect to the deamon ... Will take a look later, not at a computer right now.

I have a similar issue : mixer is set to use ALSA but still does not work properly. I get sound on the PC speakers but not if I plug headphones in.
If I set PULSEAUDIO in the configuration dialog, the gadget looks like it is disabled and I get this in the log (translated via eina_btlog) :

ERR<20191>: src/modules/mixer/lib/backends/pulseaudio/pulse.c:835 _pulse_connect() Could not connect to pulse
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/lib/enlightenment/modules/mixer/linux-gnu-x86_64-0.22/module.so    | ??/??: 0 @ _pulse_connect()
    /opt/enlightenment/lib/enlightenment/modules/mixer/linux-gnu-x86_64-0.22/module.so    | ??/??: 0 @ _init()
    /opt/enlightenment/lib/enlightenment/modules/mixer/linux-gnu-x86_64-0.22/module.so    | ??/??: 0 @ _backend_changed()
    /opt/enlightenment/lib/enlightenment/modules/mixer/linux-gnu-x86_64-0.22/module.so    | ??/??: 0 @ _basic_apply_data()
                                                      /opt/enlightenment/bin/enlightenment| ??/??: 0 @ _e_config_dialog_cb_apply()
                                                      /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _efl_object_event_callback_legacy_call()
                                                      /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_event_callback_legacy_call()
                                                      /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_event_callback_legacy_call()
                                                      /opt/enlightenment/lib/libedje.so.1 | ??/??: 0 @ edje_match_callback_exec()
                                                      /opt/enlightenment/lib/libedje.so.1 | ??/??: 0 @ _edje_emit_handle()
                                                      /opt/enlightenment/lib/libedje.so.1 | ??/??: 0 @ _edje_message_queue_process.part.3()
                                                      /opt/enlightenment/lib/libedje.so.1 | ??/??: 0 @ _edje_job()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _ecore_job_event_handler()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _ecore_event_call()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_main_loop_begin()
                                                      /opt/enlightenment/bin/enlightenment| ??/??: 0 @ main()
                                                       /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
                                                      /opt/enlightenment/bin/enlightenment| ??/??: 0 @ _start()


ERR<20191>: src/modules/mixer/lib/backends/pulseaudio/pulse.c:835 _pulse_connect() Could not connect to pulse
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
                                                      /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/lib/enlightenment/modules/mixer/linux-gnu-x86_64-0.22/module.so    | ??/??: 0 @ _pulse_connect()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _ecore_timer_legacy_tick()
                                                      /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _efl_object_event_callback_call()
                                                      /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_event_callback_call()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _efl_loop_timer_expired_call()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _efl_loop_timer_expired_timers_call()
                                                      /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_main_loop_begin()
                                                      /opt/enlightenment/bin/enlightenment| ??/??: 0 @ main()
                                                       /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
                                                      /opt/enlightenment/bin/enlightenment| ??/??: 0 @ _start()

With mixer set to ALSA, here is what I get in the log when I open the advanced dialog (with a right click on the gadget) :

ERR<19312>: src/modules/mixer/lib/backends/pulseaudio/pulse.c:835 _pulse_connect() Could not connect to pulse

    /opt/enlightenment/lib/libeina.so.1| ??/??: 0 @ eina_log_print_cb_stderr.part.10()
    /opt/enlightenment/lib/libeina.so.1| ??/??: 0 @ eina_log_print_unlocked()
    /opt/enlightenment/lib/libeina.so.1| ??/??: 0 @ eina_log_print()
    /opt/enlightenment/bin/emixer      | ??/??: 0 @ _pulse_connect()
    /opt/enlightenment/bin/emixer      | ??/??: 0 @ _init()
    /opt/enlightenment/bin/emixer      | ??/??: 0 @ elm_main()
    /opt/enlightenment/bin/emixer      | ??/??: 0 @ main()
     /lib/x86_64-linux-gnu/libc.so.6   | ??/??: 0 @ __libc_start_main()
    /opt/enlightenment/bin/emixer      | ??/??: 0 @ _start()

ERR<19312>: src/modules/mixer/lib/backends/pulseaudio/pulse.c:835 _pulse_connect() Could not connect to pulse
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _pulse_connect()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _ecore_timer_legacy_tick()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _efl_object_event_callback_call()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_event_callback_call()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _efl_loop_timer_expired_call()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ _efl_loop_timer_expired_timers_call()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_main_loop_begin()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ elm_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ main()
     /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _start()

The 'Outputs' and 'Inputs' tabs are empty.
When I close the dialog, I get these additional lines in the log :

ERR<19312>:eo lib/eo/eo_base_class.c:296 efl_key_data_get() Eo ID 0x80000001fb2c0f9e is not a valid object. Current thread: main. This ID has probably been deleted or this was never a valid
object ID. (domain=0, current_domain=0, local_domain=0, available_domains=[0 1    ], generation=32c0f9e, id=3f, ref=1)
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _eo_obj_pointer_get()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _efl_object_call_resolve()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_key_data_get()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_timer_del()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ emix_shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ elm_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ main()
     /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _start()

ERR<19312>:ecore lib/ecore/ecore_timer.c:254 ecore_timer_del() You are trying to destroy a timer which seems dead already.
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_timer_del()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ emix_shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ elm_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ main()
     /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _start()

ERR<19312>:eo lib/eo/eo.c:1798 efl_unref() Eo ID 0x80000001fb2c0f9e is not a valid object. Current thread: main. This ID has probably been deleted or this was never a valid object ID. (domain=0, current_domain=0, local_domain=0, available_domains=[0 1    ], generation=32c0f9e, id=3f, ref=1)
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_cb_stderr.part.10()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print_unlocked()
    /opt/enlightenment/lib/libeina.so.1 | ??/??: 0 @ eina_log_print()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ _eo_obj_pointer_get()
    /opt/enlightenment/lib/libeo.so.1   | ??/??: 0 @ efl_unref()
    /opt/enlightenment/lib/libecore.so.1| ??/??: 0 @ ecore_timer_del()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ emix_shutdown()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ elm_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ main()
     /lib/x86_64-linux-gnu/libc.so.6    | ??/??: 0 @ __libc_start_main()
    /opt/enlightenment/bin/emixer       | ??/??: 0 @ _start()

My config :

  • E0.22.1 with EFL 1.20.6
  • Debian testing amd64
  • HDA Intel MID

Hope this helps.

christianbochu added a comment.EditedDec 16 2017, 6:17 AM

OK, it seems to be a side effect of another problem.
After a complete computer restart, things went back to normal, even with mixer set to use pulse. But after a suspend / resume cycle, the symptoms reappeared.
But I also noticed that the last four entries of the system menu (suspend / hibernate / reboot / halt) where disabled after the resume, although closing the lid does trigger a suspend. Immediately after the restart, all six entries are enabled.
So, apart from the fact that pulse is trying to connect to the daemon even if not selected, I have another problem that may interfere with pulse connection and sysactions.

Edit : it turned out to be the display manager (slim) not playing along well with systemd-logind. Forcing slim to restart after each logout (as explained in https://bbs.archlinux.org/viewtopic.php?pid=1287549) put everything back in order, system menu and connection to pulse are both OK.