Shazbot / WH3-Mod-Manager

Mod manager for Total War: Warhammer 3, Steam version only
MIT License
107 stars 17 forks source link

Check Compat button leads to permanent spinner #7

Closed kroatoa closed 1 year ago

kroatoa commented 1 year ago

Hi,

I am running into the issue where clicking the Check Compat button leads to a permanent spinner the first time it is pressed leads to "Reading And Comparing Packs..." popup, but nothing is actually happening.

I checked disk activity using process monitor and wh3mm.exe is not accessing any files in the mod folders I tried testing with only having subscribed to as that only touches one table and having made a renamed (file not tables) copy in data, where I would have expected a conflict. https://steamcommunity.com/workshop/filedetails/?id=2789864837 Running on Windows 10, and the mod manager works just fine for everything else. Starting the mod manager from command line logs the following


PS E:\Games\mod\wh3 mm> .\wh3mm.exe
[3080:0909/234325.285:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
[3080:0909/234325.286:ERROR:cache_util.cc(145)] Unable to move cache folder C:\Users\schos\AppData\Roaming\wh3mm\GPUCache to C:\Users\schos\AppData\Roaming\wh3mm\old_GPUCache_000
[3080:0909/234325.286:ERROR:disk_cache.cc(196)] Unable to create cache
[3080:0909/234325.286:ERROR:shader_disk_cache.cc(613)] Shader Cache Creation failed: -2
(node:3080) ExtensionLoadWarning: Warnings loading extension at C:\Users\schos\AppData\Roaming\wh3mm\extensions\lmhkpmbekcpmknklioeibfkpmmfibljd:
  Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.
  Permission 'notifications' is unknown or URL pattern is malformed.
  Permission 'contextMenus' is unknown or URL pattern is malformed.

(Use `wh3mm --trace-warnings ...` to show where the warning was created)
Added Extension:  Redux DevTools
Found libraryfolders.vdf at C:\Program Files (x86)\Steam\steamapps\libraryfolders.vdf
Found appmanifest_1142710.acf at D:\\Games\steamapps\appmanifest_1142710.acf
Content folder is at D:\Games\steamapps\workshop\content\1142710
Game path is at D:\Games\steamapps\common\Total War WARHAMMER III
READING PACKS
(node:3080) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[5036:0909/234325.946:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
[5036:0909/234325.947:ERROR:cache_util.cc(145)] Unable to move cache folder C:\Users\schos\AppData\Roaming\wh3mm\Cache\Cache_Data to C:\Users\schos\AppData\Roaming\wh3mm\Cache\old_Cache_Data_000
[5036:0909/234325.947:ERROR:disk_cache.cc(196)] Unable to create cache
readPacks: 434.748ms
READ PACKS DONE
Error: Cannot find module 'binary-file'
Require stack:
- E:\Games\mod\wh3 mm\resources\app\.webpack\main\readPacksWorker.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\Games\mod\wh3 mm\resources\app\.webpack\main\readPacksWorker.js:1:1791)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'E:\\Games\\mod\\wh3 mm\\resources\\app\\.webpack\\main\\readPacksWorker.js'
  ]
}
failed for 2790577984
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719536
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2790577984
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719752
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of undefined (reading 'replace')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:720137
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2812844625
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719536
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2812844625
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719752
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of undefined (reading 'replace')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:720137
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2799504999
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719536
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2799504999
TypeError: Cannot read properties of null (reading '1')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:719752
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of undefined (reading 'replace')
    at E:\Games\mod\wh3 mm\resources\app\.webpack\main\index.js:2:720137
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
failed for 2804425815

Please let me know if I can provide more information, and thanks for creating this tool :)

Shazbot commented 1 year ago

That's very helpful, no idea why it didn't error on my PC.

Try the v1.22.1 version for my try to fix this.

arshesney commented 1 year ago

Just tested 1.22.1, there's another error:

(node:9956) ExtensionLoadWarning: Warnings loading extension at C:\Users\<USER>\AppData\Roaming\wh3mm\extensions\lmhkpmbekcpmknklioeibfkpmmfibljd:
  Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.
  Permission 'notifications' is unknown or URL pattern is malformed.
  Permission 'contextMenus' is unknown or URL pattern is malformed.

(Use `wh3mm --trace-warnings ...` to show where the warning was created)
16:53:17.584 > Added Extension:  Redux DevTools
Added Extension:  Redux DevTools
16:53:18.047 > Found libraryfolders.vdf at S:\Steam\steamapps\libraryfolders.vdf
Found libraryfolders.vdf at S:\Steam\steamapps\libraryfolders.vdf
16:53:18.054 > Found appmanifest_1142710.acf at N:\\SteamLibrary\steamapps\appmanifest_1142710.acf
Found appmanifest_1142710.acf at N:\\SteamLibrary\steamapps\appmanifest_1142710.acf
16:53:18.055 > Content folder is at N:\SteamLibrary\steamapps\workshop\content\1142710
Content folder is at N:\SteamLibrary\steamapps\workshop\content\1142710
16:53:18.056 > Game path is at N:\SteamLibrary\steamapps\common\Total War WARHAMMER III
Game path is at N:\SteamLibrary\steamapps\common\Total War WARHAMMER III
16:53:18.070 > READING PACKS
READING PACKS
(node:9956) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
16:53:18.803 > readPacks: 730.381ms
readPacks: 730.381ms
16:53:18.803 > READ PACKS DONE
READ PACKS DONE
16:53:20.203 > Error: Cannot find module 'denodeify'
Require stack:
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\lib\binary-file.js
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\index.js
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\readPacksWorker.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\lib\binary-file.js:1:135)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
Error: Cannot find module 'denodeify'
Require stack:
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\lib\binary-file.js
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\index.js
- V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\readPacksWorker.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (V:\mods\TotalWar\WH3MM\resources\app\.webpack\node_modules\binary-file\lib\binary-file.js:1:135)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'V:\\mods\\TotalWar\\WH3MM\\resources\\app\\.webpack\\node_modules\\binary-file\\lib\\binary-file.js',
    'V:\\mods\\TotalWar\\WH3MM\\resources\\app\\.webpack\\node_modules\\binary-file\\index.js',
    'V:\\mods\\TotalWar\\WH3MM\\resources\\app\\.webpack\\main\\readPacksWorker.js'
  ]
}
16:53:21.605 > failed fetching mod page for 2854309416
failed fetching mod page for 2854309416
16:53:21.608 > TypeError: Cannot read properties of null (reading '1')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:764597
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of null (reading '1')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:764597
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
16:53:21.610 > failed fetching mod page for 2854309416
failed fetching mod page for 2854309416
16:53:21.610 > TypeError: Cannot read properties of null (reading '1')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:764877
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of null (reading '1')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:764877
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
16:53:21.611 > TypeError: Cannot read properties of undefined (reading 'replace')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:765343
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of undefined (reading 'replace')
    at V:\mods\TotalWar\WH3MM\resources\app\.webpack\main\index.js:2:765343
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Lobuno commented 1 year ago

I have always experienced the same issue, even with v1.22.1. Checking the logs it seems they don't monitor the "check compat" process at all. Logs are created at program start but pressing the check button adds nothing to them. Also the app is still unable to load the mod's author name. Here are my logs if it helps anyways: main.log renderer.log

Shazbot commented 1 year ago

ok, I now know why it's happening should be fixed in v1.22.2

Thanks!

SerjTargarien commented 1 year ago

It works now!

Lobuno commented 1 year ago

Confirmed, working fine. Thanks!

kroatoa commented 1 year ago

Confirmed on my side as well, thank you!