Calinou / scoop-games

Scoop bucket for open source/freeware games and game-related tools
Creative Commons Zero v1.0 Universal
291 stars 148 forks source link

[Bug]: Duckstation Fails to Open in Current Folder - Failed to open game list cache #1251

Open baltimoresports opened 1 day ago

baltimoresports commented 1 day ago

Prerequisites

Package Name

duckstation, duckstation-preview

Expected/Current Behaviour

Opening Duckstation or Duckstation-Preview causes it to immediately crash Workaround: Open from 'version' folder versus 'current'

Error in logs: E(Refresh): Failed to open game list cache: CreateFile() failed: Win32 Error 3: The system cannot find the path specified.

Steps to Reproduce

1. To Crash: Run duckstation-qt-x64-ReleaseLTCG.exe from C:\Users\user\scoop\apps\duckstation\current
2. To Open: Run duckstation-qt-x64-ReleaseLTCG.exe from C:\Users\user\scoop\apps\duckstation\20241011-g0c2ab82
3. Enable 'log to file' under advanced settings.
4. Re-run duckstation-qt-x64-ReleaseLTCG.exe from C:\Users\user\scoop\apps\duckstation\current
5. Open duckstation.log

Possible Solution

Potential issue with Symlinks or permissions. Tried running as user and admin.

Scoop and Buckets Version

scoop --version
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
ae0dcc965 (HEAD -> master, origin/master, origin/HEAD) pdfcpu: Update to version 0.9.1

'extras' bucket:
2b102a723 (HEAD -> master, origin/master, origin/HEAD) vtm: Update to version 0.9.99.33

'games' bucket:
f92843766 (HEAD -> master, origin/master, origin/HEAD) ppsspp-dev: Update to version 1.17.1-1314-g19eae98ea9

Scoop Config

last_update                       scoop_repo                              scoop_branch
-----------                       ----------                              ------------
2024-10-24T08:51:26.2053218-07:00 https://github.com/ScoopInstaller/Scoop master

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.26100.1882
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.1882
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

baltimoresports commented 1 day ago

Additional Info:

duckstation.log

[    0.0775] I/SDLInputSource: Using Controller DB from resources.
[    0.1191] I/SDLInputSource: 827 controller mappings are loaded.
[    0.1191] I/System: DuckStation for Windows (x64)
[    0.1191] I/System: Version: 0.1-7675-g0c2ab8225 [dev]
[    0.1191] I/System: SCM Timestamp: 2024-10-11T16:54:46+10:00
[    0.1191] I/System: Build Timestamp: Oct 11 2024 07:22:30
[    0.1191] I/System: Host CPU: Intel Core i7-10700K
[    0.1192] I/System: CPU has 16 logical processor(s) and 8 core(s) across 1 cluster(s).
[    0.1535] E(Refresh): Failed to open game list cache: CreateFile() failed: Win32 Error 3: The system cannot find the path specified.

dir /AL /S C:\Users\user\scoop

 Directory of C:\Users\user\scoop\apps\duckstation

10/24/2024  10:19 AM    <JUNCTION>     current [\??\C:\Users\user\scoop\apps\duckstation\20241011-g0c2ab82]
               0 File(s)              0 bytes

 Directory of C:\Users\user\scoop\apps\duckstation\20241011-g0c2ab82

10/24/2024  08:41 AM    <JUNCTION>     bios [\??\C:\Users\user\scoop\persist\duckstation\bios]
10/24/2024  08:41 AM    <JUNCTION>     cache [\??\C:\Users\user\scoop\persist\duckstation\cache]
10/24/2024  08:41 AM    <JUNCTION>     cheats [\??\C:\Users\user\scoop\persist\duckstation\cheats]
10/24/2024  08:41 AM    <JUNCTION>     covers [\??\C:\Users\user\scoop\persist\duckstation\covers]
10/24/2024  08:41 AM    <JUNCTION>     dump [\??\C:\Users\user\scoop\persist\duckstation\dump]
10/24/2024  08:41 AM    <JUNCTION>     gamesettings [\??\C:\Users\user\scoop\persist\duckstation\gamesettings]
10/24/2024  08:41 AM    <JUNCTION>     inputprofiles [\??\C:\Users\user\scoop\persist\duckstation\inputprofiles]
10/24/2024  08:41 AM    <JUNCTION>     memcards [\??\C:\Users\user\scoop\persist\duckstation\memcards]
10/24/2024  08:41 AM    <JUNCTION>     savestates [\??\C:\Users\user\scoop\persist\duckstation\savestates]
10/24/2024  08:41 AM    <JUNCTION>     screenshots [\??\C:\Users\user\scoop\persist\duckstation\screenshots]
10/24/2024  08:41 AM    <JUNCTION>     shaders [\??\C:\Users\user\scoop\persist\duckstation\shaders]
10/24/2024  08:41 AM    <JUNCTION>     textures [\??\C:\Users\user\scoop\persist\duckstation\textures]
               0 File(s)              0 bytes

 Directory of C:\Users\user\scoop\apps\duckstation\current

10/24/2024  08:41 AM    <JUNCTION>     bios [\??\C:\Users\user\scoop\persist\duckstation\bios]
10/24/2024  08:41 AM    <JUNCTION>     cache [\??\C:\Users\user\scoop\persist\duckstation\cache]
10/24/2024  08:41 AM    <JUNCTION>     cheats [\??\C:\Users\user\scoop\persist\duckstation\cheats]
10/24/2024  08:41 AM    <JUNCTION>     covers [\??\C:\Users\user\scoop\persist\duckstation\covers]
10/24/2024  08:41 AM    <JUNCTION>     dump [\??\C:\Users\user\scoop\persist\duckstation\dump]
10/24/2024  08:41 AM    <JUNCTION>     gamesettings [\??\C:\Users\user\scoop\persist\duckstation\gamesettings]
10/24/2024  08:41 AM    <JUNCTION>     inputprofiles [\??\C:\Users\user\scoop\persist\duckstation\inputprofiles]
10/24/2024  08:41 AM    <JUNCTION>     memcards [\??\C:\Users\user\scoop\persist\duckstation\memcards]
10/24/2024  08:41 AM    <JUNCTION>     savestates [\??\C:\Users\user\scoop\persist\duckstation\savestates]
10/24/2024  08:41 AM    <JUNCTION>     screenshots [\??\C:\Users\user\scoop\persist\duckstation\screenshots]
10/24/2024  08:41 AM    <JUNCTION>     shaders [\??\C:\Users\user\scoop\persist\duckstation\shaders]
10/24/2024  08:41 AM    <JUNCTION>     textures [\??\C:\Users\user\scoop\persist\duckstation\textures]
               0 File(s)              0 bytes
baltimoresports commented 1 day ago

I have also validated the normal Duckstation from their website does not have this issue.