arturh85 / factorio-bot

Tauri based Frontend for Factorio Bot
MIT License
6 stars 0 forks source link

Failing to start instances on Windows 11 #393

Open 625dennis opened 2 years ago

625dennis commented 2 years ago

Getting this error message after setting factorio archive and pressing "Start":

20:59:09 PM: ℹ start waiting
20:59:09 PM: ✖ failed to start instances:
  x receiving on a closed channel

I am running v0.2.3 on Windows 11. My factorio archive is v1.1.61.

I also tried to debug the application. Running set RUST_BACKTRACE=1 && npm start, I see the gui loaded. After trying to select a factorio archive with the "Select" button, the application crashes. Any advice for debugging on Windows?

  57: tokio::coop::with_budget<unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\coop.rs:95
  58: tokio::coop::budget<unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\coop.rs:72
  59: tokio::park::thread::CachedParkThread::block_on<tracing::instrument::Instrumented<core::future::from_generator::GenFuture<enum$<factorio_bot::main::async_block_env$0> > > ><unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\park\thread.rs:263
  60: tokio::runtime::enter::Enter::block_on<tracing::instrument::Instrumented<core::future::from_generator::GenFuture<enum$<factorio_bot::main::async_block_env$0> > > ><unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\runtime\enter.rs:152
  61: tokio::runtime::thread_pool::ThreadPool::block_on<tracing::instrument::Instrumented<core::future::from_generator::GenFuture<enum$<factorio_bot::main::async_block_env$0> > > ><unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\runtime\thread_pool\mod.rs:90
  62: tokio::runtime::Runtime::block_on<core::future::from_generator::GenFuture<enum$<factorio_bot::main::async_block_env$0> > ><unknown>
      at C:\Users\denni\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-1.20.0\src\runtime\mod.rs:484
  63: factorio_bot::main<unknown>
      at D:\factorio_bot_workspace\factorio-bot\app\src-tauri\src\main.rs:64
  64: core::ops::function::FnOnce::call_once<enum$<core::result::Result<tuple$<>,miette::eyreish::Report>, 1, 18446744073709551615, Err> (*)(),tuple$<> ><unknown>
      at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3\library\core\src\ops\function.rs:248
                                ⋮ 17 frames hidden ⋮

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
error Command failed with exit code 3221226505.
625dennis commented 2 years ago

Latest versions of factorio don't allow passing in the --disable-prototype-history flag. Using v1.0.0, I can avoid hitting the above error, but now my app freezes after it seems to attempt starting the server.