Author Topic: Consistent idle crash on Windows 10  (Read 2150 times)

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Consistent idle crash on Windows 10
« on: July 21, 2021, 03:29:48 PM »
Hello all, been trying to track down an issue, and I cant seem to figure it out. It feels like a bug in AM, and i'll explain why:
I've been running Attract Mode v2.2.1 for quite some time, and decided to update it.

Here's my config:
Windows 10 Enterprise OS build 19042.928
Radeon R7 200 (With CRTEmudriver enabled)
Arcade Game Centre Theme (http://forum.attractmode.org/index.php?topic=1042.msg7717#msg7717)

When I run v2.2.1, it runs fine and no problems.
When I run v2.6.1, it crashes while idle every few minutes

Video playing is a game snap, in mp4 format.
Also there is background audio playing from mp3.

Here's the exception:
Code: [Select]
Faulting application name: attract.exe, version: 2.6.1.0, time stamp: 0x00000000
Faulting module name: attract.exe, version: 2.6.1.0, time stamp: 0x00000000
Exception code: 0xc00000fd
Fault offset: 0x00000000000a01c6
Faulting process id: 0x1d18
Faulting application start time: 0x01d77e796e476e28
Faulting application path: D:\Emulation\AttractMode\attract.exe
Faulting module path: D:\Emulation\AttractMode\attract.exe
Report Id: ff7f3ac2-7f4d-4b16-b14d-1769461068eb
Faulting package full name:
Faulting package-relative application ID:

Fault bucket 1579867068958240102, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: attract.exe
P2: 2.6.1.0
P3: 00000000
P4: attract.exe
P5: 2.6.1.0
P6: 00000000
P7: c00000fd
P8: 00000000000a01c6
P9:
P10:

I've ran with verbose logging, and i dont seem to get any extra information (i believe the crash is preventing the log from writing)
Attached logs for all the video files media info, as well as the verbose log.

Any ideas?


progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Consistent idle crash on Windows 10
« Reply #1 on: July 25, 2021, 12:31:58 AM »
Have you tried the nightly build? It has more recent fixes.

If that does work you can try a bunch of things to isolate the issue:
Try running the console version the .exe to see if it provides additional information.
Try running 32 bit vs. 64 bit or vice versa
Try a different layout like the default to test.
Try not using videos at all. (these can often have issues if not encoded correctly)
Try turning off the CRTEmudriver to test.


feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Consistent idle crash on Windows 10
« Reply #2 on: July 26, 2021, 02:53:54 PM »
Ok, i think I isolated the issue. I ran the daily build, and it still crashed.
I tried the console output, it didnt give me any new info.
I renamed the video snap file that was previewing so it did not play anymore, and it still crashed.
Lastly, i renamed the background audio mp3 file, and it stopped crashing.

This is the code that plays the audio:
Code: [Select]
local bgMusic = fe.add_sound("bgMusic.mp3")
     bgMusic.playing=true
             bgMusic.loop=true
}

Is it a 3rd party library that plays sound effects?
I verified that the crash occurs at the moment it attempts to loop the audio file (at 2m).
I converted the audio file to a WAV file, and referenced that, and it still crashes.

Tried to attach the audio file, but the file size is 2.8mb.
Instead, here's a link to it for reproducing.
https://mega.nz/file/XbJwiZba#NNVjuZwR8HE9cjMQ1s6aMfEUxQZVH499aMuUitDoOAU

feltz916

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Consistent idle crash on Windows 10
« Reply #3 on: July 26, 2021, 03:14:23 PM »
Oh, and ran into this thread, sounds like its an old bug.
I added the code and it seemed to solve my issue. Still would be good to have this bug fixed.

http://forum.attractmode.org/index.php?topic=2921.msg20250#msg20250

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Consistent idle crash on Windows 10
« Reply #4 on: July 26, 2021, 08:08:53 PM »
There is an alternative workaround:

Code: [Select]
local bgMusic = fe.add_image( "loop.wav" )
bgMusic.video_flags = Vid.NoLoop // if you want it to just play once