-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
4.1.9.3 autostart issue #2841
Comments
Please check registry |
Yes, there is such entry |
I tested on my Windows 10 1909 (18363.720),
|
Nothing installed and with ver. 4.1.9.2 all was fine. |
|
Still not starting, works only manual start |
I think this is somehow refer with new localization |
What is your operating system language or location settings? |
Russian, is it possible to switch back to english? |
Help-> Write translate template, then delete Russian column in generated file. |
Is there anything in logfile? |
Nothing |
tag as |
There is an error in system log:
|
And another:
|
I think problem is in NLog |
The exception comes from your own code: shadowsocks-windows/shadowsocks-csharp/Model/NlogConfig.cs Lines 109 to 116 in 6893af1
Maybe add some exception handling like this: public static void TouchAndApplyNLogConfig()
{
try
{
if (File.Exists(NLOG_CONFIG_FILE_NAME))
return; // NLog.config exists, and has already been loaded
File.WriteAllText(NLOG_CONFIG_FILE_NAME, Properties.Resources.NLog_config);
}
catch (Exception ex)
{
NLog.Common.InternalLogger.Error(ex, "[shadowsocks] Failed to setup default NLog.config: {0}", NLOG_CONFIG_FILE_NAME)
return;
}
LogManager.LoadConfiguration(NLOG_CONFIG_FILE_NAME); // Load the new config-file
} |
我也有一样的问题,Windows 10 1809 x64 |
Hello,
Have the same problem. |
same problem on windows10x64 1903 |
Sorry for my fault, I'm using the wrong version. The 4.1.9.3 have some issue, It's unable auto-start.
|
the same problem |
Hi All, |
yes |
https://www.codeproject.com/Questions/262575/Start-on-windows-logon-results-in-System-Unauthori
|
move this line to the top of Main() may solve our problem
|
既然修复了,可以发个版本吗 |
After all is done check also verbose logging, there may too be issues. |
yes, verbose logging is too verbose in release config. |
I'll adjust the "verbose" from
Then prepare a new release with autostart code fix |
Some log is at wrong level, like AEADEncryptor's internal state logging, they're at Debug level. I suggest use this, in Debug config, log level is Trace, in Release it is Debug. Also adjusted some log's level. 0001-adjust-log-level.zip (My computer is broken, I'm working on public device, so I can't push at this moment...) |
Hi @studentmain , your patch has been applied on 23ce58a . |
@celeron533 got it |
All is working with 4.1.10.0. Many thanks! |
The app doesn't start with the system while autostart is switch on.
The text was updated successfully, but these errors were encountered: