mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 113 forks source link

Attract Mode crashes when cycling between different videos #750

Open Lukesvr opened 12 months ago

Lukesvr commented 12 months ago

Attract Mode crashes when cycling between different videos

Hi, when i'm using Attract Mode while viewing several videos in sequence, causes it to crash.

These are the errors reported in console with attract --loglevel debug

(Several errors like these) FFmpeg: MMAL error 3 when sending output buffer. Error decoding video (sending packet): Unknown error occurred FFmpeg: MMAL error 3 when sending output buffer. Error decoding video (sending packet): Unknown error occurred FFmpeg: MMAL error 3 when sending output buffer. ... mmal: mmal_port_disable: port vc.ril.video_decode:out:0(I420)(0xd899a0) is not enabled mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_decode:out:0(I420): ENOMEM mmal: mmal_port_enable: failed to enable port vc.ril.video_decode:out:0(I420)(0xd899a0) (ENOMEM) FFmpeg: MMAL flush error: 1 mmal: mmal_port_disable: port vc.ril.video_decode:out:0(I420)(0x19f6dd0) is not enabled FFmpeg: Did not get output frame from MMAL.

(Several errors like these) FFmpeg: Did not get output frame from MMAL. Error decoding video (sending packet): Unknown error occurred FFmpeg: MMAL error 2 on control port

FFmpeg: Did not get output frame from MMAL. Error decoding video (sending packet): Unknown error occurred terminate called without an active exception /usr/bin/attract: line 12: 1288 Aborted LD_LIBRARY_PATH="/opt/retropie/supplementary/attractmode/sfml/lib" "/opt/retropie/supplementary/attractmode/bin/attract" "$@" pi@RASPY4:~ $

The crashes are random, sometimes I can view dozens of videos without problems, other times after a few videos the system crashes

Can someone help me? Thanks in advance

My system: Raspberry Pi 4 Model B Rev 1.2p RETROPIE VERSION: 4.8.4 Using default video mode: 1280x1024 @ 60 Attract-Mode v2.7.0 (Linux, SFML 2.5.1 +FontConfig +SWF +Curl) avcodec 58.35.100 / avformat 58.20.100 / swscale 5.3.100 / avutil 56.22.100 / swresample 3.3.100 OpenGL 2.1 Mesa 19.3.2 hdmi_group=2 hdmi_mode=35 (1280×1024 60 Hz) gpu_mem=256

meduzapat commented 3 months ago

I have the same issue in an x86_64 My system: 12th Gen Intel® Core™ i7-12700K × 20 with a nivida video card 1920x1080 compiled with the suggested libraries the issue is not happening with version 2.6.2