Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attract Mode crashes with some videos #29

Open
kamzata opened this issue Mar 23, 2023 · 14 comments
Open

Attract Mode crashes with some videos #29

kamzata opened this issue Mar 23, 2023 · 14 comments

Comments

@kamzata
Copy link

kamzata commented Mar 23, 2023

Using Attract Mode with some videos (like this) make it crash.

/home/arcade/shared/logs/attract.log

Attract-Mode Plus v2.6.2 (Build 0) (Linux, SFML 2.6.0 +FontConfig +7z +Curl)
avcodec 60.3.100 / avformat 60.3.100 / swscale 7.1.100 / avutil 58.2.100 / swresample 4.10.100

Config: /home/arcade/shared/frontends/attract/attract.cfg

*** Initializing display: 'MAME'
 - Loaded master romlist 'MAME' in 51 ms (14117 entries kept, 0 discarded)
 - Constructed 2 filters in 1 ms (28234 comparisons)
Failed to get output info for.primary monitor position
 - Loaded layout: /home/arcade/shared/frontends/attract/layouts/Reflect/ (layout.nut)
munmap_chunk(): invalid pointer

Any solutions?

@substring
Copy link
Owner

Hi,

Have you updated recently, or still on a vanilla install ? Are you using X or KMS ? Have you tried a different layout ?

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

Hi,

Have you updated recently, or still on a vanilla install ? Are you using X or KMS ? Have you tried a different layout ?

Once installed, I updated the whole system to the latest packages. I tried both X and KMS, and different layouts: same result. Some videos start for 1 second or less and then the whole Attract Mode crashes. Using a screenshot or any kind of image it works.

@substring
Copy link
Owner

Have you tried a different layout ? When have you updated ? Because there are updates "almost" everyday (but don't update yet if you have installed RA)

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

Have you tried a different layout ? When have you updated ? Because there are updates "almost" everyday (but don't update yet if you have installed RA)

Yes, I tried different layouts. I installed it around a week ago, I updated the whole system the same day and then I updated yesterday. I have noticed this problem just yesterday since I haven't used videos before.

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

Have you tried a different layout ? When have you updated ? Because there are updates "almost" everyday (but don't update yet if you have installed RA)

https://share.icloud.com/photos/010osFL9zw0TnZSOqqjvaFowg

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

Have you tried a different layout ? When have you updated ? Because there are updates "almost" everyday (but don't update yet if you have installed RA)

I just installed FFmpeg package but nothing's changed.

@substring
Copy link
Owner

ffmpeg was already installed. I think it's a problem with either the ffmpeg lib, either some trouble in AM. Which is beyond my scope. Does it always happen on the same video ?

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

ffmpeg was already installed. I think it's a problem with either the ffmpeg lib, either some trouble in AM. Which is beyond my scope. Does it always happen on the same video ?

ffmpeg was not installed. It always happens with specific videos.

After installed ffmpeg the log now shows this after the crash:

Attract-Mode Plus v2.6.2 (Build 0) (Linux, SFML 2.6.0 +FontConfig +7z +Curl)
avcodec 60.3.100 / avformat 60.3.100 / swscale 7.1.100 / avutil 58.2.100 / swresample 4.10.100

Config: /home/arcade/shared/frontends/attract/attract.cfg

*** Initializing display: 'MAME'
 - Loaded master romlist 'MAME' in 41 ms (14117 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (28234 comparisons)
 - Loaded layout: /home/arcade/shared/frontends/attract/layouts/Attrac-Man/ (layout.nut)
FFmpeg: A non-intra slice in an IDR NAL unit.
FFmpeg: decode_slice_header error
FFmpeg: A non-intra slice in an IDR NAL unit.
FFmpeg: decode_slice_header error

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

ffmpeg was already installed. I think it's a problem with either the ffmpeg lib, either some trouble in AM. Which is beyond my scope. Does it always happen on the same video ?

Sorry! You're right. I saw the pacman log and ffmpeg was already installed. Why did the attract log change after reinstall ffmpeg?

This is all pacman.log entries for ffmpeg since I installed Groovyarcade:

[2023-03-16T18:28:46+0000] [ALPM] upgraded ffmpeg (2:5.1.2-1 -> 2:6.0-3)
[2023-03-22T16:30:10+0100] [ALPM] upgraded ffmpeg (2:6.0-3 -> 2:6.0-4)
[2023-03-23T16:47:19+0100] [PACMAN] Running 'pacman -S ffmpeg'
[2023-03-23T16:47:21+0100] [ALPM] transaction started
[2023-03-23T16:47:21+0100] [ALPM] reinstalled ffmpeg (2:6.0-4)
[2023-03-23T16:47:21+0100] [ALPM] transaction completed
[2023-03-23T16:47:21+0100] [ALPM] running '30-systemd-update.hook'...

Should I try to downgrade ffmpeg to 2:5.1.2 version?

@substring
Copy link
Owner

you can't downgrade ffmpeg since AM+ was compiled against ffmpeg 6, so libs versions won't match and AM won't start.

if it happens with specific videos, the workaround for now would be to reencode them. I can't do much for AM code itself, even less regarding video decoding.

@kamzata
Copy link
Author

kamzata commented Mar 23, 2023

you can't downgrade ffmpeg since AM+ was compiled against ffmpeg 6, so libs versions won't match and AM won't start.

if it happens with specific videos, the workaround for now would be to reencode them. I can't do much for AM code itself, even less regarding video decoding.

What about reinstalling Groovyarcade without update? Should it work? Can I install Groovyarcade and after that connect the Jamma board and the arcade monitor? Or should I install Groovyarcade with those connected? I don't have those available here now. I simply connected a LCD monitor now.

@substring
Copy link
Owner

can't tell. Doing so you'd rollback to ffmpeg5. I have no idea if it would help or not. I just know there was no code change for AM to switch to ffmpeg 6 (unlike ffmpeg 4 -> 5)

@kamzata
Copy link
Author

kamzata commented Mar 24, 2023

can't tell. Doing so you'd rollback to ffmpeg5. I have no idea if it would help or not. I just know there was no code change for AM to switch to ffmpeg 6 (unlike ffmpeg 4 -> 5)

What format should I convert the videos to? How should I do that?

@kamzata
Copy link
Author

kamzata commented Mar 25, 2023

I checked the video file codecs. On the left outrun.mp4 (which seems to work without issues), on the right outzone.mp4 (which makes Attract Mode crashes every time it play). The codecs seem the same... so... I'm more confused than before...

outrun-outzone-codecs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants