#Crash on dev build for android

4 messages · Page 1 of 1 (latest)

dim badger
#

Hello i'm new to tauri and just sarted building my app. I encounter 2 errors :

  • "[vite] Pre-transform error: Failed to load url / (resolved id: /). Does the file exist?"
    That doesn't seems to block anything tho i still wonder what's going on. But it's the the main point of my post...

And :

  • "F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 27226 (ThreadPoolForeg), pid 27044 (.menu_front.app)"
    For this one every times it happens my build just crash with the app. And for the past week it represented 2/3 of the times i built but i'm at the point where it almost always crash and i can't do anything about it.
    My set up + some (maybe?) usefull info:
  • Tauri-Vite-React on Windows connected to a Samsung A52S
  • I'm using bun for some reasons but npm give me the same result
  • A common error that happen before the crash is "bionic/libc/bionic/bionic_allocator.cpp:118: alloc CHECK 'page->free_block_list != nullptr' failed"
  • Another error that happen sometimes : "chromium: [ERROR:directory_reader_posix.cc(43)] opendir /data/user/0/com.menu_front.app/cache/WebView/Crashpad/attachments/some-file-name No such file or directory
    *Something that don't appear as error but seems to be :
  • thread '<unnamed>' panicked at C:[...].cargo\registry\src\index.crates.io-6f17d22bba15001f\wry-0.47.2\src\android\binding.rs:109:42:
    already mutably borrowed: BorrowError"
    5 times before "fatal runtime error: failed to initiate panic"

I'm, for the moment, only using the vite part conection a local api so i didn't touched the src-tauri at all. All the lib i installed are : Mantine (UI), React Router and Tanstack (API calls).
Sorry if it's unclear or if you lack information but thanks you anyways if you took time to read this.

simple zephyr
#

i probably won't be able to help much but those who can would likely appreciate the output of the tauri info command.

#

Does it crash less often again if you delete the node_modules/, src-tauri/target/ and src-tauri/gen/android (requires to run android init again) folders and recompile everything from scratch?

dim badger
# simple zephyr i probably won't be able to help much but those who can would likely appreciate ...
    - OS: Windows 10.0.22631 x86_64 (X64)
    ✔ WebView2: 131.0.2903.70
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.18.0
    - npm: 10.8.2
    - bun: 1.1.34

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite```