Author Topic: Working with the 'Failed to initialize backend "Pulse"' error  (Read 5500 times)

SuperContraptionGuy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Working with the 'Failed to initialize backend "Pulse"' error
« on: December 19, 2017, 11:44:00 AM »
I'm compiling attract from source on an existing RetroPie install according to the github wiki instructions here: https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29

I compiled FFmpeg myself, I read that it had issues in the past.  I'll try to build it with the pre-compiled binaries.

After following the instructions to build the non X version, I got these errors on run:

Code: [Select]
pi@raspberrypi:~ $ attract
Attract-Mode v2.3.0 (Linux, SFML 2.4 +FontConfig +GLES +SWF)
avcodec 58.8.100 / avformat 58.3.100 / swscale 5.0.101 / swresample 3.0.101

Config file not found: /home/pi/.attract/attract.cfg, performing initial setup.
 - Constructed 1 filters in 0 ms (1 comparisons)
Failed to get vendor ID of joystick /dev/input/js0
Failed to get product ID of joystick /dev/input/js0
Failed to get vendor ID of joystick /dev/input/js1
Failed to get product ID of joystick /dev/input/js1
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Segmentation fault

As far as the joysticks, I'm using an Xarcade brand joystick with xArcade2Jstick as a the driver.  I noticed that the pulse audio failure is a known issue, but is it the fatal error that caused a Segmentation fault?  I'm going to recompile and see if I was just a mistake I made in the build process, but in the mean time hopefully someone has some advice to help me get attract mode up and running.  Thanks
« Last Edit: December 19, 2017, 11:57:20 AM by SuperContraptionGuy »

night

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #1 on: December 19, 2017, 12:18:34 PM »
i had the pulse error installing from experimental until i updated pie scripts then it went through fine.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #2 on: December 19, 2017, 01:01:44 PM »
@SuperContraptionGuy - I just updated the Pi FAQ and the Wiki. These new changes should fix your issue.

@night - It sounds like you're using the RetroPie Setup menu which is a different process/install/upgrade.

P.S. The pulse warning has nothing to do with your problem.
« Last Edit: December 19, 2017, 01:07:52 PM by progets »

SuperContraptionGuy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #3 on: December 19, 2017, 01:07:52 PM »
Sweet, thanks for the prompt reply.  What part/which command of the wiki did you change? (I see them now, just had to compare revisions.)

Yeah, I didn't think it was pulse.
« Last Edit: December 19, 2017, 01:12:13 PM by SuperContraptionGuy »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #4 on: December 19, 2017, 01:13:43 PM »
I made several changes to correct everything on a new build.

- dependency change
- SFML for new firmware change
- FFMPEG to remove obsolete switch
- AM to use "sudo make install USE_GLES=1"

SuperContraptionGuy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #5 on: December 19, 2017, 02:34:43 PM »
I removed everything, re-downloaded, re-compiled, and re-installed.  To no avail. 

the new version numbers reflect the changes in the new build:

Code: [Select]
pi@raspberrypi:~ $ attract
Attract-Mode v2.3.0 (Linux, SFML 2.4 +FontConfig +GLES +SWF)
avcodec 56.1.0 / avformat 56.1.0 / swscale 3.0.0 / avresample 2.1.0

Config file not found: /home/pi/.attract/attract.cfg, performing initial setup.
 - Constructed 1 filters in 0 ms (1 comparisons)
Failed to get vendor ID of joystick /dev/input/js0
Failed to get product ID of joystick /dev/input/js0
Failed to get vendor ID of joystick /dev/input/js1
Failed to get product ID of joystick /dev/input/js1
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Segmentation fault

But still no run.  Any ideas?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Working with the 'Failed to initialize backend "Pulse"' error
« Reply #6 on: December 19, 2017, 02:40:42 PM »
The new SFML changes are for the newest firmware.

Use "sudo apt-get update; sudo apt-get upgrade" to get the latest firmware

or use

"-cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so" when compiling SFML with the old firmware