Millennium icon indicating copy to clipboard operation
Millennium copied to clipboard

[Bug] steam not launching when using proxy

Open fantasyzhjk opened this issue 5 months ago • 9 comments

Before Reporting

  • [x] I found no existing issues matching my bug
  • [x] My issue is not caused by a theme
  • [x] My issue is not caused by a plugin

Describe the Bug

millennium not working when linux proxy environment variables are set im using proxies like clash because of the chinese internet issue

[24:39.101] INFO Enabled Plugins: 1, Loaded Plugins : 1
[24:39.101] INFO Finished preparing backends: none failed, [core] successful
[24:39.111] INFO Plugin 'core' finished delegating callback function...
[24:42.408] ERROR An error occurred while making a connection to Steam browser context. It's likely that the debugger port '8080' is in use by another process. exception -> [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON
[24:42.408] TRACE const std::string SocketHelpers::GetSteamBrowserContext() @ /home/zhjk/.cache/paru/clone/millennium/src/Millennium/include/await_pipe.h:211
/home/zhjk/.local/share/Steam/steam.sh: 第 928 行:251207 段错误               (核心已转储)"$STEAMROOT/$STEAMEXEPATH" "$@"

Expected Behavior

no crash

Steps To Reproduce

  1. set the env export https_proxy=http://127.0.0.1:7897 http_proxy=http://127.0.0.1:7897 (change it according your proxy settings)
  2. run steam

Operating System

Linux

Anything else?

maybe some python network issue? it runs normaly when i remove http_proxy in environment variables

fantasyzhjk avatar Jul 01 '25 06:07 fantasyzhjk

How does http://127.0.0.1:7897 clash with http://127.0.0.1:8080 I'm not following.

shdwmtr avatar Jul 01 '25 16:07 shdwmtr

How does http://127.0.0.1:7897 clash with http://127.0.0.1:8080 I'm not following.

clash is a proxy software, by setting environment variable (like HTTP_PROXY or HTTPS_PROXY), we can redirect network request through it so when millennium tries to access http://127.0.0.1:8080, the request will be intercepted by the proxy, and the response will be returned through the proxy as well

fantasyzhjk avatar Jul 02 '25 03:07 fantasyzhjk

maybe we can disable proxy in certain requests to avoid this?

fantasyzhjk avatar Jul 02 '25 03:07 fantasyzhjk

I unfortunately don't know enough about proxies to address this.

shdwmtr avatar Jul 06 '25 22:07 shdwmtr

我出现了截然不同的情况, 我使用的代理软件是v2rayn, 在我不启动代理软件时, 装载了Millennium的Steam无法被正常启动, 在尝试从托盘打开Steam时一段时间后会收到Steam无响应的错误窗口, 并且关闭GPU加速或尝试其下的任何一种选项都将无济于事. 我推测可能是什么莫名冲突, 但我没有任何排查头绪甚至是如何获取启动时的log debug, 是否能有开发人员提供任何协助? 诡异的是, 该问题偏偏发生在了我被推送v2.28.0更新后出现. 并且我已经尝试过重装/覆盖/模块插件排查. i have a completely different situation, I am using is V2RayN(a proxy), Steam with Millennium mounted cannot be started properly when i didnot start the proxy software, :( I get a Steam unresponsive error window after trying to open Steam from the windows tray for a while, and closing GPU acceleration or trying any of options under as the pic will not any help. Image guess might be some in-explicable conflict, but I don't have any troubleshooting clues or even how to getting the log debug at startup, can there be any help from devers? plz help.:( Strangely, this problem happened after I was pushed to the v2.28.0 update. n i've tried: reinstalling/overwriting/modules plugins troubleshooting.

CATBirdlong avatar Jul 31 '25 22:07 CATBirdlong

@CATBirdlong Start steam with -dev, check the logs for any errors. https://docs.steambrew.app/users/getting-started/troubleshooting

shdwmtr avatar Aug 01 '25 03:08 shdwmtr

@CATBirdlong Start steam with -dev, check the logs for any errors. https://docs.steambrew.app/users/getting-started/troubleshooting

你好! 非常感谢您能够向我提供帮助, 这对我意义重大. Hello! thank you so much for being able to help, it means a lot to me. 我尝试了该方法, 第一次控制台输出一些信息后卡死, 我选择了强行终止程序并且再次重启. i tried the method u provided to me, the first time: the console got 'stuck' after outputting something, i chose to kill program and restart it again. 第二次尝试启动出现了同样的情况, 两次相同都是在CORE ERROR出现了卡死, 并且控制台不再输出任何信息, The second time tried to start as the same method, the both times I got stuck as same with a CORE ERROR(no use, like ui issue or 'Invalid Value') and then console didn't output any information more--as i said just like STUCKED:

CORE Setting default settings
[30:51.695] CORE ERROR: Could not parse color value '0.8'
[30:51.696] CORE ERROR: Could not parse color value 'var(--adw-window-bg-rgb)'
[30:51.696] CORE ERROR: Could not parse color value '0.36'
[30:51.697] CORE ERROR: Could not parse color value '0.9'
[30:51.697] CORE ERROR: Could not parse color value '0.25'
[30:51.698] CORE ERROR: Could not parse color value '0.25'
[30:51.698] CORE ERROR: Could not parse color value '0.08'
[30:51.699] CORE ERROR: Could not parse color value '0.36'
[30:51.699] CORE ERROR: Could not parse color value '0.25'
[30:51.700] CORE ERROR: Could not parse color value '0.3'
[30:51.700] CORE ERROR: Could not parse color value '0.25'

但这次我等待了更长时间--果不其然, 情况出现了变化, steam client被成功启动, 并且我尝试拷出了控制台内容. ,but this time I waited longer - sure enough, the situation changed, steam client was successfully launched, and I tried to copy the console contents. ++ Starting [email protected] and I noticed this line: [31:44.702] CORE Failed to check for updates: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/SteamClientHomebrew/Millennium/releases (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)'))) 据我所知, 这似乎是一个HTTP的SSL证书错误. 于是我尝试升级了SSL证书, AFAIK, it seems to be an HTTP SSL certificate error. so I tried upgrading the SSL certificate,

PS C:\Users\{USERNAME}> pip install --upgrade certifi
Collecting certifi
  Downloading certifi-2025.7.14-py3-none-any.whl.metadata (2.4 kB)
Downloading certifi-2025.7.14-py3-none-any.whl (162 kB)
Installing collected packages: certifi
Successfully installed certifi-2025.7.14

[notice] A new release of pip is available: 25.0.1 -> 25.2
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Users\{USERNAME}> ^C
PS C:\Users\{USERNAME}> python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\python313\lib\site-packages (25.0.1)
Collecting pip
  Using cached pip-25.2-py3-none-any.whl.metadata (4.7 kB)
Using cached pip-25.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 25.0.1
    Uninstalling pip-25.0.1:
      Successfully uninstalled pip-25.0.1
Successfully installed pip-25.2

正如预期, 问题仍然, 事情没有得到任何解决. 只是让我发现了程序并非是卡死, 而是在长达一分钟的因为可能的网络原因的无响应加载后程序会恢复运行. As expected, the problem remains - thing isn't resolved in any way. It just made me know that, the program is not stuck, but that the program will resume running after A MINUTE-LONG unresponsive-loading due to possible network reasons. What's my next, or the problem does not originate from Millennium that cannot be solved, I need get a feasible solution ;( My analysis is: that the traffic is not intercepted when the proxy software is not running, which may cause the problem to occur. PLZ help me ;<

CATBirdlong avatar Aug 01 '25 17:08 CATBirdlong

I don't know enough about your network configuration to provide a complete/accurate answer. It would probably be best to look through some forums and debug the issue yourself.

shdwmtr avatar Aug 01 '25 17:08 shdwmtr

I don't know enough about your network configuration to provide a complete/accurate answer. It would probably be best to look through some forums and debug the issue yourself.

Right, thank you very much for help, this problem is headache, it involves multiple factors and variables that make it difficult to troubleshoot. Will try to debug myself, you have done enough for it. :(

CATBirdlong avatar Aug 01 '25 17:08 CATBirdlong