FelisCatus / switchysharp

Automatically exported from code.google.com/p/switchysharp
GNU General Public License v3.0
140 stars 50 forks source link

正则表达式匹配 #965

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
!! 请勿清空此模板,除非你不希望问题被解决。

*提示* :请确认你正在使用最新版的 SwitchySharp 插件。
你可以在扩展管理页面的“开发人员模式”中点击
“立即更新扩展”按钮来更新。
----------

你遇到了什么问题?(比如,本来应该是怎样的结果,但
实际又是怎样的结果?):
在自动切换中使用正则表达式匹配时,较短时间后会导致chrom
e网页卡死,且无法打开其余任何网页,同时关闭chrome会导致c
hrome进程有很高的cpu占用率(不使用正则表达式一切正常)

如何重现此问题?(怎样做可以发现这个问题?):
1.使用自动切换规则,打开youtube任意视频后3-5秒后将出现上��
�现象
2.
3.

你正在使用什么操作系统和 Chrome/Chromium 的什么版本?
(你可以复制 chrome://version/ 页面的前几行。)

建议附上你的设置备份文件(.bak)以便分析问题:
* 设置备份文件可在“导入/导出”选项卡使用
“生成备份文件”按钮导出。
* 请使用下面的上传附件功能,将自动下载的备份文件
(.bak)和你的报告一起提交。

感谢你的支持。
开发人员可能会对此错误的细节进行进一步的询问,或说
明问题已经修复,请及时查收 *邮件* 以获取最新消息。

Original issue reported on code.google.com by xyn0...@gmail.com on 5 Jun 2014 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago
如果只是 youtube 的话,不能排除是 Flash 
插件引发的各种死机问题。

请使用其他网站测试一下。

Original comment by shyc2...@gmail.com on 6 Jun 2014 at 10:25

GoogleCodeExporter commented 9 years ago
Google 搜索问题同样存在

Original comment by xyn0...@gmail.com on 6 Jun 2014 at 1:54

GoogleCodeExporter commented 9 years ago
按理来说不应该这样的…… SwitchySharp 
里通配符表达式也是用正则实现的,没有理由正则特别卡吧��
�…

总之请先导出一下PAC文件并上传到这里以便调试。可以在导��
�/导出选项卡按一下 导出PAC 按钮。

Original comment by shyc2...@gmail.com on 6 Jun 2014 at 3:06

GoogleCodeExporter commented 9 years ago
唯一能发现的在使用正则表达式的情况下goagent发送一次请求�
��后就不再发送请求……

Original comment by xyn0...@gmail.com on 6 Jun 2014 at 3:55

Attachments:

GoogleCodeExporter commented 9 years ago
嗯,应该是和正则表达式没有关系,感觉卡可能是因为 GFW 
List 里规则实在是太多了……

Original comment by shyc2...@gmail.com on 7 Jun 2014 at 7:33

GoogleCodeExporter commented 9 years ago
感谢解答.....(就是不能理解为啥通配符就没有这个问题....)

Original comment by xyn0...@gmail.com on 7 Jun 2014 at 9:15

GoogleCodeExporter commented 9 years ago
也许是量变引起质变的关系?也许那个正则表达式正好比通��
�符多用了一点点的内存,从而导致 Chrome 的 JS 引擎开始 GC 
过程?

(以上纯属猜想)

Original comment by shyc2...@gmail.com on 8 Jun 2014 at 5:53

GoogleCodeExporter commented 9 years ago
谢谢解答……(回头再好好研究下.....)

Original comment by xyn0...@gmail.com on 9 Jun 2014 at 6:17