libretro / libretro-uae

PUAE libretro
GNU General Public License v2.0
114 stars 61 forks source link

[IAGL] Amiga games stuck at kickstart rom screen #586

Open kec2 opened 1 year ago

kec2 commented 1 year ago

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

When i try to run an Amiga game it gets stuck at the kickstart Rom screen. In my case 3.1 ROM 40.068 The games are load via Internet Archive Game Launcher

RetroArch Behavior

Here is a clear and concise description of what happens in RetroArch with the same core/game:

To Reproduce

Steps to reproduce the behavior:

  1. Add-ons
  2. IAGL
  3. Browse By Category
  4. Click Amiga
  5. Click Amiga again
  6. One Big List
  7. 3D Pool
  8. Launch
  9. Game is stuck at kickstart rom load screen

Debuglog

The debuglog can be found here:

2023-02-22 19:24:14.813 T:1050     INFO <general>: CPythonInvoker(21, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:24:15.778 T:1050     INFO <general>: Python interpreter stopped
2023-02-22 19:24:54.925 T:1093     INFO <general>: initializing python engine.
2023-02-22 19:24:55.097 T:1093     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:24:56.653 T:1093    ERROR <general>: NEWADDON Invalid Date Format ""
2023-02-22 19:24:56.674 T:1093     INFO <general>: CPythonInvoker(22, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:24:57.640 T:1093     INFO <general>: Python interpreter stopped
2023-02-22 19:24:58.637 T:991      INFO <general>: JSONRPC Server: Disconnection detected
2023-02-22 19:24:59.394 T:991      INFO <general>: JSONRPC Server: New connection added
2023-02-22 19:25:15.721 T:1106     INFO <general>: initializing python engine.
2023-02-22 19:25:15.883 T:1106     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:25:17.277 T:1106     INFO <general>: CPythonInvoker(23, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:25:18.272 T:1106     INFO <general>: Python interpreter stopped
2023-02-22 19:25:25.503 T:1119     INFO <general>: initializing python engine.
2023-02-22 19:25:25.616 T:1119     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:25:26.968 T:1119     INFO <general>: CPythonInvoker(24, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:25:27.928 T:1119     INFO <general>: Python interpreter stopped
2023-02-22 19:25:31.302 T:1127     INFO <general>: initializing python engine.
2023-02-22 19:25:31.432 T:1127     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:25:32.751 T:1127     INFO <general>: CPythonInvoker(25, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:25:33.769 T:1127     INFO <general>: Python interpreter stopped
2023-02-22 19:25:40.548 T:1134     INFO <general>: initializing python engine.
2023-02-22 19:25:40.739 T:1134     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:25:42.133 T:1134     INFO <general>: CPythonInvoker(26, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:25:43.183 T:1134     INFO <general>: Python interpreter stopped
2023-02-22 19:25:48.247 T:1140     INFO <general>: initializing python engine.
2023-02-22 19:25:48.393 T:1140     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:25:51.548 T:1140     INFO <general>: CPythonInvoker(27, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:25:52.566 T:1140     INFO <general>: Python interpreter stopped
2023-02-22 19:25:53.828 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Ubi Soft.png
2023-02-22 19:25:55.179 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Psyclapse (Psygnosis).png
2023-02-22 19:25:55.197 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Coktel.png
2023-02-22 19:25:55.217 T:1154    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Image Works.png
2023-02-22 19:25:55.640 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Logotron.png
2023-02-22 19:26:00.778 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Data East.png
2023-02-22 19:26:06.518 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Imagine (Ocean).png
2023-02-22 19:26:10.151 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Domark Ltd..png
2023-02-22 19:26:12.144 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Imagine (Ocean).png
2023-02-22 19:26:20.183 T:1154    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Domark Ltd..png
2023-02-22 19:26:20.728 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/ARC [Atari UK].png
2023-02-22 19:26:21.248 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Shareware.png
2023-02-22 19:26:22.015 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Electronic Zoo.png
2023-02-22 19:26:22.844 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Psyclapse (Psygnosis).png
2023-02-22 19:26:23.767 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/System 3.png
2023-02-22 19:26:24.532 T:1090    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Core.png
2023-02-22 19:26:27.559 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Accolade.png
2023-02-22 19:26:35.766 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Psygnosis.png
2023-02-22 19:26:35.830 T:1154    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Electronic Arts.png
2023-02-22 19:26:36.096 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Coktel.png
2023-02-22 19:26:37.976 T:1154    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Rasputin.png
2023-02-22 19:26:38.029 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Konami.png
2023-02-22 19:26:38.057 T:1148    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Ocean / Data East / Hit Squad.png
2023-02-22 19:26:41.008 T:1092    ERROR <general>: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/Konami.png
2023-02-22 19:26:48.332 T:1189     INFO <general>: initializing python engine.
2023-02-22 19:26:48.461 T:1189     INFO <general>: IAGL:  Lets Play!
2023-02-22 19:26:50.559 T:943      INFO <general>: Loading skin file: /storage/.kodi/addons/plugin.program.iagl/resources/skins/Default/1080i/IAGL-infodialog.xml, load type: LOAD_ON_GUI_INIT
2023-02-22 19:27:04.528 T:943      INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2023-02-22 19:27:07.083 T:1189     INFO <general>: IAGL:  Download complete for http://archive.org/download/amigaromset/CommodoreAmigaRomset1.zip/BatmanReturns_v1.0.hdf.  File size 1802240
2023-02-22 19:27:07.098 T:1189     INFO <general>: IAGL:  Post processing skipped for BatmanReturns_v1.0.hdf, attempting launch
2023-02-22 19:27:07.098 T:1189    ERROR <general>: IAGL:  Launcher None is unknown, defauling to RETROPLAYER
2023-02-22 19:27:07.127 T:943      INFO <general>: RetroPlayer[PROCESS]: Created process info for X11
2023-02-22 19:27:07.203 T:943      INFO <general>: Loading controller layout: /storage/.kodi/addons/game.controller.keyboard/resources/layout.xml
2023-02-22 19:27:07.206 T:943      INFO <general>: Loading controller layout: /storage/.kodi/addons/game.controller.amiga.cd32/resources/layout.xml
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: ------------------------------------
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: Loaded DLL for game.libretro.uae
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: Client: Commodore - Amiga (PUAE) at version 4.9.1.44.1
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: Valid extensions: .7z .adf .adz .ccd .chd .cue .dms .fdi .hdf .hdz .info .ipf .iso .lha .m3u .mds .nrg .raw .slave .uae .zip
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: Supports VFS:                  no
2023-02-22 19:27:07.208 T:943      INFO <general>: GAME: Supports standalone execution: yes
2023-02-22 19:27:07.209 T:943      INFO <general>: GAME: ------------------------------------
2023-02-22 19:27:07.209 T:943      INFO <general>: RetroPlayer[PLAYER]: Opening: /storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf
2023-02-22 19:27:07.209 T:943      INFO <general>: AddOnLog: game.libretro.uae: Model: 'A1200'

2023-02-22 19:27:07.210 T:943      INFO <general>: AddOnLog: game.libretro.uae: Kickstart: 'kick40068.A1200'

2023-02-22 19:27:07.214 T:943      INFO <general>: AddOnLog: game.libretro.uae: HD (1) inserted in drive DH0: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf'

2023-02-22 19:27:07.215 T:943      INFO <general>: AddOnLog: game.libretro.uae: --------------------------------------------------------------------------------

2023-02-22 19:27:07.215 T:943      INFO <general>: AddOnLog: game.libretro.uae: PUAE 4.9.1 67ce4347, Jan 30 2023 03:01:24

2023-02-22 19:27:07.215 T:943      INFO <general>: AddOnLog: game.libretro.uae: --------------------------------------------------------------------------------

2023-02-22 19:27:07.365 T:943      INFO <general>: AddOnLog: game.libretro.uae: KS ver = 40 (0x28)

2023-02-22 19:27:07.421 T:943      INFO <general>: Skipped 1 duplicate messages..
2023-02-22 19:27:07.421 T:943      INFO <general>: AddOnLog: game.libretro.uae: RTAREA located at 00F00000

2023-02-22 19:27:07.422 T:943      INFO <general>: AddOnLog: game.libretro.uae: TRAP_ENTRY = 00f021de

2023-02-22 19:27:07.455 T:943      INFO <general>: AddOnLog: game.libretro.uae: Known ROM 'KS ROM v3.1 (A1200)' loaded

2023-02-22 19:27:07.512 T:943      INFO <general>: AddOnLog: game.libretro.uae: No disk in drive 0.

2023-02-22 19:27:07.512 T:943      INFO <general>: AddOnLog: game.libretro.uae: CPU cycleunit: 128 (0.250)

2023-02-22 19:27:07.560 T:943      INFO <general>: AddOnLog: game.libretro.uae: 1872 CPU functions

2023-02-22 19:27:07.581 T:943      INFO <general>: AddOnLog: game.libretro.uae: CPU cycleunit: 128 (0.250)

2023-02-22 19:27:07.590 T:943      INFO <general>: AddOnLog: game.libretro.uae: Building CPU, 45912 opcodes (2 -2 1)

2023-02-22 19:27:07.590 T:943      INFO <general>: AddOnLog: game.libretro.uae: CPU=68020, FPU=0, MMU=0, JIT=0. ~cycle-exact 24-bit

2023-02-22 19:27:07.593 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf'

2023-02-22 19:27:07.595 T:943      INFO <general>: AddOnLog: game.libretro.uae: Reset at 00000000. Chipset mask = 00000007

2023-02-22 19:27:07.612 T:943      INFO <general>: AddOnLog: game.libretro.uae: PAL mode V=50.0000Hz H=15625.0879Hz (227x312+0) IDX=10 (PAL) D=0 RTG=0/0

2023-02-22 19:27:07.647 T:943      INFO <general>: AddOnLog: game.libretro.uae: Autoconfig board list:

2023-02-22 19:27:07.647 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 01: 

2023-02-22 19:27:07.647 T:943      INFO <general>: AddOnLog: game.libretro.uae: '<no name>' no autoconfig 00da0000 - 00daffff.

2023-02-22 19:27:07.647 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 02: 

2023-02-22 19:27:07.647 T:943      INFO <general>: AddOnLog: game.libretro.uae: '<no name>' no autoconfig 00600000 - 00a7ffff.

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 03: 

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: 'UAE Boot ROM' no autoconfig 00f00000 - 00f0ffff.

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 04: 

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: 'Z2 Fast RAM'

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   e0.51.00.00.07.db.00.00.00.01.00.00.00.00.00.00

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   MID 2011 (07db) PID 81 (51) SER 00000001

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   Z2 0x00200000 0x00200000 8192K RAM 0

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 05: 

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: 'UAE FS ROM'

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   d1.52.40.00.07.db.00.00.00.03.20.00.00.00.00.00

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   MID 2011 (07db) PID 82 (52) SER 00000003

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae:   Z2 0x00e90000 0x00e90000   64K ROM 0

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: END

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 0: skipping autoconfig (not autoconfig)

2023-02-22 19:27:07.648 T:943      INFO <general>: AddOnLog: game.libretro.uae: Card 2: skipping autoconfig (not autoconfig)

2023-02-22 19:27:07.655 T:943      INFO <general>: AddOnLog: game.libretro.uae: hardreset, memory cleared

2023-02-22 19:27:07.656 T:943      INFO <general>: AddOnLog: game.libretro.uae: SNDRATE 312.0*227.0*50.000000=3541200.000000

2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: ---------------------------------------
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: Game loop:      true
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: FPS:            50.000000
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: Sample Rate:    44100.000000
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: Region:         PAL
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: Savestate size: 11027621
2023-02-22 19:27:07.708 T:943      INFO <general>: GAME: ---------------------------------------
2023-02-22 19:27:07.783 T:943     ERROR <general>: Failed to open savestate file /storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.sav
2023-02-22 19:27:07.783 T:943      INFO <general>: Skipped 1 duplicate messages..
2023-02-22 19:27:07.783 T:943     ERROR <general>: RetroPlayer[SAVE]: Failed to load savestate
2023-02-22 19:27:07.786 T:943      INFO <general>: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
2023-02-22 19:27:07.849 T:1206     INFO <general>: RetroPlayer[RENDER]: Configuring format RGB565, nominal 360x288, max 1440x576
2023-02-22 19:27:07.849 T:1206     INFO <general>: RetroPlayer[AUDIO]: Creating audio stream, format = AE_FMT_S16NE, sample rate = 44100, channels = 2
2023-02-22 19:27:07.891 T:949      INFO <general>: CActiveAESink::OpenSink - initialize sink
2023-02-22 19:27:07.891 T:949      INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=Generic,DEV=0"
2023-02-22 19:27:07.899 T:949      INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=Generic,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
2023-02-22 19:27:07.903 T:949      INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-02-22 19:27:07.903 T:949      INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
2023-02-22 19:27:07.931 T:943      INFO <general>: RetroPlayer[RENDER]: Renderer configured on first frame
2023-02-22 19:27:07.931 T:943     ERROR <general>: RetroPlayer[RENDER]: Creating renderer for OpenGL
2023-02-22 19:27:08.133 T:1206     INFO <general>: AddOnLog: game.libretro.uae: SERIAL: period=372, baud=9600, hsyncs=14, bits=8, PC=f8018a

2023-02-22 19:27:08.133 T:1206     INFO <general>: AddOnLog: game.libretro.uae: B-Trap F201 at 00F80CA0 -> 00F80CC0

2023-02-22 19:27:08.330 T:1206     INFO <general>: AddOnLog: game.libretro.uae: Card 4: Z2 0x00200000 8192K RAM Fast memory

2023-02-22 19:27:08.332 T:1206     INFO <general>: AddOnLog: game.libretro.uae: Card 5: Z2 0x00e90000   64K ROM Filesystem autoconfig

2023-02-22 19:27:08.332 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00000000    2048K/1 =    2048K ID C32 Chip memory

2023-02-22 19:27:08.332 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00200000    8192K/1 =    8192K ID F32 Fast memory

2023-02-22 19:27:08.332 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00A00000     512K/0 =     512K -- F32 <none>

2023-02-22 19:27:08.334 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00A80000    1024K/2 =     512K ID F32 Kickstart ROM (1483A091)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: =KS ROM v3.1 (A1200) rev 40.68 (512k)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00B80000     448K/0 =     448K -- F32 <none>

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00BF0000      64K/0 =      64K -- CIA CIA

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00C00000    1536K/0 =    1536K -- C32 <none>

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00D80000     256K/0 =     256K -- C16 Gayle (low)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00DC0000      64K/0 =      64K -- C16 Battery backed up clock (MSM6242B)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00DD0000      64K/0 =      64K -- C16 Gayle (low)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00DE0000      64K/0 =      64K -- C16 Gayle (high)

2023-02-22 19:27:08.335 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00DF0000      64K/0 =      64K -- C16 Custom chipset

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00E00000     512K/1 =     512K ID F32 Kickstart ROM (1483A091)

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: =KS ROM v3.1 (A1200) rev 40.68 (512k)

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00E80000      64K/0 =      64K -- F32 Autoconfig Z2

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00E90000      64K/1 =      64K -- F32 Filesystem autoconfig

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00EA0000     384K/0 =     384K -- F32 <none>

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00F00000      64K/1 =      64K -- F32 UAE Boot ROM

2023-02-22 19:27:08.337 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00F10000     448K/0 =     448K -- F32 <none>

2023-02-22 19:27:08.339 T:1206     INFO <general>: AddOnLog: game.libretro.uae: 00F80000     512K/1 =     512K ID F32 Kickstart ROM (1483A091)

2023-02-22 19:27:08.339 T:1206     INFO <general>: AddOnLog: game.libretro.uae: =KS ROM v3.1 (A1200) rev 40.68 (512k)

2023-02-22 19:27:08.534 T:1206     INFO <general>: AddOnLog: game.libretro.uae: filesystem: diagentry 00200098 configdev 00000c48

2023-02-22 19:27:08.609 T:1206     INFO <general>: AddOnLog: game.libretro.uae: SNDRATE 313.0*227.0*50.000000=3552550.000000

2023-02-22 19:27:08.609 T:1206     INFO <general>: AddOnLog: game.libretro.uae: PAL mode V=50.0000Hz H=15625.0879Hz (227x312+1) IDX=10 (PAL) D=0 RTG=0/0

2023-02-22 19:27:08.886 T:1206     INFO <general>: AddOnLog: game.libretro.uae: Mounting uaehf.device:2 0 (0):

2023-02-22 19:27:08.886 T:1206     INFO <general>: AddOnLog: game.libretro.uae: FS: mounted virtual unit RASystem (/storage/.kodi/userdata/addon_data/game.libretro.uae/resources/system/)

2023-02-22 19:27:12.099 T:1189     INFO <general>: IAGL:  Playing game Batman Returns
2023-02-22 19:27:12.267 T:1189     INFO <general>: CPythonInvoker(28, /storage/.kodi/addons/plugin.program.iagl/addon.py): script successfully run
2023-02-22 19:27:13.573 T:1189     INFO <general>: Python interpreter stopped
2023-02-22 19:27:13.590 T:1188    ERROR <general>: GetDirectory - Error getting plugin://plugin.program.iagl/game/Amiga_ZachMorris/Batman+Returns
2023-02-22 19:27:13.591 T:943     ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.program.iagl/game/Amiga_ZachMorris/Batman+Returns) failed
2023-02-22 19:27:58.339 T:991      INFO <general>: JSONRPC Server: Disconnection detected

Screenshots

Here are some links or screenshots to help explain the problem:

Your Environment

Used Operating system:

Operating system version/name:

Kodi version: LibreELEC, 10.0.4 Kodi build 19.5.0 Compiled: 2023-01-07

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

sonninnos commented 1 year ago

Pretty sure this is in the wrong place, since it looks like nothing that can be fixed here.

This looks highly suspicious, as in it can't access and open those files, and thus no hard disks are connected, so no wonder it can't boot:

2023-02-22 19:27:07.593 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDSaves.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf'

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: Attempting to open '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf' in read-only mode.

2023-02-22 19:27:07.594 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/BatmanReturns_v1.0.hdf'

Better report it to the Kodi team.

mczerski commented 1 year ago

So I have the same problem in CoreELEC on Amlogic S903X3.

2023-02-22 19:27:07.593 T:943      INFO <general>: AddOnLog: game.libretro.uae: hfd attempting to open: '/storage/.kodi/userdata/addon_data/game.libretro.uae/save/WHDLoad.hdf'

So here something is going very wierd. This log comes from sources/src/hardfile_unix.c:hdf_open_target. in line 299 it tries to calculate file size by calling fseeko(h, 0, SEEK_END); - but this call returns actual file size instead of expected 0 (0 means succesful fseek). So if in next line fails and file is not opened. I made a test program that only calls fseek and I copiled it with exactly the same compile options as sources/src/hardfile_unix.c - test program works as expected. So what is going on ?

sonninnos commented 1 year ago

Hmm.. fseeko is replaced with VFS version rfseek. Try building the core with NO_LIBRETRO_VFS=1. No idea why it wouldn't affect all platforms though, since I'm not seeing the VFS version returning anything else either..

mczerski commented 1 year ago

addon built with NO_LIBRETRO_VFS=1 makes kodi crash, tail of the kodi log:

2023-05-24 00:01:55.103 T:25836    info <general>: AddOnLog: game.libretro.uae: No model specified in: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/AlloAllo_v1.0.hdf'

2023-05-24 00:01:55.103 T:25836    info <general>: AddOnLog: game.libretro.uae: Model: 'A1200'

2023-05-24 00:01:55.103 T:25836    info <general>: AddOnLog: game.libretro.uae: Kickstart: 'kick40068.A1200'

2023-05-24 00:01:55.104 T:25836    info <general>: AddOnLog: game.libretro.uae: HD (1) inserted in drive DH0: '/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/AlloAllo_v1.0.hdf'

2023-05-24 00:01:55.104 T:25836    info <general>: AddOnLog: game.libretro.uae: --------------------------------------------------------------------------------

2023-05-24 00:01:55.104 T:25836    info <general>: AddOnLog: game.libretro.uae: PUAE 4.9.1 4de8780457, May 23 2023 23:55:34

2023-05-24 00:01:55.104 T:25836    info <general>: AddOnLog: game.libretro.uae: --------------------------------------------------------------------------------

and then kodi restarts

sonninnos commented 1 year ago

Something else must be seriously wrong then than just the hdf part, since it stops before getting to the hdf part. A proper stack trace would be nice. What was the platform again?

It returns 0 fine here with and without VFS.

mczerski commented 1 year ago

CoreELEC 20.1 Amlogic S903X3 (32 bit I believe, cannot check now)

sonninnos commented 1 year ago

Something something ARM toolchain or makefile flag related then perhaps, no idea..

mczerski commented 1 year ago

I did some more testing.

  1. game.libretro.uae addon has supports_vfs set to "false" in addon.xml - totally don't know what it means but looks suspicious since libretro-uae is built with USE_LIBRETRO_VFS. Changing supports_vfs to "true" makes game.libretro.uae addon not able to run at all - only error:
    error <general>: Interface_Base::get_setting_string - can't find setting 'puae_use_whdload_nowritecache' in 'Commodore - Amiga (PUAE)'
    error <general>: ADDON: Dll Commodore - Amiga (PUAE) - Client returned bad status (5) from Create and is not usable
  2. calling fseeko actually goes to filestream_seek_cb: https://github.com/libretro/libretro-uae/blob/605264f15d31c42b1fe546fd47a6ffb1301c03c8/libretro-common/streams/file_stream.c#L355 Which is set in filestream_vfs_init in: https://github.com/libretro/libretro-uae/blob/605264f15d31c42b1fe546fd47a6ffb1301c03c8/libretro/libretro-core.c#LL3254C7-L3254C26 This is what I could test by modifying libretro-uae code. where it goes from filestream_seek_cb I cannot check. What part of kodi calls retro_set_environment ? what is set filestream_seek_cb to ?
sonninnos commented 1 year ago

If the frontend does not support VFS for reasons unknown, then it must also add NO_LIBRETRO_VFS=1 to build envs. Then again I don't understand why it wouldn't, since VFS is only a layer to have every platform act the same way with one code.

The first error makes absolutely no sense since it is not related to VFS in any way. puae_use_whdload_nowritecache is a pretty new core option, so does the addon somehow need to update something to also add it..? Makes no sense either.

mczerski commented 1 year ago

regarding puae_use_whdload_nowritecache: I used master version of the libretro-uae but older version of the game.libretro.uae kodi plugin (version that is used in CoreELEC version that I use) - so this may be the reason for this error. And I guess it is irrelevant for the fseek issue.

If by frontend You mean KODI in my case then i believe it supports VFS since other emulators that I use and they work without issues have supports_vfs=true in addon.xml (e.g. snes9x).

For me the obvious thing to do would be to define supports_vfs=true in addon.xml (besides the fact that I totally do not know what it does :D). But, as I said, it makes uae emulator not run at all. Can someone here help with that just to check if it would help ?

sonninnos commented 1 year ago

The usage of the "virtual file system" is not comparable between a console and a computer anyway, since a console emulator does not need to read and write to host filesystem like a computer in this case.

I don't understand why IAGL needs to behave any differently with or without libretro VFS, as in why is it even an option.. Whatever it does, I don't think the core can have any say in that. I'd like to see more detailed log with it enabled, and the missing core option error sorted out first.

mczerski commented 1 year ago

So I did one blind shot and commented out lines 3249 to 3255 from here https://github.com/libretro/libretro-uae/blob/605264f15d31c42b1fe546fd47a6ffb1301c03c8/libretro/libretro-core.c#L3250 This was the only change. And now launching games in hdf format works :) at least one game that I tried.

sonninnos commented 1 year ago

In other words build with NO_LIBRETRO_VFS=1. The KODI game running part isn't handling VFS properly then if that fails. Maybe even using a different version of libretro-common, who knows.

mczerski commented 1 year ago

NO_LIBRETRO_VFS=1 makes kodi crash https://github.com/libretro/libretro-uae/issues/586#issuecomment-1560187229

sonninnos commented 1 year ago

Had no issues in Windows with NO_LIBRETRO_VFS=1, but under Linux it didn't even build properly, whoops. I managed to sort it out, so fix is coming shortly.

mczerski commented 9 months ago

I checked current master and now NO_LIBRETRO_VFS=1 works. Kodi does not crash and I can load the game that previously didn't load.