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
【v10.2.3 已修复】使用谷歌翻译单词 / 词组(例如 mechanism
)时划词翻译偶尔会消失 / 白屏
#1835
Comments
感谢如此详细的反馈!我正在加紧修复中,完成后将立刻发布新版本 |
同样的BUG出现在了这个Issue中 |
经过目前的两个反馈得出的结论:
但奇怪的是我这边没有重现你们的问题,我试着用谷歌翻译 所以两位 @Serendipithub @SnowGuest 可否帮忙提供更多信息:
虽然我可以简单的给 terms 做个 undefined 判断来解决这个问题,但是我还是希望我能重现这个问题并确认这个问题是否是由更深层次的原因造成的 |
谷歌翻译是默认的, 本身是使用的VPN. |
可否帮忙在你那边打开下面这个链接,它会下载一个 json 文件,然后把 json 文件内容提交到 issue 里 |
文件内容如下 {"sentences":[{"trans":"机制","orig":"mechanism","backend":10},{"translit":"Jīzhì","src_translit":"ˈmekəˌnizəm"}],"dict":[{"pos":"noun","terms":["机制","机理","机构","机械","机关"],"entry":[{"word":"机制","reverse_translation":["mechanism"],"score":0.43009463},{"word":"机理","reverse_translation":["mechanism"],"score":0.26914635},{"word":"机构","reverse_translation":["mechanism","agency","institution","organization"],"score":0.22313017},{"word":"机械","reverse_translation":["mechanical","machinery","machine","mechanism"],"score":0.007061308},{"word":"机关","reverse_translation":["organ","body","office","mechanism","stratagem","intrigue"],"score":2.3419065E-4}],"base_form":"mechanism","pos_enum":1}],"src":"en","alternative_translations":[{"src_phrase":"mechanism","alternative":[{"word_postproc":"机制","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[10,3],"backend_infos":[{"backend":3}]},{"word_postproc":"机理","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[2,8]},{"word_postproc":"机构","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[2]}],"srcunicodeoffsets":[{"begin":0,"end":9}],"raw_src_segment":"mechanism","start_pos":0,"end_pos":0}],"confidence":1.0,"spell":{},"ld_result":{"srclangs":["en"],"srclangs_confidences":[1.0],"extended_srclangs":["en"]},"synsets":[{"pos":"noun","entry":[{"synonym":["apparatus","machine","appliance","tool","device","implement","utensil","instrument","contraption","contrivance","gadget","tackle","structure","system"],"definition_id":"m_en_gbus0628220.006"},{"synonym":["gizmo"],"definition_id":"m_en_gbus0628220.006","label_info":{"register":["informal"]}},{"synonym":["machinery","workings","works","movement","motion","action","gear","gears","wheels","components","motor","engine","power source"],"definition_id":"m_en_gbus0628220.006"},{"synonym":["innards","guts"],"definition_id":"m_en_gbus0628220.006","label_info":{"register":["informal"]}},{"synonym":["procedure","process","system","operation","method","technique","workings","means","medium","agency","channel","channels","vehicle","structure"],"definition_id":"m_en_gbus0628220.006"}],"base_form":"mechanism","pos_enum":1}],"examples":{"example":[{"text":"we have no \u003cb\u003emechanism\u003c/b\u003e for assessing the success of forwarded inquiries","source_type":3,"definition_id":"m_en_gbus0628220.011"},{"text":"his Irma La Douce is a musical based on the farce \u003cb\u003emechanism\u003c/b\u003e","source_type":3,"definition_id":"m_en_gbus0628220.012"},{"text":"the \u003cb\u003emechanism\u003c/b\u003e by which genes build bodies","source_type":3,"definition_id":"m_en_gbus0628220.011"},{"text":"the gunner injured his arm in the turret \u003cb\u003emechanism\u003c/b\u003e","source_type":3,"definition_id":"m_en_gbus0628220.006"}]}} |
@haochuan9421 可否帮忙在你那边打开下面这个链接,它会下载一个 json 文件,然后把 json 文件内容提交到 issue 里 |
{"sentences":[{"trans":"机制","orig":"mechanism","backend":10},{"translit":"Jīzhì","src_translit":"ˈmekəˌnizəm"}],"dict":[{"pos":"noun","entry":[{"word":"机制","reverse_translation":["mechanism"],"score":0.43009463},{"word":"机理","reverse_translation":["mechanism"],"score":0.26914635},{"word":"机构","reverse_translation":["mechanism","agency","institution","organization"],"score":0.22313017},{"word":"机械","reverse_translation":["mechanical","machinery","machine","mechanism"],"score":0.007061308},{"word":"机关","reverse_translation":["organ","body","office","mechanism","stratagem","intrigue"],"score":2.3419065E-4}],"base_form":"mechanism","pos_enum":1}],"src":"en","alternative_translations":[{"src_phrase":"mechanism","alternative":[{"word_postproc":"机制","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[10,3],"backend_infos":[{"backend":3}]},{"word_postproc":"机理","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[2,8]},{"word_postproc":"机构","score":1000,"has_preceding_space":true,"attach_to_next_token":false,"backends":[2]}],"srcunicodeoffsets":[{"begin":0,"end":9}],"raw_src_segment":"mechanism","start_pos":0,"end_pos":0}],"confidence":1.0,"spell":{},"ld_result":{"srclangs":["en"],"srclangs_confidences":[1.0],"extended_srclangs":["en"]},"synsets":[{"pos":"noun","entry":[{"synonym":["apparatus","machine","appliance","tool","device","implement","utensil","instrument","contraption","contrivance","gadget","tackle","structure","system"],"definition_id":"m_en_gbus0628220.006"},{"synonym":["gizmo"],"definition_id":"m_en_gbus0628220.006","label_info":{"register":["informal"]}},{"synonym":["machinery","workings","works","movement","motion","action","gear","gears","wheels","components","motor","engine","power source"],"definition_id":"m_en_gbus0628220.006"},{"synonym":["innards","guts"],"definition_id":"m_en_gbus0628220.006","label_info":{"register":["informal"]}},{"synonym":["procedure","process","system","operation","method","technique","workings","means","medium","agency","channel","channels","vehicle","structure"],"definition_id":"m_en_gbus0628220.006"}],"base_form":"mechanism","pos_enum":1}],"examples":{"example":[{"text":"the \u003cb\u003emechanism\u003c/b\u003e by which genes build bodies","definition_id":"m_en_gbus0628220.011"},{"text":"his Irma La Douce is a musical based on the farce \u003cb\u003emechanism\u003c/b\u003e","definition_id":"m_en_gbus0628220.012"},{"text":"we have no \u003cb\u003emechanism\u003c/b\u003e for assessing the success of forwarded inquiries","definition_id":"m_en_gbus0628220.011"},{"text":"the gunner injured his arm in the turret \u003cb\u003emechanism\u003c/b\u003e","definition_id":"m_en_gbus0628220.006"}]}} |
大佬尽快发一版吧,覆盖一下这个 Case,我还是比较习惯谷歌翻译的结果 |
mechanism
)时划词翻译偶尔会消失 / 白屏
mechanism
)时划词翻译偶尔会消失 / 白屏mechanism
)时划词翻译偶尔会消失 / 白屏
v10.2.3 的离线安装包已上传到网盘 https://hcfy.app/docs/install/#offline 由于我无法重现这个问题,所以希望 @haochuan9421 能在使用之后给我一个反馈,让我确认问题确实修复了 |
👌 |
使用谷歌翻译了差不多 20 次,目前没有再发生页面崩溃。 |
@haochuan9421 感谢反馈,如果之后又遇到崩溃麻烦尽快提交到这里,我会第一时间修复 |
👌 |
火狐版怎么办?火狐几个月没更新了 |
@Littleweisheit 今天提交了火狐审核,预计 10 个工作日后上架 |
麻烦更新一下edge的... |
@whtiehack 已提交,正在审核,大约 10 个工作日 |
作者的话:
v10.2.3 已修复此问题,解决方案见 https://hcfy.app/blog/2023/09/13/ggcrash
以下是原文
基本信息
划词翻译版本:v10.2.2
浏览器版本:Chrome Version 116.0.5845.187 (Official Build) (64-bit)
操作系统:Windows 11
重现问题的步骤
预期行为
预期正常翻译
实际行为
实际闪烁翻译框后页面消失
补充信息
我调试了一下
发现
const s = e.terms.join(", ");
这一行中的e根本没有terms这个属性, 所以命令行提示TypeError: Cannot read properties of undefined (reading 'join')
, 明显是读取terms为undefined的错误.The text was updated successfully, but these errors were encountered: