Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

更新或者添加订阅时会闪退 #15

Closed
razor7788 opened this issue Sep 27, 2019 · 11 comments
Closed

更新或者添加订阅时会闪退 #15

razor7788 opened this issue Sep 27, 2019 · 11 comments

Comments

@razor7788
Copy link

系统: ubuntu1804
pyhton:3.6.8

脚本安装运行后,将订阅地址粘贴点击更新后,直接闪退。
有咩有log文件啊。

@jiangxufeng
Copy link
Owner

谢谢您的issue,我会查看一下原因的,因为最近在复习考研,所以没法立刻解决问题,会抽时间来解决一下大家的问题的。谢谢~~

@ZeawinL
Copy link

ZeawinL commented Oct 4, 2019

添加订阅失败

/bin/sh: 1: notify-send: not found Traceback (most recent call last): File "v2rayL_threads.py", line 81, in run File "v2rayL_api.py", line 92, in update File "sub2conf_api.py", line 172, in update File "sub2conf_api.py", line 44, in b642conf File "<string>", line 1, in <module> NameError: name 'null' is not defined

@thesomeexp
Copy link

thesomeexp commented Oct 20, 2019

Debian10.1 区域US,添加订阅/配置闪退(修改语言为中文就解决了)

Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
Traceback (most recent call last):
  File "v2rayLui.py", line 258, in get_conf_from_uri
  File "subprocess.py", line 287, in call
  File "subprocess.py", line 729, in __init__
  File "subprocess.py", line 1295, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 50-55: ordinal not in range(128)
Aborted

@AoEiuV020
Copy link
Contributor

同崩溃,有没有其他v2ray-gui客户端推荐?

@AoEiuV020
Copy link
Contributor

怎么就close了,解决没?@jiangxufeng

@AoEiuV020
Copy link
Contributor

AoEiuV020 commented Nov 16, 2019 via email

@jiangxufeng
Copy link
Owner

@AoEiuV020 日志功能现在还不完善,只是一个简单的,可以记录一些出错日志和操作日志。至于命令行打开的话,如果是程序主线程出现问题是会显示错误的,子线程出现错误的话部分不会回显。
如果你有更好的想法或者优化,欢迎pr!

@AoEiuV020
Copy link
Contributor

基本确定是padding问题,
base64字符串的字符数是4的倍数,不足的补等号=,
然后base64经常存在省略等号=的,出问题的订阅就是这样的,你代码里写死了添加两个等号,我猜是你的订阅刚好差两个等号吧?
试了下python的base64解码不支持padding错误的情况,也就是等号数量不对的情况,
我不会Python,如果官方base64库不能解决,可能要考虑换个第三方的base64库,

@jiangxufeng
Copy link
Owner

@AoEiuV020,谢谢提供的原因,我会在后面进行优化的,麻烦了
感谢~

@AoEiuV020
Copy link
Contributor

AoEiuV020 commented Nov 18, 2019 via email

@AoEiuV020
Copy link
Contributor

AoEiuV020 commented Nov 18, 2019 via email

AoEiuV020 added a commit to AoEiuV020/v2rayL that referenced this issue Nov 18, 2019
所有base64 decode前添加两个等号,
因为python只报错缺等号的情况,不报错等号过多的情况,
jiangxufeng added a commit that referenced this issue Nov 24, 2019
修复base64 padding导致订阅崩溃问题 fixed #15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants