YuehaiTeam / cocogoat-client

A toolbox for Genshin Impact to export artifacts automatically. 支持圣遗物全自动导出的原神工具箱,保证每一行代码都是熬夜加班打造。
MIT License
539 stars 50 forks source link

v0.4.7 识别第二个圣遗物时闪退 #31

Closed everything411 closed 3 years ago

everything411 commented 3 years ago

打包版本,未打包版本均出现闪退,尝试自己编译,还是闪退

回退至v0.4.4可以正常识别

环境:

OS: Windows 10 x64 19043.1023

log如下

refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 1 layouts.
refresh_locale_list [493]: Received 1 locales.
load_input_helper [866]: refresh_locale_list() found 1 locale(s).
[2021-05-22 20:53:32][LOG][MAIN] cocogoat v0.4.7
[2021-05-22 20:53:32][LOG][MAIN] confd = C:\Users\everything411\AppData\Roaming\cocogoat\config
[2021-05-22 20:53:32][LOG][MAIN] build = REL2105201725
[2021-05-22 20:53:32][ERR][MAIN] (node:15416) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
[2021-05-22 20:53:37][LOG][MAIN] { x: 1074, y: 180, width: 332, height: 650 }
[2021-05-22 20:53:37][LOG][MAIN] OCR Datadir is D:\bin\genshin\cocogoat-bin\resources\data\ppocr-data
[2021-05-22 20:53:37][LOG][MAIN] no non-ascii characters in path, read model directly
[2021-05-22 20:53:37][LOG][ocr-0] Worker started :ppocr
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][MAIN] first worker loadd successfully
[2021-05-22 20:53:37][LOG][ocr-0] Worker started
[2021-05-22 20:53:38][LOG][ocr-2] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-5] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-3] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-6] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-4] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-1] Worker started :ppocr
[2021-05-22 20:53:38][LOG][ocr-7] Worker started :ppocr
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-2] Worker started
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-5] Worker started
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-3] Worker started
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-6] Worker started
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-4] Worker started
[2021-05-22 20:53:41][LOG][MAIN] { x: 200, y: 29, width: 889, height: 811 }
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:38][LOG][ocr-1] Worker started
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
e[37m---    Fused 0 subgraphs into layer_norm op.e[0m
[2021-05-22 20:53:41][LOG][MAIN] ocr ready
[2021-05-22 20:53:38][LOG][ocr-7] Worker started
[2021-05-22 20:53:55][LOG][MAIN] Worker 0 processing
[2021-05-22 20:53:55][LOG][MAIN] Worker 1 processing
[2021-05-22 20:53:55][LOG][MAIN] Worker 2 processing
[2021-05-22 20:53:55][LOG][MAIN] Worker 3 processing
[2021-05-22 20:53:57][LOG][MAIN] { x: 200, y: 28, width: 890, height: 816 }
[2021-05-22 20:54:19][LOG][MAIN] Worker 4 processing
[2021-05-22 20:54:19][LOG][MAIN] Worker 5 processing
[2021-05-22 20:54:19][LOG][MAIN] Worker 6 processing
OMP: Error #13: Assertion failure at C:\src\llvm_package_1200-final\llvm-project\openmp\runtime\src\kmp_runtime.cpp(3689).
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
[2021-05-22 20:54:19][LOG][MAIN] Worker 7 processing
xytoki commented 3 years ago

https://github.com/YuehaiTeam/cocogoat/blob/4a71f65085cb47f9734a330fb857c9ada4131716/src/Background/ocr.ts#L18 自己编译的话试一下把线程数改小能运行吗?这个可能是上游的问题了,还得查

everything411 commented 3 years ago

https://github.com/YuehaiTeam/cocogoat/blob/4a71f65085cb47f9734a330fb857c9ada4131716/src/Background/ocr.ts#L18

自己编译的话试一下把线程数改小能运行吗?这个可能是上游的问题了,还得查

线程数调小为4或2都可以运行了

everything411 commented 3 years ago

补充运行机器:拯救者Y7000 2018

cpu i5-8300H 显卡GTX 1050 2GB 内存16GB 原神 在外接2K显示器分辨率1920*1080窗口化运行

everything411 commented 3 years ago

原因已查明,我安装了LLVM工具链并将编译器所在目录C:\Program Files\LLVM\bin添加到了系统PATH中,而LLVM工具链中有一个OpenMP运行库libiomp5md.dll位于C:\Program Files\LLVM\bin,这导致cocogoat\resources\data\paddleocr\mklml.dll加载OpenMP时错误的加载了LLVM OpenMP,而不是mklml.dll同目录下自带的Intel OpenMP运行库libiomp5md.dll,导致了这个闪退,将LLVM中的libiomp5md.dll移除,问题解决

xytoki commented 3 years ago

感谢,我下版本调一下优先加载自带的dll。