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

XX-Net在非管理员模式下,无法正常启动 #12464

Closed
boxsnake opened this issue Apr 9, 2019 · 0 comments
Closed

XX-Net在非管理员模式下,无法正常启动 #12464

boxsnake opened this issue Apr 9, 2019 · 0 comments

Comments

@boxsnake
Copy link

boxsnake commented Apr 9, 2019

XX-Net版本:3.13.1
系统:Windows 10 (1803, 17134.648)

出现问题

  • 直接打开 start.vbs 无法启动 XX-Net,程序直接没反应
  • 直接打开 start.bat 也无法启动 XX-Net,程序闪退
  • 用管理员方式启动 start.bat 才能正常启动 XX-Net

错误排查

直接打开 start.bat 时候,程序的报错信息一闪而过,来不及看清是什么报错。
于是,我用了快速截图工具截取了错误信息:
Snapshot

然而,这个 Traceback 很难得到有用的信息,于是我修改了Traceback输出的地方,使用了 traceback 包进行了 Traceback 信息格式化,在 data/launcher/error.log 里得到了这些:

Apr 10 06:10:15.151 type:<type 'exceptions.WindowsError'> value=[Error 5]  traceback:  File "D:\Programs\XX-Net\code\default\launcher\start.py", line 131, in <module>
    from win_tray import sys_tray
  File "D:\Programs\XX-Net\code\default\launcher\win_tray.py", line 18, in <module>
    import win32_proxy_manager
  File "D:\Programs\XX-Net\code\default\python27\1.0\lib\win32\win32_proxy_manager.py", line 22, in <module>
    CONNECTIONS = winreg.OpenKey(winreg.HKEY_CURRENT_USER, CONN_PATH, 0, winreg.KEY_ALL_ACCESS)

看起来像是数据库访问出现了问题,因为管理员权限可以打开,怀疑是访问权限的问题,于是我删掉了 code\default\python27\1.0\lib\win32\win32_proxy_manager.py 22行末尾的 winreg.KEY_ALL_ACCESS

开启 start.vbs (非管理员模式)之后,可以正常启动

SeaHOH added a commit that referenced this issue Jul 2, 2019
@SeaHOH SeaHOH closed this as completed in a4a3eed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants