-
Notifications
You must be signed in to change notification settings - Fork 391
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
Comments
Hello mt-altman, Thank you for your first issue contribution 🎉 |
感谢你的尝试,我关闭有道通道以后,不闪退了 |
+1 |
+1 ,试了下老版本也都闪退,关闭通道也不行 |
感谢建议,关闭“有道”后,不再闪退 |
+1 |
same here |
关闭有道之后 浏览器选词翻译还是会闪退,有解决方法吗 |
确实,关闭有道服务后不会闪退了 |
+1 关闭有道后不再闪退 |
点击关闭有道,直接就闪退了,关不掉 0.0 |
确实,关闭这个有道就好了。调试了一下,如下是开启有道服务的时候日志 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
) |
+1 关闭有道后不再闪退,感谢 |
Thanks bro. |
关闭有道后不再闪退+1 |
去设置里关掉有道后,手贱再次尝试开启,然后就没有然后了,永远闪退 |
tips:开关的时候双击,有几率在闪退前关闭开关 |
Thanks a lot. |
关闭有道后不再闪退+1 |
1 similar comment
关闭有道后不再闪退+1 |
+1 |
+1 Thanks bro. |
+1 |
nice!有道不做向后兼容的嘛。。 |
[2025-01-04 10:42:19.242 ● MMLog ● 76 ● ℹ️] +[MMManagerForLog createADDLogWithName:] ● |
由于有道翻译的 API 接口数据结构变了,所以导致应用崩溃。 该问题已修复 #774 ,这两天我会发布一个新版本。 |
真修复了个寂寞,最新版本的还是崩溃, 每次崩溃都得过来翻issue |
+1 |
新版本 2.11.0 已修复该问题。 |
有道服务使用的是网页版 API,有道官方会不定期更改接口的签名算法或数据结构,都可能导致 Easydict 中的有道服务无法正常工作,这些属于不可抗力因素。 这次我们已经重写了有道服务 #774 ,并修改为动态获取 secret key,应已经彻底修复了当前问题。 但这只是暂时的,我们不保证有道服务能一直稳定使用,如果追求稳定,建议改用 Easydict 中其他的官方 API 服务。 如果后续有道官方对网页版 API 进行重大更改,或者我们不能推导出签名算法,Easydict 可能会放弃对有道服务的支持。 |
请先确认以下事项:
问题描述
该问题是否可以稳定重现?
可重现
重现步骤
截图
运行日志(zip 文件)
期望结果
不闪退
解决方案(可选)
无
设备型号 && 系统版本
Apple M1 Pro,14.1 (23B74)
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: