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

[Bug?] 运行提示A Javascript error in the main process: Uncaught Exception #235

Closed
aod321 opened this issue Apr 7, 2020 · 24 comments
Closed
Labels
more-information-needed you need to provide more infomation, otherwise the issue will be closed

Comments

@aod321
Copy link

aod321 commented Apr 7, 2020

重要:请不要删除模板自行填写,所有不按照模板填写的issue,我们将不会处理。
描述问题
(反馈前请先查看wiki中的使用指南,CopyTranslator经过多次迭代,功能越来越丰富(复杂),不阅读完整使用指南无法完全发挥其功能,查看使用指南能够解决您90%的疑惑,如果看完使用指南,疑问仍然存在,请到下载页面看看有没有最新预览版,并下载试用,如果最新版的问题解决了,那就不用再反馈问题了)

系统环境(请填写以下信息):

  • CopyTranslator版本:v9.0.2
  • 出现问题时的模式:无
  • 操作系统:win10 专业教育版64位
  • 阅读器:无
  • 出现问题的文档:无
  • 出现问题的段落:无

如何复现这个问题
重现行为的步骤:

  1. 从Github release下载https://github.com/CopyTranslator/CopyTranslator/releases/download/v9.0.2/copytranslator-9.0.2-win.zip
  2. 解压
  3. 打开copytranslator.exe
  4. 出错
    (PS: 下载安装版也是一样的)
    问题出现时,当时的CopyTranslator的设置截图

    请截取主模式窗口
    image

是只在这个阅读器上不能使用,还是在浏览器及其他的阅读器也不可以使用?
软件打不开,该项无效

之前的版本有出现这种问题吗?如果没有出现的话,请提供一个已知无该bug的版本号
v9.0.1也不行,v8.3.0正常,其他未测试

@elliottzheng
Copy link
Member

你好,请按照这样的方式重新安装,安装路径中不要含有中文或空格,最好在安装之前关闭杀毒软件啥的,如果仍有问题,请将您的copytranslator安装文件夹压缩后分享给我。

@elliottzheng elliottzheng added the more-information-needed you need to provide more infomation, otherwise the issue will be closed label Apr 7, 2020
@ziqiangxu
Copy link
Member

ziqiangxu commented Apr 8, 2020

重要:请不要删除模板自行填写,所有不按照模板填写的issue,我们将不会处理。
描述问题
(反馈前请先查看wiki中的使用指南,CopyTranslator经过多次迭代,功能越来越丰富(复杂),不阅读完整使用指南无法完全发挥其功能,查看使用指南能够解决您90%的疑惑,如果看完使用指南,疑问仍然存在,请到下载页面看看有没有最新预览版,并下载试用,如果最新版的问题解决了,那就不用再反馈问题了)

系统环境(请填写以下信息):

  • CopyTranslator版本:v9.0.2
  • 出现问题时的模式:无
  • 操作系统:win10 专业教育版64位
  • 阅读器:无
  • 出现问题的文档:无
  • 出现问题的段落:无

如何复现这个问题
重现行为的步骤:

  1. 从Github release下载https://github.com/CopyTranslator/CopyTranslator/releases/download/v9.0.2/copytranslator-9.0.2-win.zip
  2. 解压
  3. 打开copytranslator.exe
  4. 出错
    (PS: 下载安装版也是一样的)
    问题出现时,当时的CopyTranslator的设置截图

    请截取主模式窗口
    image

是只在这个阅读器上不能使用,还是在浏览器及其他的阅读器也不可以使用?
软件打不开,该项无效

之前的版本有出现这种问题吗?如果没有出现的话,请提供一个已知无该bug的版本号
v9.0.1也不行,v8.3.0正常,其他未测试

这个缺文件的 bug 也许可以这样临时解决一下,把这个文件里的iohook.node放过去 🤣

@elliottzheng
Copy link
Member

现在主要是不知道是不是真的缺了,我自己这边没办法复现这个问题。感觉可能是被删了还是怎么样,被杀毒软件拦截了

@aod321
Copy link
Author

aod321 commented Apr 8, 2020

你好,请按照这样的方式重新安装,安装路径中不要含有中文或空格,最好在安装之前关闭杀毒软件啥的,如果仍有问题,请将您的copytranslator安装文件夹压缩后分享给我。

安装路径无中文或空格: D:
安装包文件名:copytranslator-setup-9.0.2.exe
下载源: Github Release
安装文件MD5校验:正常
杀毒软件: Windows Defender,已关闭
测试结果:无变化
安装文件夹压缩包

现在主要是不知道是不是真的缺了,我自己这边没办法复现这个问题。感觉可能是被删了还是怎么样,被杀毒软件拦截了

我检查了一下,iohook.node文件没有缺失。
也尝试过获取系统管理员权限

@no-response no-response bot removed the more-information-needed you need to provide more infomation, otherwise the issue will be closed label Apr 8, 2020
@elliottzheng
Copy link
Member

真是奇了怪了,你这个压缩包我下载下来解压之后是可以使用的,可以麻烦你命令行到那个目录下,然后执行copytranslator.exe 看下有啥输出么

@elliottzheng
Copy link
Member

@elliottzheng elliottzheng added the more-information-needed you need to provide more infomation, otherwise the issue will be closed label Apr 8, 2020
@aod321
Copy link
Author

aod321 commented Apr 8, 2020

试一下这个可以用么 https://github.com/CopyTranslator/CopyTranslator/releases/tag/v9.0.3

已测试正常了!辛苦了,非常实用,感谢!

image

@no-response no-response bot removed the more-information-needed you need to provide more infomation, otherwise the issue will be closed label Apr 8, 2020
@elliottzheng elliottzheng pinned this issue Apr 8, 2020
@panjk0518
Copy link

Deepin Linux 表示同样有此问题,用的是Appimage

@ziqiangxu
Copy link
Member

Deepin Linux 表示同样有此问题,用的是Appimage

麻烦提供一下在终端运行的输出截图和弹窗截图

@ziqiangxu ziqiangxu reopened this Apr 15, 2020
@elliottzheng elliottzheng added more-information-needed you need to provide more infomation, otherwise the issue will be closed and removed more-information-needed you need to provide more infomation, otherwise the issue will be closed labels Apr 16, 2020
@Shimadaaaaa
Copy link

ubuntu 16.04 deb安装同样问题

@Shimadaaaaa
Copy link

image

@elliottzheng
Copy link
Member

elliottzheng commented Apr 17, 2020

ubuntu 试试安装libpng16-16,终端执行sudo apt install libpng16-16,再启动一下

@Shimadaaaaa
Copy link

可以了,十分感谢

@no-response
Copy link

no-response bot commented Apr 19, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Apr 19, 2020
@yuhldr
Copy link

yuhldr commented Apr 28, 2020

系统环境:

CopyTranslator版本:v9.0.2
操作系统:MacBookPro 10.15.4

重现行为的步骤:

填写百度OCR的三个内容,然后点确定,

顺便说一次,这三个填写的地方密钥什么的竟然不能复制粘贴,我手动输入的啊。。。。

(PS: 下载安装版也是一样的)
问题出现时,当时的CopyTranslator的设置截图

截屏2020-04-28 上午11 52 22

其他版本未测试

@elliottzheng
Copy link
Member

elliottzheng commented Apr 28, 2020

系统环境:

CopyTranslator版本:v9.0.2
操作系统:MacBookPro 10.15.4

重现行为的步骤:

填写百度OCR的三个内容,然后点确定,

顺便说一次,这三个填写的地方密钥什么的竟然不能复制粘贴,我手动输入的啊。。。。

(PS: 下载安装版也是一样的)
问题出现时,当时的CopyTranslator的设置截图

截屏2020-04-28 上午11 52 22

其他版本未测试

这个问题跟这个issue没啥关系了,大概率不会出现在新版本。

@CyrusYip
Copy link

在Kubuntu20.04下用appimage仍有这个错误。已安装libpng16-16。使用修复命令也不行。我是用AppImageLauncher把copytranslate整合到系统的。

~ sudo groupmens -g input $USER
[sudo] password for xx: 
sudo: groupmens: command not found

另外,软件没有图标。
DeepinScreenshot_select-area_20200622145040
DeepinScreenshot_select-area_20200622145004

@HuipengXu
Copy link

image
deepin15 启动错误

@ziqiangxu
Copy link
Member

image
执行 sudo groupmens -g input $USER,将当前用户添加到input组里。然后重新登录

@ziqiangxu
Copy link
Member

在Kubuntu20.04下用appimage仍有这个错误。已安装libpng16-16。使用修复命令也不行。我是用AppImageLauncher把copytranslate整合到系统的。

~ sudo groupmens -g input $USER
[sudo] password for xx: 
sudo: groupmens: command not found

另外,软件没有图标。
DeepinScreenshot_select-area_20200622145040
DeepinScreenshot_select-area_20200622145004

咱们到这里讨论吧:#259

@zhuliwen
Copy link

I encountered the same problem.
System: macOS Catalina 10.15.6

WX20200810-100024@2x

How can I fix it?

@MrGongqi
Copy link

windows10系统,安装后设置HOSTS时出现这个问题,我卸载后重试了无数遍,还是出现这个问题。但是另一台的win7电脑安装后就没问题,可以用google翻译了,而win10的这个就一直不行。求助!谢谢!
image

@xiaohui0929
Copy link

A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at IncomingMessage. (/Applications/copytranslator.app/Contents/Resources/app.asar/background.js:239:32393)
at IncomingMessage.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at IncomingMessage.Readable.push (_stream_readable.js:210:10)
at HTTPParser.parserOnBody (_http_common.js:129:22)
at TLSSocket.socketOnData (_http_client.js:452:22)
at TLSSocket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)

@chumingqian
Copy link

chumingqian commented Feb 21, 2023

系统环境(请填写以下信息):

CopyTranslator版本:v9.1.0
出现问题时的模式:无
操作系统:ubuntu 18.04- 64位
已经安装过 libpng16-16

image

如何复现这个问题
重现行为的步骤:

image

好像说的是,您需要重新调用Buffer() 的接口函数 和GtkDialog,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed you need to provide more infomation, otherwise the issue will be closed
Projects
None yet
Development

No branches or pull requests