Giter Site home page Giter Site logo

Comments (6)

FabianLars avatar FabianLars commented on August 30, 2024

in v2 beta we only support the latest versions. To not leave you empty handed, try adding tauri-utils (and maybe tauri-runtime and tauri-runtime-wry) as direct dependencies of your app with older versions.

What's the reason you're downgrading to beta.18? Are there any bugs in 19-22?

from tauri.

skydig avatar skydig commented on August 30, 2024

@FabianLars .
use 22, I can not spawn sidecar, I run cargo tauri build to generate package and manually change exe directory and exe name, tauri window report out of memory, but can spawn exe after refresh page.
use beta.16 sidecar can work. so I want to rollback tauri beta version to 1X.
thanks.

from tauri.

skydig avatar skydig commented on August 30, 2024

@FabianLars
after install the package and I change
meilisearch-windows-amd64.exe.exe to meilisearch-windows-amd64.exe-x86_64-pc-windows-msvc.exe
tauri can run but crash with blank screen.
meilisearch-windows-amd64.exe-x86_64-pc-windows-msvc.exe is too big?(100M)

图片

from tauri.

FabianLars avatar FabianLars commented on August 30, 2024

the executable size shouldn't matter

from tauri.

skydig avatar skydig commented on August 30, 2024

@FabianLars
oh,
same code, I have ever success to spawn without crash. I just run cargo update, I don't know which module affects:(

from tauri.

skydig avatar skydig commented on August 30, 2024

@FabianLars
I switch to std::process::Command temp...

I think "out of memory" reason may be following code?

let (mut rx, mut _child) = sidecar_command
.spawn()
.expect("Failed to spawn meili");
let window = app.get_webview_window("main").unwrap();
tauri::async_runtime::spawn(async move {
// read events such as stdout
while let Some(event) = rx.recv().await {
if let CommandEvent::Stdout(line) = event {
window
.emit("message", Some(format!("'{:?}'", line)))
.expect("failed to emit event");
// write to stdin
//child.write("message from Rust\n".as_bytes()).unwrap();
println!("{:?}",format!("'{:?}'", line));
}
}

so guess, latest sidecar main issue may be the "-x86_64-pc-windows-msvc" is stripped with .exe.exe when package and dev debug.

thanks!

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.