Skip to content
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

[bug] Built release APK crashes when launching #12812

Closed
MegaSa1nt opened this issue Feb 25, 2025 · 3 comments
Closed

[bug] Built release APK crashes when launching #12812

MegaSa1nt opened this issue Feb 25, 2025 · 3 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@MegaSa1nt
Copy link

Describe the bug

My fresh built APK doesn't work. Debugging in Android Studio works fine

Reproduction

  1. Build my release APK
  2. Try to open it
  3. It crashes

Expected behavior

It should work as expected in debug mode

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 133.0.3065.82
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - 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.16.0
    - npm: 10.8.1
    - bun: 1.1.27

[-] Packages
    - tauri 🦀: 2.0.6
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.46.3
    - tao 🦀: 0.30.8
    - tauri-cli 🦀: 2.0.0-alpha.10
    - @tauri-apps/api : 2.2.0
    - @tauri-apps/cli : 2.2.7

[-] Plugins
    - tauri-plugin-fs 🦀: 2.0.3
    - @tauri-apps/plugin-fs : 2.2.0
    - tauri-plugin-notification 🦀: 2.0.1
    - @tauri-apps/plugin-notification : 2.2.1
    - tauri-plugin-process 🦀: 2.0.1
    - @tauri-apps/plugin-process : 2.2.0
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.2.0
    - tauri-plugin-upload 🦀: 2.2.1
    - @tauri-apps/plugin-upload : 2.2.1
    - tauri-plugin-os 🦀: 2.2.0
    - @tauri-apps/plugin-os : 2.2.0

[-] App
    - build-type: bundle
    - CSP: default-src blob: data: filesystem: ws: wss: http: https: tauri: http://tauri.localhost 'unsafe-eval' 'unsafe-inline' 'self'
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite

Stack trace

https://pastebin.com/M06gsUi0

Additional context

Debugging with Android Studio works as expected

@MegaSa1nt MegaSa1nt added status: needs triage This issue needs to triage, applied to new issues type: bug labels Feb 25, 2025
@MegaSa1nt
Copy link
Author

Tauri is 2.0.6 because i tried to use this as fix: tauri-apps/wry#1420 (comment)
it doesnt work on latest version as well

@alexiokay
Copy link

alexiokay commented Feb 27, 2025

Same issue, but in my case it crash from time to time, somtimes app restart few times till it's fine, but sometimes it crash also when I reopen app. Very annoying

@MegaSa1nt
Copy link
Author

  1. fix(cli.rs/info): add missing camelCase rename #1505 fixed main issue
  2. I had isMinifyEnabled = true in my build.gradle.kts without ProGuard rules, thats why it was crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants