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

有道通道有问题,导致程序闪退 #769

Closed
5 of 6 tasks
mt-altman opened this issue Jan 2, 2025 · 32 comments
Closed
5 of 6 tasks

有道通道有问题,导致程序闪退 #769

mt-altman opened this issue Jan 2, 2025 · 32 comments
Assignees
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available

Comments

@mt-altman
Copy link

请先确认以下事项:

  • 请务必查看 常见问题
  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

  • 翻译程序闪退
  • 定位是有道通道
  • 关闭有道通道也闪退

该问题是否可以稳定重现?

可重现

重现步骤

  • 开关有道通道

截图

image image

运行日志(zip 文件)

snip_image

期望结果

不闪退

解决方案(可选)

设备型号 && 系统版本

Apple M1 Pro,14.1 (23B74)

是否愿意提交 PR 解决该问题?

  • 我愿意提交 PR 来解决该问题
@mt-altman mt-altman added the bug Something isn't working label Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Hello mt-altman, Thank you for your first issue contribution 🎉

@waxybywmyyfbk
Copy link

 感谢你的尝试,我关闭有道通道以后,不闪退了

@RuiQi857
Copy link

RuiQi857 commented Jan 2, 2025

+1

@TT-TTc
Copy link

TT-TTc commented Jan 2, 2025

+1 ,试了下老版本也都闪退,关闭通道也不行

@Caleb66666
Copy link

感谢建议,关闭“有道”后,不再闪退

@ShelbyTang
Copy link

+1

@iFurySt
Copy link

iFurySt commented Jan 2, 2025

same here

@yuqi1129
Copy link

yuqi1129 commented Jan 2, 2025

关闭有道之后 浏览器选词翻译还是会闪退,有解决方法吗

@weedsx
Copy link

weedsx commented Jan 2, 2025

确实,关闭有道服务后不会闪退了

@HuangxinDong
Copy link

+1 关闭有道后不再闪退

@L4ntern0
Copy link

L4ntern0 commented Jan 2, 2025

点击关闭有道,直接就闪退了,关不掉 0.0

@Tr33NewBee
Copy link

Tr33NewBee commented Jan 2, 2025

确实,关闭这个有道就好了。调试了一下,如下是开启有道服务的时候日志

2025-01-02 22:54:01.569369+0800 Easydict[32104:8446322] [EZYoudaoTranslate ● 455 ● ❌] -[EZYoudaoTranslate queryYoudaoDictAndTranslation:from:to:completion:]_block_invoke ● queryYoudaoDict error: Error Domain=com.izual.Easydict Code=6 "​💥 失败, 未查询到结果" UserInfo={NSLocalizedDescription=​💥 失败, 未查询到结果}
2025-01-02 22:54:01.836950+0800 Easydict[32104:8439465] -[NSTaggedPointerString objectForKeyedSubscript:]: unrecognized selector sent to instance 0xb05bd328d4c24578
2025-01-02 22:54:01.838134+0800 Easydict[32104:8439465] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString objectForKeyedSubscript:]: unrecognized selector sent to instance 0xb05bd328d4c24578'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000191dcf19c __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x00000001918ee4d4 objc_exception_throw + 60
	2   CoreFoundation                      0x0000000191e76178 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x0000000191d37150 ___forwarding___ + 1600
	4   CoreFoundation                      0x0000000191d36a50 _CF_forwarding_prep_0 + 96
	5   Easydict                            0x0000000100026ba0 Easydict + 158624
	6   Easydict                            0x0000000100026830 Easydict + 157744
	7   AFNetworking                        0x0000000101814324 __116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke_2 + 132
	8   AFNetworking                        0x000000010181fd5c __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.32 + 120
	9   libdispatch.dylib                   0x0000000191ac6874 _dispatch_call_block_and_release + 32
	10  libdispatch.dylib                   0x0000000191ac8400 _dispatch_client_callout + 20
	11  libdispatch.dylib                   0x0000000191ad6c54 _dispatch_main_queue_drain + 1020
	12  libdispatch.dylib                   0x0000000191ad6848 _dispatch_main_queue_callback_4CF + 44
	13  CoreFoundation                      0x0000000191d97c88 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
	14  CoreFoundation                      0x0000000191d554a8 __CFRunLoopRun + 1992
	15  CoreFoundation                      0x0000000191d5458c CFRunLoopRunSpecific + 612
	16  HIToolbox                           0x000000019b589df4 RunCurrentEventLoopInMode + 292
	17  HIToolbox                           0x000000019b589c30 ReceiveNextEventCommon + 648
	18  HIToolbox                           0x000000019b589988 _BlockUntilNextEventMatchingListInModeWithFilter + 76
	19  AppKit                              0x0000000194f73f58 _DPSNextEvent + 636
	20  AppKit                              0x0000000194f730f4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
	21  AppKit                              0x0000000194f67558 -[NSApplication run] + 464
	22  AppKit                              0x0000000194f3e9a8 NSApplicationMain + 880
	23  SwiftUI                             0x00000001b9fad974 OUTLINED_FUNCTION_8 + 8272
	24  SwiftUI                             0x00000001bb10cfa0 OUTLINED_FUNCTION_14 + 188
	25  SwiftUI                             0x00000001ba98e43c OUTLINED_FUNCTION_1 + 136
	26  Easydict                            0x00000001000c6e6c Easydict + 814700
	27  dyld                                0x000000019191ff28 start + 2236
)
2025-01-02 22:54:01.838324+0800 Easydict[32104:8439465] [General] An uncaught exception was raised
2025-01-02 22:54:01.838371+0800 Easydict[32104:8439465] [General] -[NSTaggedPointerString objectForKeyedSubscript:]: unrecognized selector sent to instance 0xb05bd328d4c24578
2025-01-02 22:54:01.838429+0800 Easydict[32104:8439465] [General] (
	0   CoreFoundation                      0x0000000191dcf19c __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x00000001918ee4d4 objc_exception_throw + 60
	2   CoreFoundation                      0x0000000191e76178 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x0000000191d37150 ___forwarding___ + 1600
	4   CoreFoundation                      0x0000000191d36a50 _CF_forwarding_prep_0 + 96
	5   Easydict                            0x0000000100026ba0 Easydict + 158624
	6   Easydict                            0x0000000100026830 Easydict + 157744
	7   AFNetworking                        0x0000000101814324 __116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke_2 + 132
	8   AFNetworking                        0x000000010181fd5c __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.32 + 120
	9   libdispatch.dylib                   0x0000000191ac6874 _dispatch_call_block_and_release + 32
	10  libdispatch.dylib                   0x0000000191ac8400 _dispatch_client_callout + 20
	11  libdispatch.dylib                   0x0000000191ad6c54 _dispatch_main_queue_drain + 1020
	12  libdispatch.dylib                   0x0000000191ad6848 _dispatch_main_queue_callback_4CF + 44
	13  CoreFoundation                      0x0000000191d97c88 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
	14  CoreFoundation                      0x0000000191d554a8 __CFRunLoopRun + 1992
	15  CoreFoundation                      0x0000000191d5458c CFRunLoopRunSpecific + 612
	16  HIToolbox                           0x000000019b589df4 RunCurrentEventLoopInMode + 292
	17  HIToolbox                           0x000000019b589c30 ReceiveNextEventCommon + 648
	18  HIToolbox                           0x000000019b589988 _BlockUntilNextEventMatchingListInModeWithFilter + 76
	19  AppKit                              0x0000000194f73f58 _DPSNextEvent + 636
	20  AppKit                              0x0000000194f730f4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
	21  AppKit                              0x0000000194f67558 -[NSApplication run] + 464
	22  AppKit                              0x0000000194f3e9a8 NSApplicationMain + 880
	23  SwiftUI                             0x00000001b9fad974 OUTLINED_FUNCTION_8 + 8272
	24  SwiftUI                             0x00000001bb10cfa0 OUTLINED_FUNCTION_14 + 188
	25  SwiftUI                             0x00000001ba98e43c OUTLINED_FUNCTION_1 + 136
	26  Easydict                            0x00000001000c6e6c Easydict + 814700
	27  dyld                                0x000000019191ff28 start + 2236
)

@leafney
Copy link

leafney commented Jan 2, 2025

+1 关闭有道后不再闪退,感谢

@ZiruiSongBest
Copy link

Thanks bro.

@CIKIKITO
Copy link

CIKIKITO commented Jan 2, 2025

关闭有道后不再闪退+1

@cokyhe
Copy link

cokyhe commented Jan 2, 2025

去设置里关掉有道后,手贱再次尝试开启,然后就没有然后了,永远闪退

@mt-altman
Copy link
Author

tips:开关的时候双击,有几率在闪退前关闭开关

@Surechun
Copy link

Surechun commented Jan 3, 2025

Thanks a lot.

@LuoChengAndroid
Copy link

关闭有道后不再闪退+1

1 similar comment
@wudb
Copy link

wudb commented Jan 3, 2025

关闭有道后不再闪退+1

@kirinshow
Copy link

+1

@100-404
Copy link

100-404 commented Jan 3, 2025

+1 Thanks bro.

@yuqi1129
Copy link

yuqi1129 commented Jan 3, 2025

image 这种情况下, 即使关闭了有道还是会崩溃,有人遇到吗?

@Rick630
Copy link

Rick630 commented Jan 3, 2025

有道的接口改了结构,而且内容也不准了
QQ_1735894444535

@catoamao
Copy link

catoamao commented Jan 3, 2025

+1

@eMe-404
Copy link

eMe-404 commented Jan 3, 2025

nice!有道不做向后兼容的嘛。。

@Happy-go
Copy link

Happy-go commented Jan 4, 2025

[2025-01-04 10:42:19.242 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ●
=========>
🚀 com.izual.Easydict 启动 MMLog(Default)...
{
Build = 42;
Device = "Mac14,15";
Machine = arm64;
System = "\U7248\U672c15.2\Uff08\U7248\U53f724C101\Uff09";
UUID = "F0609C0F-4C01-542B-A406-309D6668BA99";
Version = "2.10.2";
}
日志文件夹:
/Users/yanghaiping1/Library/Caches/com.izual.Easydict/MMLogs/Default
<=========
[2025-01-04 10:42:19.242 ● EZLanguageManager ● 82 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● AppleLanguages: (
"zh-Hans-CN"
)
[2025-01-04 10:42:19.308 ● EZLanguageManager ● 113 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● system preferred languages: (
"Simplified-Chinese"
)
[2025-01-04 10:42:19.311 ● GlobalContext ● 55 ● ℹ️] reloadLLMServicesSubscribers() ● reloadLLMServicesSubscribers
[2025-01-04 10:42:19.313 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:42:19.315 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOpenAIService: 0x6000037e1200>, windowType: 0
[2025-01-04 10:42:19.317 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZBuiltInAIService: 0x6000037e10e0>, windowType: 0
[2025-01-04 10:42:19.318 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZGeminiService: 0x60000349e8a0>, windowType: 0
[2025-01-04 10:42:19.319 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOllamaService: 0x60000349e940>, windowType: 0
[2025-01-04 10:42:19.320 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZPolishingService: 0x60000349e9e0>, windowType: 0
[2025-01-04 10:42:19.321 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZSummaryService: 0x60000349ea80>, windowType: 0
[2025-01-04 10:42:19.322 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZCustomOpenAIService: 0x6000037e1170>, windowType: 0
[2025-01-04 10:42:19.492 ● AppDelegate ● 21 ● ℹ️] -[AppDelegate applicationDidFinishLaunching:] ● 程序启动
[2025-01-04 10:42:19.506 ● DarkModeManager ● 53 ● ℹ️] -[DarkModeManager updateDarkMode:] ● 浅色模式
[2025-01-04 10:42:19.514 ● VaporServer ● 37 ● ℹ️] init() ● Running with SwiftNIO Swift Concurrency default executor
[2025-01-04 10:42:19.514 ● VaporServer ● 62 ● ℹ️] startServer(isOn:) ● Start server: false
[2025-01-04 10:42:19.514 ● VaporServer ● 76 ● ℹ️] startServer(isOn:) ● Server stopped
[2025-01-04 10:42:38.784 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:42:38.784 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:42:38.785 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:42:38.785 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: 访达 (com.apple.finder)
[2025-01-04 10:42:38.854 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:42:38.854 ● EZEventMonitor ● 675 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Fallback to use force get selected text for shortcut query
[2025-01-04 10:42:38.854 ● EZEventMonitor ● 676 ● ❌] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Maybe need to add it to allowed app error list dict: -25205, 访达 (com.apple.finder)
[2025-01-04 10:42:38.854 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:42:39.244 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(_:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:42:39.244 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:42:39.244 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]block_invoke ● Get selected text by simulated key success: (null)
[2025-01-04 10:42:39.252 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:42:39.265 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: (null), autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:42:39.952 ● AppleScriptTask+System ● 27 ● ℹ️] setAlertVolume(
:) ● AppleScript set alert volume: 0
[2025-01-04 10:42:48.238 ● EZAppleService ● 621 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● system probabilities: {
de = "0.138840064406395";
en = "0.7382476925849915";
fr = "0.02049604430794716";
hu = "0.01740550622344017";
nb = "0.01537567190825939";
}
[2025-01-04 10:42:48.238 ● EZAppleService ● 622 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● dominant Language: en
[2025-01-04 10:42:48.238 ● EZAppleService ● 623 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● detect cost: 48.9 ms
[2025-01-04 10:42:48.238 ● EZAppleService ● 749 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● user probabilities: {
English = "0.4";
"Simplified-Chinese" = "0.4";
}
[2025-01-04 10:42:48.238 ● EZAppleService ● 750 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● final language probabilities: {
de = "0.138840064406395";
en = "1.138247692584991";
fr = "0.02049604430794716";
hu = "0.01740550622344017";
nb = "0.01537567190825939";
}
[2025-01-04 10:42:48.238 ● EZAppleService ● 751 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● ---> Apple detect: English
[2025-01-04 10:42:48.306 ● EZAppleService ● 771 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● Spell check language: English
[2025-01-04 10:42:49.682 ● EZQueryView ● 388 ● ℹ️] -[EZQueryView textView:doCommandBySelector:] ● enterActionBlock
[2025-01-04 10:42:49.682 ● EZBaseQueryViewController ● 441 ● ℹ️] -[EZBaseQueryViewController startQueryText:actionType:] ● query actionType: input_query
[2025-01-04 10:42:49.832 ● EZBaseQueryViewController ● 782 ● ℹ️] -[EZBaseQueryViewController queryCurrentModel] ● query text: nnnnhgff
[2025-01-04 10:42:49.837 ● EZBaseQueryViewController ● 797 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● query: English --> Simplified-Chinese
[2025-01-04 10:42:49.849 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com}
[2025-01-04 10:42:49.882 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: AppleScript Execution Error: “Shortcuts Events”遇到一个错误:不能获得“shortcut "Easydict-Translate-V1.2.0"”。
[2025-01-04 10:42:49.910 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Ollama
[2025-01-04 10:42:49.910 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Polishing
[2025-01-04 10:42:49.910 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Summary
[2025-01-04 10:42:49.934 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型}
[2025-01-04 10:42:49.949 ● EZBaseQueryViewController ● 1681 ● ℹ️] -[EZBaseQueryViewController autoPlayEnglishWordAudio] ● Auto play English word audio: nnnnhgff
[2025-01-04 10:42:49.951 ● EZAudioPlayer ● 329 ● ℹ️] -[EZAudioPlayer playAudioURL:text:language:accent:serviceType:forceURL:] ● play remote audio url: https://dict.youdao.com/dictvoice?audio=nnnnhgff&le=en
[2025-01-04 10:42:49.966 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=2 "​💥 失败, 参数异常: CustomOpenAI endpoint is invalid" UserInfo={NSLocalizedDescription=​💥 失败, 参数异常: CustomOpenAI endpoint is invalid}
[2025-01-04 10:43:00.047 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ●
=========>
🚀 com.izual.Easydict 启动 MMLog(Default)...
{
Build = 42;
Device = "Mac14,15";
Machine = arm64;
System = "\U7248\U672c15.2\Uff08\U7248\U53f724C101\Uff09";
UUID = "F0609C0F-4C01-542B-A406-309D6668BA99";
Version = "2.10.2";
}
日志文件夹:
/Users/yanghaiping1/Library/Caches/com.izual.Easydict/MMLogs/Default
<=========
[2025-01-04 10:43:00.047 ● EZLanguageManager ● 82 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● AppleLanguages: (
"zh-Hans-CN"
)
[2025-01-04 10:43:00.104 ● EZLanguageManager ● 113 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● system preferred languages: (
"Simplified-Chinese"
)
[2025-01-04 10:43:00.106 ● GlobalContext ● 55 ● ℹ️] reloadLLMServicesSubscribers() ● reloadLLMServicesSubscribers
[2025-01-04 10:43:00.107 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:43:00.108 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOpenAIService: 0x60000365ddd0>, windowType: 0
[2025-01-04 10:43:00.109 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZBuiltInAIService: 0x60000365dcb0>, windowType: 0
[2025-01-04 10:43:00.110 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZGeminiService: 0x60000350ff20>, windowType: 0
[2025-01-04 10:43:00.111 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOllamaService: 0x60000350fa20>, windowType: 0
[2025-01-04 10:43:00.112 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZPolishingService: 0x60000350fac0>, windowType: 0
[2025-01-04 10:43:00.114 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZSummaryService: 0x60000350fb60>, windowType: 0
[2025-01-04 10:43:00.115 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZCustomOpenAIService: 0x60000365dd40>, windowType: 0
[2025-01-04 10:43:00.212 ● AppDelegate ● 21 ● ℹ️] -[AppDelegate applicationDidFinishLaunching:] ● 程序启动
[2025-01-04 10:43:00.227 ● DarkModeManager ● 53 ● ℹ️] -[DarkModeManager updateDarkMode:] ● 浅色模式
[2025-01-04 10:43:00.234 ● VaporServer ● 37 ● ℹ️] init() ● Running with SwiftNIO Swift Concurrency default executor
[2025-01-04 10:43:00.234 ● VaporServer ● 62 ● ℹ️] startServer(isOn:) ● Start server: false
[2025-01-04 10:43:00.234 ● VaporServer ● 76 ● ℹ️] startServer(isOn:) ● Server stopped
[2025-01-04 10:50:16.540 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:50:16.540 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:50:16.542 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:50:16.545 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:50:16.618 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:50:16.619 ● EZEventMonitor ● 617 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● error: kAXErrorNoValue, unsupported Accessibility App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:50:16.619 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:50:17.101 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:50:17.101 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:50:17.101 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]block_invoke ● Get selected text by simulated key success: (null)
[2025-01-04 10:50:17.115 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:50:17.134 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: (null), autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:50:17.621 ● AppleScriptTask+System ● 27 ● ℹ️] setAlertVolume(
:) ● AppleScript set alert volume: 0
[2025-01-04 10:50:40.482 ● EZWindowManager ● 981 ● ℹ️] -[EZWindowManager closeFloatingWindow:] ● close window type: 2
[2025-01-04 10:50:51.160 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:50:51.160 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:50:51.164 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:50:51.166 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:50:51.167 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:50:51.171 ● EZEventMonitor ● 617 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● error: kAXErrorNoValue, unsupported Accessibility App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:50:51.171 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:50:51.184 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:50:51.184 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:50:51.193 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]_block_invoke ● Get selected text by simulated key success: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study
[2025-01-04 10:50:51.193 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study, autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:50:51.374 ● EZAppleService ● 621 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● system probabilities: {
da = "4.524727773969062e-05";
en = "0.9996781349182129";
fi = "4.122597601963207e-05";
nb = "6.993354327278212e-05";
sv = "4.29471729148645e-05";
}
[2025-01-04 10:50:51.374 ● EZAppleService ● 622 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● dominant Language: en
[2025-01-04 10:50:51.374 ● EZAppleService ● 623 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● detect cost: 6.3 ms
[2025-01-04 10:50:51.374 ● EZAppleService ● 749 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● user probabilities: {
English = "0.4";
"Simplified-Chinese" = "0.4";
}
[2025-01-04 10:50:51.374 ● EZAppleService ● 750 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● final language probabilities: {
da = "4.524727773969062e-05";
en = "1.399678134918213";
fi = "4.122597601963207e-05";
nb = "6.993354327278212e-05";
sv = "4.29471729148645e-05";
}
[2025-01-04 10:50:51.374 ● EZAppleService ● 751 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● ---> Apple detect: English
[2025-01-04 10:50:51.374 ● EZAppleService ● 776 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● No spell checking, use Most Confident Language: English
[2025-01-04 10:50:51.375 ● EZAppleService ● 776 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● No spell checking, use Most Confident Language: English
[2025-01-04 10:50:51.376 ● EZBaseQueryViewController ● 441 ● ℹ️] -[EZBaseQueryViewController startQueryText:actionType:] ● query actionType: shortcut_query
[2025-01-04 10:50:51.523 ● EZBaseQueryViewController ● 782 ● ℹ️] -[EZBaseQueryViewController queryCurrentModel] ● query text: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study
[2025-01-04 10:50:51.529 ● EZBaseQueryViewController ● 797 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● query: English --> Simplified-Chinese
[2025-01-04 10:50:51.535 ● EZBingConfig ● 62 ● ℹ️] -[EZBingConfig isBingTokenExpired] ● is Bing token expired: YES
[2025-01-04 10:50:51.540 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com}
[2025-01-04 10:50:51.577 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: AppleScript Execution Error: “Shortcuts Events”遇到一个错误:不能获得“shortcut "Easydict-Translate-V1.2.0"”。
[2025-01-04 10:50:51.613 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Ollama
[2025-01-04 10:50:51.613 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Polishing
[2025-01-04 10:50:51.613 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Summary
[2025-01-04 10:50:51.636 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型}
[2025-01-04 10:50:51.680 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=2 "​💥 失败, 参数异常: CustomOpenAI endpoint is invalid" UserInfo={NSLocalizedDescription=​💥 失败, 参数异常: CustomOpenAI endpoint is invalid}
[2025-01-04 10:54:29.086 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ●
=========>
🚀 com.izual.Easydict 启动 MMLog(Default)...
{
Build = 42;
Device = "Mac14,15";
Machine = arm64;
System = "\U7248\U672c15.2\Uff08\U7248\U53f724C101\Uff09";
UUID = "F0609C0F-4C01-542B-A406-309D6668BA99";
Version = "2.10.2";
}
日志文件夹:
/Users/yanghaiping1/Library/Caches/com.izual.Easydict/MMLogs/Default
<=========
[2025-01-04 10:54:29.086 ● EZLanguageManager ● 82 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● AppleLanguages: (
"zh-Hans-CN"
)
[2025-01-04 10:54:29.152 ● EZLanguageManager ● 113 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● system preferred languages: (
"Simplified-Chinese"
)
[2025-01-04 10:54:29.156 ● GlobalContext ● 55 ● ℹ️] reloadLLMServicesSubscribers() ● reloadLLMServicesSubscribers
[2025-01-04 10:54:29.158 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:54:29.159 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOpenAIService: 0x6000011c0bd0>, windowType: 0
[2025-01-04 10:54:29.162 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZBuiltInAIService: 0x6000011c0cf0>, windowType: 0
[2025-01-04 10:54:29.163 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZGeminiService: 0x600001290dc0>, windowType: 0
[2025-01-04 10:54:29.164 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOllamaService: 0x600001290e60>, windowType: 0
[2025-01-04 10:54:29.165 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZPolishingService: 0x600001290f00>, windowType: 0
[2025-01-04 10:54:29.166 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZSummaryService: 0x600001290fa0>, windowType: 0
[2025-01-04 10:54:29.167 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZCustomOpenAIService: 0x6000011c0c60>, windowType: 0
[2025-01-04 10:54:29.398 ● AppDelegate ● 21 ● ℹ️] -[AppDelegate applicationDidFinishLaunching:] ● 程序启动
[2025-01-04 10:54:29.411 ● DarkModeManager ● 53 ● ℹ️] -[DarkModeManager updateDarkMode:] ● 浅色模式
[2025-01-04 10:54:29.416 ● VaporServer ● 37 ● ℹ️] init() ● Running with SwiftNIO Swift Concurrency default executor
[2025-01-04 10:54:29.416 ● VaporServer ● 62 ● ℹ️] startServer(isOn:) ● Start server: false
[2025-01-04 10:54:29.416 ● VaporServer ● 76 ● ℹ️] startServer(isOn:) ● Server stopped
[2025-01-04 10:54:32.448 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:54:32.448 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:54:32.449 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:54:32.449 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: 访达 (com.apple.finder)
[2025-01-04 10:54:32.517 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:54:32.517 ● EZEventMonitor ● 675 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Fallback to use force get selected text for shortcut query
[2025-01-04 10:54:32.517 ● EZEventMonitor ● 676 ● ❌] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Maybe need to add it to allowed app error list dict: -25205, 访达 (com.apple.finder)
[2025-01-04 10:54:32.517 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:54:32.631 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:54:32.631 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:54:32.648 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]block_invoke ● Get selected text by simulated key success: (null)
[2025-01-04 10:54:32.658 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:54:32.672 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: (null), autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:54:33.520 ● AppleScriptTask+System ● 27 ● ℹ️] setAlertVolume(
:) ● AppleScript set alert volume: 0
[2025-01-04 10:54:36.273 ● EZQueryView ● 388 ● ℹ️] -[EZQueryView textView:doCommandBySelector:] ● enterActionBlock
[2025-01-04 10:54:36.273 ● EZBaseQueryViewController ● 441 ● ℹ️] -[EZBaseQueryViewController startQueryText:actionType:] ● query actionType: input_query
[2025-01-04 10:54:36.425 ● EZBaseQueryViewController ● 782 ● ℹ️] -[EZBaseQueryViewController queryCurrentModel] ● query text: vvv
[2025-01-04 10:54:36.433 ● EZAppleService ● 621 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● system probabilities: {
de = "0.07046660780906677";
en = "0.4038009941577911";
fi = "0.04312967881560326";
nl = "0.2369761615991592";
pt = "0.05218883231282234";
}
[2025-01-04 10:54:36.433 ● EZAppleService ● 622 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● dominant Language: en
[2025-01-04 10:54:36.433 ● EZAppleService ● 623 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● detect cost: 2.2 ms
[2025-01-04 10:54:36.433 ● EZAppleService ● 749 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● user probabilities: {
English = "0.4";
"Simplified-Chinese" = "0.4";
}
[2025-01-04 10:54:36.433 ● EZAppleService ● 750 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● final language probabilities: {
de = "0.07046660780906677";
en = "0.8038009941577912";
fi = "0.04312967881560326";
nl = "0.2369761615991592";
pt = "0.05218883231282234";
}
[2025-01-04 10:54:36.433 ● EZAppleService ● 751 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● ---> Apple detect: English
[2025-01-04 10:54:36.443 ● EZAppleService ● 771 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● Spell check language: English
[2025-01-04 10:54:36.444 ● EZBaseQueryViewController ● 797 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● query: English --> Simplified-Chinese
[2025-01-04 10:54:36.454 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com}
[2025-01-04 10:54:36.475 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: AppleScript Execution Error: “Shortcuts Events”遇到一个错误:不能获得“shortcut "Easydict-Translate-V1.2.0"”。
[2025-01-04 10:54:36.513 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Ollama
[2025-01-04 10:54:36.513 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Polishing
[2025-01-04 10:54:36.513 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Summary
[2025-01-04 10:54:36.538 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型}
[2025-01-04 10:54:36.553 ● EZBaseQueryViewController ● 1681 ● ℹ️] -[EZBaseQueryViewController autoPlayEnglishWordAudio] ● Auto play English word audio: vvv
[2025-01-04 10:54:36.560 ● EZAudioPlayer ● 329 ● ℹ️] -[EZAudioPlayer playAudioURL:text:language:accent:serviceType:forceURL:] ● play remote audio url: https://dict.youdao.com/dictvoice?audio=vvv&le=en
[2025-01-04 10:54:36.573 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=2 "​💥 失败, 参数异常: CustomOpenAI endpoint is invalid" UserInfo={NSLocalizedDescription=​💥 失败, 参数异常: CustomOpenAI endpoint is invalid}
[2025-01-04 10:55:34.719 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ●
=========>
🚀 com.izual.Easydict 启动 MMLog(Default)...
{
Build = 42;
Device = "Mac14,15";
Machine = arm64;
System = "\U7248\U672c15.2\Uff08\U7248\U53f724C101\Uff09";
UUID = "F0609C0F-4C01-542B-A406-309D6668BA99";
Version = "2.10.2";
}
日志文件夹:
/Users/yanghaiping1/Library/Caches/com.izual.Easydict/MMLogs/Default
<=========
[2025-01-04 10:55:34.719 ● EZLanguageManager ● 82 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● AppleLanguages: (
"zh-Hans-CN"
)
[2025-01-04 10:55:34.779 ● EZLanguageManager ● 113 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● system preferred languages: (
"Simplified-Chinese"
)
[2025-01-04 10:55:34.781 ● GlobalContext ● 55 ● ℹ️] reloadLLMServicesSubscribers() ● reloadLLMServicesSubscribers
[2025-01-04 10:55:34.782 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:55:34.783 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOpenAIService: 0x600000dea1c0>, windowType: 0
[2025-01-04 10:55:34.785 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZBuiltInAIService: 0x600000dea0a0>, windowType: 0
[2025-01-04 10:55:34.786 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZGeminiService: 0x600000e99cc0>, windowType: 0
[2025-01-04 10:55:34.787 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOllamaService: 0x600000e99c20>, windowType: 0
[2025-01-04 10:55:34.788 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZPolishingService: 0x600000e99d60>, windowType: 0
[2025-01-04 10:55:34.789 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZSummaryService: 0x600000e99b80>, windowType: 0
[2025-01-04 10:55:34.790 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZCustomOpenAIService: 0x600000dea130>, windowType: 0
[2025-01-04 10:55:34.877 ● AppDelegate ● 21 ● ℹ️] -[AppDelegate applicationDidFinishLaunching:] ● 程序启动
[2025-01-04 10:55:34.890 ● DarkModeManager ● 53 ● ℹ️] -[DarkModeManager updateDarkMode:] ● 浅色模式
[2025-01-04 10:55:34.894 ● VaporServer ● 37 ● ℹ️] init() ● Running with SwiftNIO Swift Concurrency default executor
[2025-01-04 10:55:34.894 ● VaporServer ● 62 ● ℹ️] startServer(isOn:) ● Start server: false
[2025-01-04 10:55:34.894 ● VaporServer ● 76 ● ℹ️] startServer(isOn:) ● Server stopped
[2025-01-04 10:55:45.651 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:55:45.651 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:55:45.651 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:55:45.651 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:55:45.705 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:55:45.705 ● EZEventMonitor ● 617 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● error: kAXErrorNoValue, unsupported Accessibility App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:55:45.705 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:55:46.077 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:55:46.077 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:55:46.077 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]block_invoke ● Get selected text by simulated key success: (null)
[2025-01-04 10:55:46.087 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 10:55:46.101 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: (null), autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:55:46.708 ● AppleScriptTask+System ● 27 ● ℹ️] setAlertVolume(
:) ● AppleScript set alert volume: 0
[2025-01-04 10:55:56.110 ● EZWindowManager ● 734 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate
[2025-01-04 10:55:56.110 ● EZEventMonitor ● 547 ● ℹ️] -[EZEventMonitor isAccessibilityEnabled] ● accessibilityEnabled: 1
[2025-01-04 10:55:56.114 ● EZWindowManager ● 747 ● ℹ️] -[EZWindowManager selectTextTranslate] ● selectTextTranslate windowType: 2
[2025-01-04 10:55:56.118 ● EZEventMonitor ● 275 ● ℹ️] -[EZEventMonitor getSelectedText:completion:] ● getSelectedText in App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:55:56.118 ● EZEventMonitor ● 588 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● Enable force get selected text: YES
[2025-01-04 10:55:56.122 ● EZEventMonitor ● 617 ● ℹ️] -[EZEventMonitor shouldForceGetSelectedTextWithAXError:] ● error: kAXErrorNoValue, unsupported Accessibility App: WPS Office (com.kingsoft.wpsoffice.mac)
[2025-01-04 10:55:56.122 ● EZEventMonitor ● 403 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:] ● Get selected text by simulated key
[2025-01-04 10:55:56.139 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 0 to 0
[2025-01-04 10:55:56.139 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-04 10:55:56.140 ● EZEventMonitor ● 423 ● ℹ️] -[EZEventMonitor getSelectedTextBySimulatedKey:]_block_invoke ● Get selected text by simulated key success: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study
Ryunosuke Watanabe, MD, Hajime Mishima, MD, PhD *
[2025-01-04 10:55:56.140 ● EZWindowManager ● 314 ● ℹ️] -[EZWindowManager showFloatingWindowType:queryText:autoQuery:actionType:atPoint:completionHandler:] ● show floating windowType: 2, queryText: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study
Ryunosuke Watanabe, MD, Hajime Mishima, MD, PhD *, autoQuery: 1, actionType: shortcut_query, atPoint: NSPoint: {920, 797}
[2025-01-04 10:55:56.175 ● EZAppleService ● 621 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● system probabilities: {
da = "4.524727773969062e-05";
en = "0.9996781349182129";
fi = "4.122597601963207e-05";
nb = "6.993354327278212e-05";
sv = "4.29471729148645e-05";
}
[2025-01-04 10:55:56.175 ● EZAppleService ● 622 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● dominant Language: en
[2025-01-04 10:55:56.175 ● EZAppleService ● 623 ● ℹ️] -[EZAppleService appleDetectTextLanguageDict:printLog:] ● detect cost: 4.9 ms
[2025-01-04 10:55:56.176 ● EZAppleService ● 749 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● user probabilities: {
English = "0.4";
"Simplified-Chinese" = "0.4";
}
[2025-01-04 10:55:56.176 ● EZAppleService ● 750 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● final language probabilities: {
da = "4.524727773969062e-05";
en = "1.399678134918213";
fi = "4.122597601963207e-05";
nb = "6.993354327278212e-05";
sv = "4.29471729148645e-05";
}
[2025-01-04 10:55:56.176 ● EZAppleService ● 751 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● ---> Apple detect: English
[2025-01-04 10:55:56.176 ● EZAppleService ● 776 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● No spell checking, use Most Confident Language: English
[2025-01-04 10:55:56.177 ● EZAppleService ● 776 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● No spell checking, use Most Confident Language: English
[2025-01-04 10:55:56.179 ● EZBaseQueryViewController ● 441 ● ℹ️] -[EZBaseQueryViewController startQueryText:actionType:] ● query actionType: shortcut_query
[2025-01-04 10:55:56.325 ● EZBaseQueryViewController ● 782 ● ℹ️] -[EZBaseQueryViewController queryCurrentModel] ● query text: Primary Stability of Collared and Collarless Cementless Femoral
Stems e A Finite Element Analysis Study
Ryunosuke Watanabe, MD, Hajime Mishima, MD, PhD *
[2025-01-04 10:55:56.331 ● EZBaseQueryViewController ● 797 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● query: English --> Simplified-Chinese
[2025-01-04 10:55:56.336 ● EZBingConfig ● 62 ● ℹ️] -[EZBingConfig isBingTokenExpired] ● is Bing token expired: YES
[2025-01-04 10:55:56.341 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: Missing Volcano AccessKeyID. Volcano Service requires users' own API Key. Get it at https://www.volcengine.com}
[2025-01-04 10:55:56.360 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: AppleScript Execution Error: “Shortcuts Events”遇到一个错误:不能获得“shortcut "Easydict-Translate-V1.2.0"”。
[2025-01-04 10:55:56.413 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Ollama
[2025-01-04 10:55:56.413 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Polishing
[2025-01-04 10:55:56.413 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Summary
[2025-01-04 10:55:56.437 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=9 "​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型" UserInfo={NSLocalizedDescription=​💥 失败, 缺少 API Key: 当前正使用 Secret Key API 类型,但是某个 Secret Key 为空,请前往设置-服务-阿里翻译,填写相关配置信息,或切换 API 类型}
[2025-01-04 10:55:56.472 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: Error Domain=com.izual.Easydict Code=2 "​💥 失败, 参数异常: CustomOpenAI endpoint is invalid" UserInfo={NSLocalizedDescription=​💥 失败, 参数异常: CustomOpenAI endpoint is invalid}
[2025-01-04 11:03:17.242 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ●
=========>
🚀 com.izual.Easydict 启动 MMLog(Default)...
{
Build = 42;
Device = "Mac14,15";
Machine = arm64;
System = "\U7248\U672c15.2\Uff08\U7248\U53f724C101\Uff09";
UUID = "F0609C0F-4C01-542B-A406-309D6668BA99";
Version = "2.10.2";
}
日志文件夹:
/Users/yanghaiping1/Library/Caches/com.izual.Easydict/MMLogs/Default
<=========
[2025-01-04 11:03:17.242 ● EZLanguageManager ● 82 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● AppleLanguages: (
"zh-Hans-CN"
)
[2025-01-04 11:03:17.305 ● EZLanguageManager ● 113 ● ℹ️] -[EZLanguageManager systemPreferredLanguages] ● system preferred languages: (
"Simplified-Chinese"
)
[2025-01-04 11:03:17.310 ● GlobalContext ● 55 ● ℹ️] reloadLLMServicesSubscribers() ● reloadLLMServicesSubscribers
[2025-01-04 11:03:17.312 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 11:03:17.314 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOpenAIService: 0x600000a84360>, windowType: 0
[2025-01-04 11:03:17.317 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZBuiltInAIService: 0x600000a84480>, windowType: 0
[2025-01-04 11:03:17.318 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZGeminiService: 0x600000919c20>, windowType: 0
[2025-01-04 11:03:17.319 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZOllamaService: 0x600000919cc0>, windowType: 0
[2025-01-04 11:03:17.320 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZPolishingService: 0x600000919d60>, windowType: 0
[2025-01-04 11:03:17.321 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZSummaryService: 0x6000009197c0>, windowType: 0
[2025-01-04 11:03:17.322 ● LLMStreamService+Configuration ● 14 ● ℹ️] setupSubscribers() ● setup subscribers: <EZCustomOpenAIService: 0x600000a843f0>, windowType: 0
[2025-01-04 11:03:17.591 ● AppDelegate ● 21 ● ℹ️] -[AppDelegate applicationDidFinishLaunching:] ● 程序启动
[2025-01-04 11:03:17.605 ● DarkModeManager ● 53 ● ℹ️] -[DarkModeManager updateDarkMode:] ● 浅色模式
[2025-01-04 11:03:17.612 ● VaporServer ● 37 ● ℹ️] init() ● Running with SwiftNIO Swift Concurrency default executor
[2025-01-04 11:03:17.612 ● VaporServer ● 62 ● ℹ️] startServer(isOn:) ● Start server: false
[2025-01-04 11:03:17.612 ● VaporServer ● 76 ● ℹ️] startServer(isOn:) ● Server stopped
[2025-01-04 11:03:33.680 ● MenuItemView ● 181 ● ℹ️] checkUpdateItem ● 检查更新
[2025-01-04 11:04:03.210 ● MenuItemView ● 101 ● ℹ️] settingItem ● 打开设置
[2025-01-04 11:06:27.577 ● EZBingService ● 27 ● ℹ️] -[EZBingService init] ● init Bing service
[2025-01-04 11:09:56.909 ● MenuItemView ● 214 ● ℹ️] exportLogAction() ● 导出日志

@tisfeng tisfeng self-assigned this Jan 4, 2025
@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Jan 4, 2025
@tisfeng
Copy link
Owner

tisfeng commented Jan 4, 2025

由于有道翻译的 API 接口数据结构变了,所以导致应用崩溃。

该问题已修复 #774 ,这两天我会发布一个新版本。

@vcan
Copy link

vcan commented Jan 5, 2025

真修复了个寂寞,最新版本的还是崩溃, 每次崩溃都得过来翻issue

@zszq
Copy link

zszq commented Jan 5, 2025

+1

@tisfeng
Copy link
Owner

tisfeng commented Jan 5, 2025

新版本 2.11.0 已修复该问题。

@tisfeng tisfeng closed this as completed Jan 5, 2025
@tisfeng
Copy link
Owner

tisfeng commented Jan 5, 2025

有道服务使用的是网页版 API,有道官方会不定期更改接口的签名算法或数据结构,都可能导致 Easydict 中的有道服务无法正常工作,这些属于不可抗力因素。

这次我们已经重写了有道服务 #774 ,并修改为动态获取 secret key,应已经彻底修复了当前问题。

但这只是暂时的,我们不保证有道服务能一直稳定使用,如果追求稳定,建议改用 Easydict 中其他的官方 API 服务。


如果后续有道官方对网页版 API 进行重大更改,或者我们不能推导出签名算法,Easydict 可能会放弃对有道服务的支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

No branches or pull requests