tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.78k stars 2.6k forks source link

Unspecified proxy lookup failure #8709

Open a937983423 opened 10 months ago

a937983423 commented 10 months ago

Describe the bug

Info Watching /mnt/sda/Project/GUI/truri/tauri2-cesi/src-tauri for changes... Compiling tauri2-cesi v0.0.0 (/mnt/sda/Project/GUI/truri/tauri2-cesi/src-tauri) Finished dev [unoptimized + debuginfo] target(s) in 35.60s

(process:437358): GLib-CRITICAL **: 22:09:17.563: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:17.564: g_uri_to_string: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_str_has_prefix: assertion 'str != NULL' failed

(process:437358): GLib-CRITICAL **: 22:09:18.566: g_uri_to_string: assertion 'uri != NULL' failed

Reproduction

No response

Expected behavior

No response

Full tauri info output

2024-01-30T14:10:08.324628Z  INFO 📡 server listening at:
    🏠 http://127.0.0.1:1420
    💻 http://192.168.8.213:1420
    💻 http://192.168.8.212:1420
    💻 http://172.18.0.1:1420
    💻 http://172.17.0.1:1420
        Info Watching /mnt/sda/Project/GUI/truri/tauri2-cesi/src-tauri for changes...
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:10.120: g_uri_to_string: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_str_has_prefix: assertion 'str != NULL' failed

(process:438314): GLib-CRITICAL **: 22:10:11.133: g_uri_to_string: assertion 'uri != NULL' failed

Stack trace

No response

Additional context

No response

emptydream-zdb commented 10 months ago

I have the same problem and have below output:

base ❯ cargo tauri dev
        Info Watching /home/emptydream/dev/test_tauri/test_tr/src-tauri for changes...
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s

(test-tr:53746): Gtk-WARNING **: 19:39:31.286: Theme parsing error: gtk-dark.css:6703:68: Invalid name of pseudo-class

(WebKitWebProcess:53767): Gtk-WARNING **: 19:39:32.432: Theme parsing error: gtk-dark.css:6703:68: Invalid name of pseudo-class

(WebKitWebProcess:53767): Gtk-WARNING **: 19:39:32.458: Theme parsing error: gtk-dark.css:6703:68: Invalid name of pseudo-class

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_str_has_prefix: assertion 'str != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_str_has_prefix: assertion 'str != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_str_has_prefix: assertion 'str != NULL' failed

(process:53755): GLib-CRITICAL **: 19:39:32.582: g_uri_to_string: assertion 'uri != NULL' failed
emptydream-zdb commented 10 months ago

oh, I have solved this problem, this issues (https://github.com/tauri-apps/tauri/issues/7104) have the useful info. set proxy like below:

export all_proxy="<your-proxy-ip>:<your-proxy-port>"
export no_proxy="localhost,127.0.0.1,192.168.0.1"

then remember reboot your computer!!!

Fodesu commented 8 months ago

find same error, i tring to find reason find same error log in func glib/gio/gproxyaddressenumerator.c/g_proxy_address_enumerator_next.