hiddify-next icon indicating copy to clipboard operation
hiddify-next copied to clipboard

silent_start login error

Open eexpress opened this issue 1 year ago • 1 comments

Search first

  • [X] I searched and no similar issues were found

What Happened?

If select silent_start, the hiddify will fail to launch at next reboot. kill process, trun on/off system proxy, no help.

⭕ /usr/bin/hiddify
flutter: 23:36:16.505301 [INFO]     [bootstrap] initializing [directories]
flutter: 23:36:16.505585 [DEBUG]    [bootstrap] [directories] initialized in 0ms
flutter: 23:36:16.505617 [INFO]     [bootstrap] initializing [app info]
flutter: 23:36:16.506031 [DEBUG]    [bootstrap] [app info] initialized in 0ms
flutter: 23:36:16.506050 [INFO]     [bootstrap] initializing [preferences]
flutter: 23:36:16.506069 [DEBUG]    [preferences] initializing preferences
flutter: 23:36:16.506229 [DEBUG]    [bootstrap] [preferences] initialized in 0ms
flutter: 23:36:16.506284 [INFO]     [bootstrap] initializing [analytics]
flutter: 23:36:16.506313 [DEBUG]    [AnalyticsController] enabling analytics
flutter: 23:36:16.506331 [DEBUG]    [LoggerController] adding [analytics] printer
flutter: 23:36:16.506516 [DEBUG]    [bootstrap] [analytics] initialized in 0ms
flutter: 23:36:16.506526 [INFO]     [bootstrap] initializing [preferences migration]
flutter: 23:36:16.506544 [DEBUG]    [PreferencesMigration] already using the latest version (v1)
flutter: 23:36:16.506560 [DEBUG]    [bootstrap] [preferences migration] initialized in 0ms
flutter: 23:36:16.506596 [DEBUG]    [PreferencesEntry<bool, dynamic>] getting persisted preference [debug_mode](bool)
flutter: 23:36:16.506605 [INFO]     [bootstrap] initializing [window controller]
flutter: 23:36:16.510175 [DEBUG]    [bootstrap] [window controller] initialized in 3ms
flutter: 23:36:16.510222 [DEBUG]    [PreferencesEntry<bool, bool>] getting persisted preference [silent_start](bool)
flutter: 23:36:16.510245 [DEBUG]    [bootstrap] silent start [Enabled]
flutter: 23:36:16.510254 [DEBUG]    [bootstrap] silent start, remain hidden accessible via tray
flutter: 23:36:16.510262 [INFO]     [bootstrap] initializing [auto start service]
flutter: 23:36:16.510350 [INFO]     [AutoStartNotifier] auto start is [Enabled]
flutter: 23:36:16.510365 [DEBUG]    [bootstrap] [auto start service] initialized in 0ms
flutter: 23:36:16.510374 [INFO]     [bootstrap] initializing [logs repository]
flutter: 23:36:16.510817 [DEBUG]    [bootstrap] [logs repository] initialized in 0ms
flutter: 23:36:16.510832 [INFO]     [bootstrap] initializing [logger controller]
flutter: 23:36:16.510856 [INFO]     [bootstrap] hiddify v1.4.0 (10400) [prod]
general release
linux [Linux 6.9.4-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 12 13:33:34 UTC 2024]
flutter: 23:36:16.510872 [INFO]     [bootstrap] initializing [geo assets repository]
flutter: 23:36:16.511295 [INFO]     [bootstrap] initializing [profile repository]
flutter: 23:36:16.511473 [INFO]     [bootstrap] initializing [active profile]
flutter: 23:36:16.512736 [INFO]     [bootstrap] initializing [deep link service]
flutter: 23:36:16.512825 [INFO]     [bootstrap] initializing [sing-box]
flutter: 23:36:16.512852 [INFO]     [bootstrap] initializing [system tray]
flutter: 23:36:16.514953 [INFO]     [ConnectionNotifier] connection status: DISCONNECTED
flutter: 23:36:16.517394 [INFO]     [bootstrap] bootstrap took [12ms]
flutter: upgrader: parseAppcastItemsFromUri exception: ClientException with SocketException: 连接被拒绝 (OS Error: 连接被拒绝, errno = 111), address = 127.0.0.1, port = 52254, uri=https://raw.githubusercontent.com/hiddify/hiddify-next/main/appcast.xml

(hiddify:3607): Gtk-CRITICAL **: 23:36:16.616: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
^C

After modify shared_preferences.json manually, set "flutter.silent_start":false, it works again. Maybe it fail due to raw.githubusercontent.com has been blocken.

Minimal Reproducible Example (MRE)

  1. silent_start = true
  2. reboot
  3. fail launch
  4. "flutter.silent_start":false
  5. it work

Expected Behavior

No response

Version

v1.4.0

Platform/OS

Linux

Additional Context

No response

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • [ ] I'm willing to submit a PR (Thank you!)

eexpress avatar Jun 19 '24 16:06 eexpress

There is another problem that exists, even though silent_start is active, the program still opens to the default, if only the Hidify icon should be displayed on the Windows toolbar.

AmirhosseinBrooklyn avatar Jul 22 '24 10:07 AmirhosseinBrooklyn

duplicate issue https://github.com/hiddify/hiddify-next/issues/1189

TitanComputer avatar Aug 06 '24 20:08 TitanComputer