The NEW Build Your Own Arcade Controls

Software Support => GroovyMAME => Topic started by: NinjaZero on January 01, 2019, 01:00:07 am

Title: Groovy v.205 Crashes in Full-Screen w/HLSL & Frame Delay enabled -Works Windowed
Post by: NinjaZero on January 01, 2019, 01:00:07 am
Downloaded new build ver 0.205 and it crashed with my settings, so I installed to a new directory and ran the emulator with -cc with the only change in ini - I made was the rom folder location.  Then re-ran the emulator with HLSL and it ran fine, took a while trying to find what setting was causing the problem and it looks like it is enabling Frame Delay & HLSL causes the instability in Full-Screen.  I normally run the game with Frame Delay 7 but as soon as I enable Frame Delay 1, emu will hang and eventually crash but works when the emulator is started -Windowed. 

Calamity, here is the output I see, let me know if I can try anything else or if you need more debug. My system is Win7 / Nvidia (latest driver).

[EDIT]
See Post #4 for the current log. 
Title: Re: Groovy v0.205 Crashes when enabling Frame Delay
Post by: Calamity on January 01, 2019, 07:28:23 am
Do you have -hlsl enabled? It's known to cause a crash due to frame delay in 0.205.

Aside of that, your monitor configuration is wrong (monitor range taken from someone else's monitor?)
Title: Re: Groovy v0.205 Crashes when enabling Frame Delay
Post by: Calamity on January 01, 2019, 01:12:15 pm
I had accidentaly left my own mame.ini in GM's package, that's where you got that odd crt range, sorry  :D
Title: Re: Groovy v0.205 Crashes when enabling Frame Delay
Post by: NinjaZero on January 01, 2019, 02:35:29 pm
It seems like I can either have HLSL or Frame Delay enabled but not both without crashing at launch? BTW, I fixed my monitor settings back to auto and I noticed I got a different exception when it crashed.  The previous version (.204) worked great with HLSL enabled and Frame Delay 7.  Let me know if there is anything else I can do. 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

D:\Downloads\groovymame64>mame64 -v samsho
SwitchRes: v0.017m, Monitor: lcd, Orientation: horizontal, Modeline generation: enabled
SwitchRes: Using default vfreq range for LCD 59.000000-61.000000
SwitchRes: \\.\DISPLAY1: NVIDIA GeForce GTX 1050 Ti (PCI\VEN_10DE&DEV_1C82&SUBSYS_62533842&REV_A1)
SwitchRes: Device key: System\CurrentControlSet\Control\Video\{04BF2CB1-39E4-4AD5-AEF2-9C2AB6266339}\0000
Video chipset is not compatible.
Switchres: Searching for custom video modes...
Switchres: [  1]  640x 480 @ 60 : system mode
Switchres: [  2]  640x 480 @ 72 : system mode
Switchres: [  3]  640x 480 @ 75 : system mode
Switchres: [  4]  720x 480 @ 56 : system mode
Switchres: [  5]  720x 480 @ 60 : system mode
Switchres: [  6]  720x 480 @ 72 : system mode
Switchres: [  7]  720x 480 @ 75 : system mode
Switchres: [  8]  720x 576 @ 56 : system mode
Switchres: [  9]  720x 576 @ 60 : system mode
Switchres: [ 10]  720x 576 @ 72 : system mode
Switchres: [ 11]  720x 576 @ 75 : system mode
Switchres: [ 12]  800x 600 @ 56 : system mode
Switchres: [ 13]  800x 600 @ 60 : system mode
Switchres: [ 14]  800x 600 @ 72 : system mode
Switchres: [ 15]  800x 600 @ 75 : system mode
Switchres: [ 16] 1024x 768 @ 60 : system mode
Switchres: [ 17] 1024x 768 @ 70 : system mode
Switchres: [ 18] 1024x 768 @ 75 : system mode
Switchres: [ 19] 1152x 864 @ 60 : system mode
Switchres: [ 20] 1280x 720 @ 60 : system mode
Switchres: [ 21] 1280x 768 @ 60 : system mode
Switchres: [ 22] 1280x 800 @ 60 : system mode
Switchres: [ 23] 1280x 960 @ 60 : system mode
Switchres: [ 24] 1280x1024 @ 60 : system mode
Switchres: [ 25] 1360x 768 @ 60 : system mode
Switchres: [ 26] 1366x 768 @ 60 : system mode
Switchres: [ 27] 1600x 900 @ 60 : system mode
Switchres: [ 28] 1600x1024 @ 59 : system mode
Switchres: [ 29] 1600x1024 @ 60 : system mode
Switchres: [ 30] 1680x1050 @ 59 : system mode
Switchres: [ 31] 1680x1050 @ 60 : system mode
Switchres: [ 32] 1920x1080 @ 60* : system mode
Switchres: [ 33] 1440x 900 @ 60 : system mode
SwitchRes: Found 0 custom of 33 active video modes
SwitchRes: Creating automatic specs for LCD based on VESA GTF
SwitchRes: Monitor range 65962.00-68198.00,59.00-61.00,0.741,1.157,1.898,0.015,0.045,0.507,0,1,1080,1080,0,0
SwitchRes: -resolution was forced as 1920x1080@60

SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.017m:[samsho] Calculating best video mode for 320x224@59.185608 orientation: normal

SwitchRes: [ 640]x[ 480]_[60=60.000000Hz] - locked

SwitchRes: [ 640]x[ 480]_[72=72.000000Hz] - locked

SwitchRes: [ 640]x[ 480]_[75=75.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[56=56.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[60=60.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[72=72.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[75=75.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[56=56.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[60=60.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[72=72.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[75=75.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[56=56.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[60=60.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[72=72.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[75=75.000000Hz] - locked

SwitchRes: [1024]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1024]x[ 768]_[70=70.000000Hz] - locked

SwitchRes: [1024]x[ 768]_[75=75.000000Hz] - locked

SwitchRes: [1152]x[ 864]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 720]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 800]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 960]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[1024]_[60=60.000000Hz] - locked

SwitchRes: [1360]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1366]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1600]x[ 900]_[60=60.000000Hz] - locked

SwitchRes: [1600]x[1024]_[59=59.000000Hz] - locked

SwitchRes: [1600]x[1024]_[60=60.000000Hz] - locked

SwitchRes: [1680]x[1050]_[59=59.000000Hz] - locked

SwitchRes: [1680]x[1050]_[60=60.000000Hz] - locked

SwitchRes: [1920]x[1080]_[60=60.000000Hz]
   rng(0): 1920 x1080_60.000000p 0.000000 [fract] scale(6, 4, 1) diff(0.00, 17.04, 0.8144) ratio(6.000, 4.821)

SwitchRes: [1440]x[ 900]_[60=60.000000Hz] - locked

SwitchRes: [samsho] (1) horizontal (320x224@59.185608)->(1920x1080@60.000000)
   rng(0): 1920 x1080_60.000000p 0.000000 [fract] scale(6, 4, 1) diff(0.00, 17.04, 0.8144) ratio(6.000, 4.821)
SwitchRes: Modeline "1920x1080_60 0.000000KHz 60.000000Hz" 0.000000 1920 0 0 0 1080 0 0 0   -hsync -vsync
SwitchRes: Setting option -rotate
SwitchRes: Setting option -noror
SwitchRes: Setting option -autoror
SwitchRes: Setting option -norol
SwitchRes: Setting option -noautorol
SwitchRes: Setting option -keepaspect
SwitchRes: Setting option -unevenstretch
SwitchRes: Setting option -nounevenstretchx
SwitchRes: Setting option -noblack_frame_insertion
SwitchRes: Setting option -syncrefresh
SwitchRes: Setting option -notriplebuffer
SwitchRes: Setting option -waitvsync
SwitchRes: Setting option -filter
Video: Monitor 65537 = "\\.\DISPLAY1" (primary)
Direct3D: Using Direct3D 9Ex
Physical width 1920, height 1080
Direct3D: Initialize
Direct3D: Configuring adapter #0 = NVIDIA GeForce GTX 1050 Ti
Direct3D: Adapter has Vendor ID: 10DE and Device ID: 1C82
Direct3D: Using dynamic textures
Direct3D: YUV format = RGB
Direct3D: Max texture size = 16384x16384
Direct3D: Device created at 1920x1080
Direct3D: Initialize HLSL
Direct3D: First store options
Direct3D: HLSL initialized
Direct3D: Restore options
RawInput: APIs detected
RawInput: APIs detected
RawInput: APIs detected
DirectInput: Using DirectInput 8
stream_buffer_size = 37888
DirectSound: Primary buffer: 48000 Hz, 16 bits, 2 channels
Input: Adding keyboard #0: Standard PS/2 Keyboard (device id: \\?\ACPI#PNP0303#0#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #1: HID Keyboard Device (device id: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&000205ac_PID&022c&Col01#8&1380
e5b2&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #0: HID-compliant mouse (device id: \\?\HID#VID_1BCF&PID_0005#8&1777981f&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #0: HID-compliant mouse (device id: \\?\HID#VID_1BCF&PID_0005#8&1777981f&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd
})
Input: Adding joystick #0: Controller (XBOX 360 For Windows) (device id: Controller (XBOX 360 For Windows) product_028e045e-0000-0000-0000-5
04944564944 instance_47e6c450-5dc0-11e8-8001-444553540000)
Input: Adding joystick #1: Controller (XBOX 360 For Windows) (device id: Controller (XBOX 360 For Windows) product_028e045e-0000-0000-0000-5
04944564944 instance_058eca50-5dc3-11e8-8001-444553540000)
Region ':cslot1:maincpu' created
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: found D:\Arcade\Mame\roms\samsho.zip ECD
unzip: D:\Arcade\Mame\roms\samsho.zip has no ZIP64 ECD locator
unzip: read D:\Arcade\Mame\roms\samsho.zip central directory
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
Region ':cslot1:fixed' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
Region ':fixedbios' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: opened archive file D:\Arcade\Mame\roms\neogeo.zip
unzip: found D:\Arcade\Mame\roms\neogeo.zip ECD
unzip: D:\Arcade\Mame\roms\neogeo.zip has no ZIP64 ECD locator
unzip: read D:\Arcade\Mame\roms\neogeo.zip central directory
unzip: closing archive file D:\Arcade\Mame\roms\neogeo.zip and sending to cache
Region ':zoomy' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\neogeo.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\neogeo.zip
unzip: closing archive file D:\Arcade\Mame\roms\neogeo.zip and sending to cache
Region ':mainbios' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\neogeo.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\neogeo.zip
unzip: closing archive file D:\Arcade\Mame\roms\neogeo.zip and sending to cache
Region ':audiobios' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\neogeo.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\neogeo.zip
unzip: closing archive file D:\Arcade\Mame\roms\neogeo.zip and sending to cache
Region ':cslot1:audiocpu' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
Region ':cslot1:ymsnd' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
Region ':cslot1:sprites' created
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
unzip: found D:\Arcade\Mame\roms\samsho.zip in cache
unzip: opened archive file D:\Arcade\Mame\roms\samsho.zip
unzip: closing archive file D:\Arcade\Mame\roms\samsho.zip and sending to cache
Optional device ':cslot6' not found
Optional device ':cslot5' not found
Optional device ':cslot4' not found
Optional device ':cslot3' not found
Optional device ':cslot2' not found
Optional memory region ':audiocpu' not found
Optional memory region ':fixed' not found
Optional memory region ':sprites' not found
Optional memory region ':maincpu' not found
Optional device ':audiocpu:finder_dummy_tag' not found
Optional device ':audiocpu:finder_dummy_tag' not found
Optional device ':audiocpu:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':systemlatch:finder_dummy_tag' not found
Optional device ':screen:finder_dummy_tag' not found
Optional device ':screen:finder_dummy_tag' not found
Optional device ':screen:finder_dummy_tag' not found
Optional memory region ':palette:finder_dummy_tag' not found
Optional device ':audionmi:finder_dummy_tag' not found
Optional device ':soundlatch:finder_dummy_tag' not found
Optional device ':soundlatch2:finder_dummy_tag' not found
Optional memory region ':ymsnd.deltat' not found
Optional memory region ':ymsnd' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Optional device ':watchdog:finder_dummy_tag' not found
Optional device ':upd4990a:finder_dummy_tag' not found
Optional device ':upd4990a:finder_dummy_tag' not found
Optional memory region ':saveram' not found
Optional memory region ':cslot1:ymsnd.deltat' not found
Optional memory region ':cslot1:audiocrypt' not found
Starting Samurai Shodown / Samurai Spirits (NGM-045) ':'
  (missing dependencies; rescheduling)
Starting Motorola MC68000 ':maincpu'
Starting Zilog Z80 ':audiocpu'
Starting 74HC259 Addressable Latch ':systemlatch'
Starting Video Screen ':screen'
Starting palette ':palette'
Starting Neo-Geo Sprites (optimized) ':spritegen'
Starting Input Merger (all high) ':audionmi'
Starting Generic 8-bit latch ':soundlatch'
Starting Generic 8-bit latch ':soundlatch2'
Starting YM2610 OPNB ':ymsnd'
Starting Watchdog Timer ':watchdog'
Starting uPD4990A RTC ':upd4990a'
Starting NVRAM ':saveram'
Starting Speaker ':lspeaker'
Starting Speaker ':rspeaker'
Starting NeoGeo Memory Card ':memcard'
Starting SNK Neo Geo Edge Connector (Controller) ':edge'
Starting SNK Neo Geo Arcade Joystick ':edge:joy'
Starting SNK Neo Geo controller port ':ctrl1'
Starting SNK Neo Geo controller port ':ctrl2'
Starting Neo Geo Cartridge Slot ':cslot1'
Starting Neo Geo Standard Carts ':cslot1:rom'
Starting Samurai Shodown / Samurai Spirits (NGM-045) ':'
Attempting to parse: ArcadeGuns.cfg
Attempting to parse: default.cfg
Attempting to parse: samsho.cfg
Direct3D: Frame delay: 1, First scanline: 0, Last scanline: 1079, Break scanline: 1079, Delay scanline: 108
renderer::end_frame(), probably missed retrace, entered at scanline 83, should break at 1079, realtime is 0.000000.
renderer::end_frame(), probably missed retrace, entered at scanline 88, should break at 1079, realtime is 0.016743.
Direct3D: Get texture target - not found - 320x224:0
Direct3D: Create texture target - 1440x1080

-----------------------------------------------------
Exception at EIP=000007feed124189 (not found): ACCESS VIOLATION
While attempting to read memory at ffffffffffffffff
-----------------------------------------------------
RAX=0002a8b608000008 RBX=0000000000000000 RCX=0000000011738718 RDX=0000000000000000
RSI=000000001173c320 RDI=000000001173c328 RBP=000000000021f8a0 RSP=000000000021f7a0
 R8=000000001173c328  R9=0000000000000005 R10=0000000000000001 R11=000000000021f848
R12=0000000011738718 R13=0000000000000000 R14=00000000113789f0 R15=000000001139a540
-----------------------------------------------------
Stack crawl:
  000000000021f840: 000007feed124189 (Direct3DShaderValidatorCreate9+0x164ad)
  000000000021f8d0: 0000000002bf2890 (not found)
  000000000021f960: 0000000002bf9ed6 (not found)
  000000000021fa10: 0000000002bfa42c (not found)
  000000000021fa90: 0000000002ba378a (not found)
  000000000021fb10: 0000000002ba95b2 (not found)
  000000000021fb80: 0000000002badc64 (not found)
  000000000021fbf0: 0000000002b6ea56 (not found)
  000000000021fc40: 0000000002b6c3a0 (not found)
  000000000021fce0: 00000000045f087d (not found)
  000000000021fd60: 00000000045bb3a5 (not found)
  000000000021fde0: 00000000045be9e5 (not found)
  000000000021fe90: 00000000045b6f65 (not found)
  000000000021ff30: 0000000004571adc (not found)
  000000000022f210: 0000000002c124aa (not found)
  000000000022f4c0: 0000000002c80894 (not found)
  000000000022f630: 0000000002c80d55 (not found)
  000000000022f690: 0000000002c1044a (not found)
  000000000022fe50: 0000000008fe749d (not found)
  000000000022ff20: 00000000004013f7 (not found)
  000000000022ff50: 000000000040152b (not found)
  000000000022ff80: 0000000076d459cd (BaseThreadInitThunk+0x000d)
  000000000022ffd0: 0000000076f7a561 (RtlUserThreadStart+0x0021)

D:\Downloads\groovymame64>
Title: Re: Groovy v0.205 Crashes when enabling Frame Delay
Post by: Calamity on January 02, 2019, 04:10:13 pm
The previous version (.204) worked great with HLSL enabled and Frame Delay 7.

Yes, because the previous version didn't save the frame delay slider. Next version will fix this hopefully.
Title: Re: Groovy v0.205 Crashes with HLSL & Frame Delay enabled
Post by: NinjaZero on January 02, 2019, 09:34:48 pm
After further testing, it seems like the game runs fine when started in -Windowed mode.  I can then hit Alt-Enter to go into full-screen mode and even change the Frame Delay Slider.  The game works fine with Frame Delay and HLSL enabled, I just have to start in windowed mode then go full screen.  Hopefully, this is something that's pretty easy to fix.
Title: Re: Groovy v0.205 Crashes with HLSL & Frame Delay enabled
Post by: Calamity on January 07, 2019, 05:29:24 pm
Hopefully, this is something that's pretty easy to fix.

Yes, it is.
Title: Re: Groovy v.205 Crashes in Full-Screen w/HLSL & Frame Delay enabled -Works Windowed
Post by: NinjaZero on January 26, 2019, 02:29:07 pm
I guess the fix will be in .206?