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 115 forks source link

Screen Saver Demo Lockup Only in movie_collage mode #699

Open flagrant99 opened 2 years ago

flagrant99 commented 2 years ago

During screen saver demo showing all videos in movie_collage mode it locks up after some random time interval.

top command shows less than 1% cpu. attract is still running using under 1 % cpu.

Now I guess it could be some bad video but I have noticed on different machines it only happens when displaying 4 videos at the same time.

I tried this fix on one machine from this

    for ( local i=0; i<objs.len(); i++ )
    {
        if (( objs[i].video_playing == false )
                && ( ignore[i] == false ))
            return ( ( rand() % 2 ) == 0 ); // 50/50 chance of leaving mode
    }
    return true;        

to this and I think it helped there. Just realized I might not have pushed fix over there. Regardless I want to point this out in here.

for ( local i=0; i<objs.len(); i++ ) { if (( objs[i].video_playing == false ) && ( ignore[i] == false )) { ignore[i] = true;//Greg Added return false;//Just Leave Mode Now } } return true;

OzFalcon commented 2 years ago

720 is the same as this prior issue.