Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Linking Error: Win32 error 126 #180

Closed
pein0saga opened this issue May 29, 2023 · 5 comments
Closed

Dynamic Linking Error: Win32 error 126 #180

pein0saga opened this issue May 29, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@pein0saga
Copy link

pein0saga commented May 29, 2023

应该是热更新zip安装包损坏导致(提前关闭)
和普通游戏的OTA更新不一样,没有校验

问题描述

2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:314  mn.load] Dynamic Linking Error: Win32 error 126 
2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:128  mn.dispose] close core error 
2023-05-29 08:59:41.461 DEBUG [renderer resources\app\packages\main\utils\logger.ts:56 undefined.<anonymous>] finish loading store 
2023-05-29 08:59:47.335 INFO  [main resources\app\packages\main\componentManager\utils\update.ts:106  Os.checkUpdate] [Component Installer | Maa Core] Found full asset: v4.19.0-beta.2 
2023-05-29 08:59:47.342 INFO  [main resources\app\packages\main\downloadManager\index.ts:116  ji.download] Start downloading, url: https://s3.maa-org.net:25240/maa-release/MaaAssistantArknights/MaaAssistantArknights/releases/download/v4.19.0-beta.2/MAA-v4.19.0-beta.2-win-x64.zip 
2023-05-29 09:03:17.055 INFO  [main resources\app\packages\main\utils\extract.ts:95  cf] extracting file: C:\Users\Administrator\AppData\Roaming\maa-x\download\MAA-v4.19.0-beta.2-win-x64.zip -> C:\Users\Administrator\AppData\Roaming\maa-x\core 
2023-05-29 09:03:21.014 INFO  [main resources\app\packages\main\coreLoader\index.ts:310  mn.load] core loaded: version v4.19.0-beta.2 
2023-05-29 09:03:21.068 INFO  [renderer resources\app\packages\main\utils\logger.ts:62 undefined.<anonymous>] [LoadResource] type: CN, path: C:\Users\Administrator\AppData\Roaming\maa-x\core, status: true 

日志文件

Maa App-20230529.log

@pein0saga pein0saga added the bug Something isn't working label May 29, 2023
@pein0saga pein0saga changed the title 残留地旧有的CORE文件,新安装的MAAX检测不到,也无法升级 mn.load] Dynamic Linking Error: Win32 error 126 残留的旧有的CORE文件,新安装的MAAX检测不到,也无法升级 mn.load] Dynamic Linking Error: Win32 error 126 May 29, 2023
@pein0saga
Copy link
Author

Maa App-20230528.log
加份昨天的

@pein0saga pein0saga changed the title 残留的旧有的CORE文件,新安装的MAAX检测不到,也无法升级 mn.load] Dynamic Linking Error: Win32 error 126 残留的旧有的CORE文件,新安装的Maa-X检测不到,也无法升级 mn.load] Dynamic Linking Error: Win32 error 126 May 29, 2023
@bakashigure
Copy link
Member

问题描述

我这边应该是同版本的core冲突。非同版本不知道是否不同。

#179 检测不到,无法覆盖升级(被误诊关闭)

#150 @neko-para 猫猫问题联动

问题描述

MAA Core 4.13后的版本无法被dispose, 导致无法进行更新

2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:314  mn.load] Dynamic Linking Error: Win32 error 126 
2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:128  mn.dispose] close core error 
2023-05-29 08:59:41.461 DEBUG [renderer resources\app\packages\main\utils\logger.ts:56 undefined.<anonymous>] finish loading store 
2023-05-29 08:59:47.335 INFO  [main resources\app\packages\main\componentManager\utils\update.ts:106  Os.checkUpdate] [Component Installer | Maa Core] Found full asset: v4.19.0-beta.2 
2023-05-29 08:59:47.342 INFO  [main resources\app\packages\main\downloadManager\index.ts:116  ji.download] Start downloading, url: https://s3.maa-org.net:25240/maa-release/MaaAssistantArknights/MaaAssistantArknights/releases/download/v4.19.0-beta.2/MAA-v4.19.0-beta.2-win-x64.zip 
2023-05-29 09:03:17.055 INFO  [main resources\app\packages\main\utils\extract.ts:95  cf] extracting file: C:\Users\Administrator\AppData\Roaming\maa-x\download\MAA-v4.19.0-beta.2-win-x64.zip -> C:\Users\Administrator\AppData\Roaming\maa-x\core 
2023-05-29 09:03:21.014 INFO  [main resources\app\packages\main\coreLoader\index.ts:310  mn.load] core loaded: version v4.19.0-beta.2 
2023-05-29 09:03:21.068 INFO  [renderer resources\app\packages\main\utils\logger.ts:62 undefined.<anonymous>] [LoadResource] type: CN, path: C:\Users\Administrator\AppData\Roaming\maa-x\core, status: true 

日志文件

Maa App-20230529.log

手动解决方法

所以你手动删了core目录之后可以正常更新了吗

Originally posted by @neko-para in #150 (comment)

解决方法就是手动删掉系统盘用户文件夹的core目录,但萌新可能不知道位置

看你提供的这段日志,这不是更新成功了吗

@pein0saga
Copy link
Author

问题描述

我这边应该是同版本的core冲突。非同版本不知道是否不同。
#179 检测不到,无法覆盖升级(被误诊关闭)
#150 @neko-para 猫猫问题联动

问题描述

MAA Core 4.13后的版本无法被dispose, 导致无法进行更新

2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:314  mn.load] Dynamic Linking Error: Win32 error 126 
2023-05-29 08:59:41.459 ERROR [main resources\app\packages\main\coreLoader\index.ts:128  mn.dispose] close core error 
2023-05-29 08:59:41.461 DEBUG [renderer resources\app\packages\main\utils\logger.ts:56 undefined.<anonymous>] finish loading store 
2023-05-29 08:59:47.335 INFO  [main resources\app\packages\main\componentManager\utils\update.ts:106  Os.checkUpdate] [Component Installer | Maa Core] Found full asset: v4.19.0-beta.2 
2023-05-29 08:59:47.342 INFO  [main resources\app\packages\main\downloadManager\index.ts:116  ji.download] Start downloading, url: https://s3.maa-org.net:25240/maa-release/MaaAssistantArknights/MaaAssistantArknights/releases/download/v4.19.0-beta.2/MAA-v4.19.0-beta.2-win-x64.zip 
2023-05-29 09:03:17.055 INFO  [main resources\app\packages\main\utils\extract.ts:95  cf] extracting file: C:\Users\Administrator\AppData\Roaming\maa-x\download\MAA-v4.19.0-beta.2-win-x64.zip -> C:\Users\Administrator\AppData\Roaming\maa-x\core 
2023-05-29 09:03:21.014 INFO  [main resources\app\packages\main\coreLoader\index.ts:310  mn.load] core loaded: version v4.19.0-beta.2 
2023-05-29 09:03:21.068 INFO  [renderer resources\app\packages\main\utils\logger.ts:62 undefined.<anonymous>] [LoadResource] type: CN, path: C:\Users\Administrator\AppData\Roaming\maa-x\core, status: true 

日志文件

Maa App-20230529.log

手动解决方法

所以你手动删了core目录之后可以正常更新了吗

Originally posted by @neko-para in #150 (comment)
解决方法就是手动删掉系统盘用户文件夹的core目录,但萌新可能不知道位置

看你提供的这段日志,这不是更新成功了吗

你不知道前应后果。这是load成功(load的core文件夹的内容,上次卸载遗留的)。但实际上界面是卡在“正在更新core”0%的画面上,也就是说它判断我需要安装core(虽然已经core load成功,但load的core不是现在下载的的,而是上个版本遗留的,上个版本其实也是BETA 10,所以应该是同版本)

@pein0saga
Copy link
Author

          > > > > 都是0%那就是你网络问题,你能上百度不代表你能上谷歌,我这里只是举个例子,你连不到github和我们s3服务器那就是你自己网络炸了

1 我知道原因了,是因为之前MAA CORE没有卸载的问题
2 全局TUN proxy,我没说过只上网易(百du退散)啊?而且两个镜像国内国外都用了,假设是只上网易的网络环境问题,那就是国内镜像有问题。
3 MAA CORE 需要单独的install/uninstall、Update机制,根本没检测出来已安装

  1. 出于MAA Core无法正常卸载 #150, maa-x目前使用的是重启更新的方式, 下载与更新是互不影响的
  2. 大概率是网络问题
  3. core目前是有完整的热更功能, 同样出于 MAA Core无法正常卸载 #150, 暂时使用重启更新

我删除了core文件夹就立马能更新了,这会是网络问题?太固执了吧,在极其有限的信息下,根据偏见去下概率结论毫无意义。我在另一个issue里面已经上传了log和报错信息,看完log再下结论比较好

你的日志我看过,所以我会说 下载与更新是互不影响的,既然你不了解技术实现细节,所以你不应该坚持这不是一个网络问题

至于详细情况,我仍然认为这是两个问题

  1. 下载卡在0%
  2. core加载失败

对于第一点,我要重申的是下载, 更新加载core 三者是完全独立的模块,下载就只是下载安装包到download文件夹,不会影响现有的core, 因为现在更新必须重启;更新是在启动后比加载core更优先执行的东西;加载core会尝试加载本地的core, 出错情况下才会运行用户重新下载安装

对于第二点, win error 126 意味着 core加载失败,详细原因就是DLL缺失core大概在4.16前后修改过一次依赖库,如果你的旧core是这个版本左右的,那么可能会出现这个报错; 另一种情况是, 在更新的时候, maa-x被错误关闭了,导致解压流程进行到一半就被结束了,文件损坏同样有可能出现win error 126

Originally posted by @bakashigure in #179 (comment)

@pein0saga pein0saga closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2023
@pein0saga pein0saga changed the title 残留的旧有的CORE文件,新安装的Maa-X检测不到,也无法升级 mn.load] Dynamic Linking Error: Win32 error 126 Dynamic Linking Error: Win32 error 126 May 30, 2023
@pein0saga
Copy link
Author

应该是热更新zip安装包损坏导致(提前关闭)
和普通游戏的OTA更新不一样,似乎没有校验

@pein0saga pein0saga reopened this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants