tauri icon indicating copy to clipboard operation
tauri copied to clipboard

archlinux bug

Open a937983423 opened this issue 2 years ago • 13 comments

Describe the bug

cargo tauri dev Running BeforeDevCommand (trunk serve) 2024-02-22T10:00:33.609379Z INFO 🚀 Starting trunk 0.18.7 2024-02-22T10:00:34.628871Z INFO 📦 starting build 2024-02-22T10:00:34.629227Z INFO spawning asset pipelines 2024-02-22T10:00:35.019318Z INFO copying & hashing css path="styles.css" 2024-02-22T10:00:35.019337Z INFO copying directory path="public" 2024-02-22T10:00:35.019406Z INFO building alist-ui 2024-02-22T10:00:35.061070Z INFO finished copying & hashing css path="styles.css" 2024-02-22T10:00:35.061110Z INFO finished copying directory path="public" Finished dev [unoptimized + debuginfo] target(s) in 0.20s 2024-02-22T10:00:35.269892Z INFO fetching cargo artifacts 2024-02-22T10:00:35.455671Z INFO tool version mismatch (required: 0.2.91, system: 0.2.90) app=wasm-bindgen 2024-02-22T10:00:35.456098Z INFO calling wasm-bindgen for alist-ui Warn Waiting for your frontend dev server to start on http://localhost:1420/... 2024-02-22T10:00:35.777779Z INFO rust build complete 2024-02-22T10:00:35.781372Z INFO applying new distribution 2024-02-22T10:00:35.782899Z INFO ✅ success 2024-02-22T10:00:35.784905Z INFO 📡 serving static assets at -> / 2024-02-22T10:00:35.785150Z INFO 📡 server listening at: 🏠 http://127.0.0.1:1420 💻 http://192.168.124.54:1420 💻 http://192.168.124.18:1420 💻 http://172.17.0.1:1420 💻 http://172.18.0.1:1420 Info Watching /mnt/sda/Project/GUI/truri/alist/src-tauri for changes... Info Watching /mnt/sda/Project/GUI/truri/alist/src-tauri for changes... Compiling alist v0.0.0 (/mnt/sda/Project/GUI/truri/alist/src-tauri) Finished dev [unoptimized + debuginfo] target(s) in 17.40s

(process:92802): GLib-CRITICAL **: 18:00:55.357: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_to_string: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_to_string: assertion 'uri != NULL' failed

Reproduction

No response

Expected behavior

No response

Full tauri info output

cargo tauri dev
     Running BeforeDevCommand (`trunk serve`)
2024-02-22T10:00:33.609379Z  INFO 🚀 Starting trunk 0.18.7
2024-02-22T10:00:34.628871Z  INFO 📦 starting build
2024-02-22T10:00:34.629227Z  INFO spawning asset pipelines
2024-02-22T10:00:35.019318Z  INFO copying & hashing css path="styles.css"
2024-02-22T10:00:35.019337Z  INFO copying directory path="public"
2024-02-22T10:00:35.019406Z  INFO building alist-ui
2024-02-22T10:00:35.061070Z  INFO finished copying & hashing css path="styles.css"
2024-02-22T10:00:35.061110Z  INFO finished copying directory path="public"
    Finished dev [unoptimized + debuginfo] target(s) in 0.20s
2024-02-22T10:00:35.269892Z  INFO fetching cargo artifacts
2024-02-22T10:00:35.455671Z  INFO tool version mismatch (required: 0.2.91, system: 0.2.90) app=wasm-bindgen
2024-02-22T10:00:35.456098Z  INFO calling wasm-bindgen for alist-ui
        Warn Waiting for your frontend dev server to start on http://localhost:1420/...
2024-02-22T10:00:35.777779Z  INFO rust build complete
2024-02-22T10:00:35.781372Z  INFO applying new distribution
2024-02-22T10:00:35.782899Z  INFO ✅ success
2024-02-22T10:00:35.784905Z  INFO 📡 serving static assets at -> /
2024-02-22T10:00:35.785150Z  INFO 📡 server listening at:
    🏠 http://127.0.0.1:1420
    💻 http://192.168.124.54:1420
    💻 http://192.168.124.18:1420
    💻 http://172.17.0.1:1420
    💻 http://172.18.0.1:1420
        Info Watching /mnt/sda/Project/GUI/truri/alist/src-tauri for changes...
        Info Watching /mnt/sda/Project/GUI/truri/alist/src-tauri for changes...
   Compiling alist v0.0.0 (/mnt/sda/Project/GUI/truri/alist/src-tauri)
    Finished dev [unoptimized + debuginfo] target(s) in 17.40s

(process:92802): GLib-CRITICAL **: 18:00:55.357: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:55.358: g_uri_to_string: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_get_scheme: assertion 'uri != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_str_has_prefix: assertion 'str != NULL' failed

(process:92802): GLib-CRITICAL **: 18:00:56.037: g_uri_to_string: assertion 'uri != NULL' failed

Stack trace

No response

Additional context

No response

a937983423 avatar Feb 22 '24 10:02 a937983423

Hi, can you please Elaborate a bit more on what exactly is the issue, and can you please share the repository as well.

naman-crabnebula avatar Feb 22 '24 14:02 naman-crabnebula

The above issue does not arise when I execute sudo cargo tauri dev, but the error appears if sudo is not used. Running on an Arch Linux system with a KDE Plasma desktop environment and Wayland graphics rendering, what steps should I take to resolve this problem? "Tauri 1 and 2 both have the same effect."

a937983423 avatar Feb 22 '24 15:02 a937983423

The issue is not with the repository; when I create a new application using Tauri, even with a blank application, the error message 'Unspecified proxy lookup failure' appears on the application interface. However, running the application with sudo results in normal behavior.

a937983423 avatar Feb 22 '24 15:02 a937983423

I am seeking official assistance as I am unsure where the problem lies. According to the error messages, it seems to be related to glib, and the issue is resolved by running the command with sudo for escalated privileges.

a937983423 avatar Feb 22 '24 15:02 a937983423

The issue is not project-specific; even when creating a fresh, empty project, the same error message appears in both Tauri version 1.5 and 2.0.

a937983423 avatar Feb 22 '24 15:02 a937983423

Firstly, can you please share the output of the command

cargo tauri info

naman-crabnebula avatar Feb 22 '24 15:02 naman-crabnebula

cargo tauri info WARNING: no lock files found, defaulting to npm

[✔] Archlinux - OS: ArchlinuxOS Rolling Release X64 ✔ webkit2gtk-4.1: 2.42.5 ✔ rsvg2: 2.57.1 ✔ rustc: 1.76.0 (07dca489a 2024-02-04) ✔ cargo: 1.76.0 (c84b36747 2024-01-18) ✔ rustup: 1.26.0 (5af9b9484 2023-04-05) ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN) - node: 21.6.2 - pnpm: 8.15.2 - yarn: 1.22.21 - npm: 10.4.0

[-] Packages - tauri [RUST]: 2.0.0-beta.4 - tauri-build [RUST]: 2.0.0-beta.3 - wry [RUST]: 0.36.0 - tao [RUST]: 0.26.0 - tauri-cli [RUST]: 2.0.0-beta.3 - @tauri-apps/api : not installed! - @tauri-apps/cli [NPM]: 2.0.0-beta.3

[-] App - build-type: bundle - CSP: unset - frontendDist: ../dist - devUrl: http://localhost:1420/

a937983423 avatar Feb 23 '24 00:02 a937983423

I hope a knowledgeable person can kindly help me solve this problem that has been bothering me for quite some time and remains unsolved.

a937983423 avatar Feb 23 '24 05:02 a937983423

The above environment is missing a package. I used the npm command to install it with npm install --save @tauri-apps/api. However, the latest check result remains unchanged as before. [✔] Environment - OS: Archlinux Rolling Release X64 ✔ webkit2gtk-4.1: 2.42.5 ✔ rsvg2: 2.57.1 ✔ rustc: 1.76.0 (07dca489a 2024-02-04) ✔ cargo: 1.76.0 (c84b36747 2024-01-18) ✔ rustup: 1.26.0 (5af9b9484 2023-04-05) ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN) - node: 21.6.2 - pnpm: 8.15.2 - yarn: 1.22.21 - npm: 10.4.0

[-] Packages - tauri-cli [RUST]: 2.0.0-beta.3 - @tauri-apps/api [NPM]: 2.0.0-beta.3 - @tauri-apps/cli [NPM]: 2.0.0-beta.3

[-] App

a937983423 avatar Feb 24 '24 03:02 a937983423

cargo tauri dev Running BeforeDevCommand (trunk serve) 2024-02-24T09:35:13.818091Z INFO 🚀 Starting trunk 0.18.7 2024-02-24T09:35:14.495408Z INFO 📦 starting build 2024-02-24T09:35:14.495905Z INFO spawning asset pipelines 2024-02-24T09:35:15.001519Z INFO copying & hashing css path="styles.css" 2024-02-24T09:35:15.001538Z INFO copying directory path="public" 2024-02-24T09:35:15.001567Z INFO building myapp-ui 2024-02-24T09:35:15.038507Z INFO finished copying & hashing css path="styles.css" 2024-02-24T09:35:15.038848Z INFO finished copying directory path="public" Warn Waiting for your frontend dev server to start on http://localhost:1420/... Finished dev [unoptimized + debuginfo] target(s) in 3.17s 2024-02-24T09:35:18.226195Z INFO fetching cargo artifacts 2024-02-24T09:35:18.907914Z INFO using system installed binary: /home/debian/.cargo/bin/wasm-bindgen app=wasm-bindgen detected_version=0.2.91 2024-02-24T09:35:18.907964Z INFO calling wasm-bindgen for myapp-ui 2024-02-24T09:35:19.066639Z INFO rust build complete 2024-02-24T09:35:19.070020Z INFO applying new distribution 2024-02-24T09:35:19.071234Z INFO ✅ success 2024-02-24T09:35:19.072474Z INFO 📡 serving static assets at -> / 2024-02-24T09:35:19.072670Z INFO 📡 server listening at: 🏠 http://127.0.0.1:1420 💻 http://192.168.124.54:1420 💻 http://192.168.124.18:1420 💻 http://172.17.0.1:1420 💻 http://172.18.0.1:1420 Info Watching /mnt/sda/Project/GUI/truri/myapp/src-tauri for changes... Info Watching /mnt/sda/Project/GUI/truri/myapp/src-tauri for changes... Compiling myapp v0.0.0 (/mnt/sda/Project/GUI/truri/myapp/src-tauri) Finished dev [unoptimized + debuginfo] target(s) in 57.35s

(process:123167): GLib-CRITICAL **: 17:36:17.604: g_uri_get_scheme: assertion 'uri != NULL' failed Uploading Screenshot_20240224_173624.png…

a937983423 avatar Feb 24 '24 09:02 a937983423

Uploading Screenshot_20240224_173624.png…

a937983423 avatar Feb 24 '24 09:02 a937983423

I found a case where, following the instructions to set export all_proxy=:7890 and export no_proxy="localhost,127.0.0.1,192.168.0.1", the issue has been resolved. However, I would like to understand why this problem occurred in the first place, and I prefer to solve the root cause of the issue instead.

a937983423 avatar Feb 24 '24 14:02 a937983423