Author Topic: Attract not launching again after adv-mame exits  (Read 7422 times)

vthyng

  • Newbie
  • *
  • Posts: 7
    • View Profile
Attract not launching again after adv-mame exits
« on: August 16, 2016, 10:52:27 PM »
Pi3, floob .4 image.  When I exit advmame I am returned to a command prompt with glGetError 0x500 above the prompt.  running attract gets me back in.  I tried both versions of advmame on the image, 0.94.0, and 1.4, both have same issue.  I tried libretro and c64/vice and attract launches again after existing those emulators.  I tried adding a 5 and 10 second sleep at the end of runcommand.sh to see if the error message was attract trying to get a resource that hadn't been freed yet, but same problem, just longer to get there :/    Any ideas?

superdan

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
    • cdlab
Re: Attract not launching again after adv-mame exits
« Reply #1 on: November 07, 2016, 01:45:18 PM »
did you solved? I have the same issue!
If you want, contact me with the form @ cdlab

vthyng

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #2 on: November 07, 2016, 08:13:44 PM »
Sorry, never got that solved.

Vince

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #3 on: November 07, 2016, 08:34:29 PM »
https://github.com/mickelson/attract/commit/1ef8212713a0997e0dbafdd8f19417be67a50604

Recompile Attract-Mode and the issue should be resolved.

vthyng

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #4 on: January 08, 2017, 04:06:42 PM »
Thank you for fixing it.  I am finally getting time to try it out, but not sure exactly how to proceed.  Do I need to clone the project to my floob v4 image and recompile/install attract mode?  If so, are there already instructions or any special folders I should do it in?  I figure I would clone it to /usr/local/src, and curious about special ./configure flags.

Thanks!

Vince

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #5 on: January 08, 2017, 08:16:02 PM »
I personally didn't fix it. I'm just letting you know that it was an issue that has since been resolve. That image is 6 months old and a lot has changed with Attract-Mode and RetroPie. You can follow the steps in the wiki https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29. To clarify, you need to recompile SFML and Attract-Mode to resolve your issue but you should also consider running "Method 2" so you can use hardware video decoding.

Matt68061

  • Full Member
  • ***
  • Posts: 26
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #6 on: January 16, 2017, 09:15:00 PM »
For those of those of us slow learners in the group.... I have everything installed and looking just as I wish. I am using Floobs latest version with the latest version of AM. I seem to have the exit but leaving a game. Sounds like I need to recompile...but am very unsure of EXACTLY which of the steps below to follow to only compile...  Sorry, if I am dense but I have spent so much time setting things up I am fearful of making a major error...thank you for setting me straight.
   
Steps to install Attract-Mode on Raspbian Jessie:

Create a build environment

cd ~
mkdir develop
Install "sfml-pi" and Attract-Mode dependencies

sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev  libudev-dev libfontconfig1-dev
Download and build sfml-pi

cd ~/develop
git clone --depth 1 https://github.com/mickelson/sfml-pi sfml-pi
mkdir sfml-pi/build;cd sfml-pi/build
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
sudo make install
sudo ldconfig
Install (or download and build) FFmpeg

Method 1 (easiest): use provided packages (software video decoding only)
sudo apt-get install libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev
Method 2: build FFmpeg with mmal support (hardware accelerated video decoding)
cd ~/develop
git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg

./configure --enable-mmal --disable-debug --enable-memalign-hack --enable-shared
make
sudo make install
sudo ldconfig
Download and build Attract-Mode

cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make USE_GLES=1
sudo make install

Setti

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #7 on: January 17, 2017, 05:45:44 AM »
Quote
For those of those of us slow learners in the group.... I have everything installed and looking just as I wish. I am using Floobs latest version with the latest version of AM. I seem to have the exit but leaving a game. Sounds like I need to recompile...but am very unsure of EXACTLY which of the steps below to follow to only compile...  Sorry, if I am dense but I have spent so much time setting things up I am fearful of making a major error...thank you for setting me straight.

1. Run Retropie Setup - S - Update RetroPie-Setup script
2. U - Update all installed packages

3.  Follow the instructions for setting up that you quoted all the way up to finishing installing FFmpeg.

Quote
cd ~
mkdir develop
Install "sfml-pi" and Attract-Mode dependencies

sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev  libudev-dev libfontconfig1-dev
Download and build sfml-pi

cd ~/develop
git clone --depth 1 https://github.com/mickelson/sfml-pi sfml-pi
mkdir sfml-pi/build;cd sfml-pi/build
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
sudo make install
sudo ldconfig
Install (or download and build) FFmpeg

Method 1 (easiest): use provided packages (software video decoding only)
sudo apt-get install libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev
Method 2: build FFmpeg with mmal support (hardware accelerated video decoding)
cd ~/develop
git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg

./configure --enable-mmal --disable-debug --enable-memalign-hack --enable-shared
make
sudo make install
sudo ldconfig

4. This next step is the only thing different that I did that seemed to make things work. Delete the current develop directory.
cd ~
rm -r -f develop

5. Remake the develop directory

cd ~
mkdir develop

6. Download, build and install the latest attract mode

cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make USE_GLES=1
sudo make install

When I did this, everything finally started working.

Setti

Matt68061

  • Full Member
  • ***
  • Posts: 26
    • View Profile
Re: Attract not launching again after adv-mame exits
« Reply #8 on: January 20, 2017, 10:20:47 PM »
Thank you!  Your steps fixd my problem!

I appreciate your help!

Matt