Lyr-7D1h / swayest_workstyle

Map workspace names to icons for Sway
MIT License
119 stars 18 forks source link

thread 'main' panicked at 'Could not determine the UTC offset on this system.' #19

Closed izballs closed 2 years ago

izballs commented 2 years ago

Just tried to run this on fresh fedora install and it wont launch at all. Here is full backtrace:

RUST_BACKTRACE=full sworkstyle
thread 'main' panicked at 'Could not determine the UTC offset on this system. 
Possible causes are that the time crate does not implement "local_offset_at" on your system, 
or that you are running in a multi-threaded environment and the time crate is returning "None" from "local_offset_at" to avoid unsafe behaviour. 
See the time crate's documentation for more information. (https://time-rs.github.io/internal-api/time/index.html#feature-flags): 
IndeterminateOffset', /home/izba/.cargo/registry/src/github.com-1ecc6299db9ec823/simple_logger-1.16.0/src/lib.rs:409:85
stack backtrace:

   0:     0x555f4c7c23cc - <std::sys_common::backtrace::_print::DisplayBacktrace as 
core::fmt::Display>::fmt::h3264ad1edb4a78ca
   1:     0x555f4c7e705c - core::fmt::write::h85b247e856e081ad
   2:     0x555f4c7be485 - std::io::Write::write_fmt::he3b80a66fc2ba5d3
   3:     0x555f4c7c3ff0 - std::panicking::default_hook::{{closure}}::hf2bcdea8e51c0c13
   4:     0x555f4c7c3ba5 - std::panicking::default_hook::h8864cfaaed08e53a
   5:     0x555f4c7c46a4 - std::panicking::rust_panic_with_hook::hb272975096b9f3ce
   6:     0x555f4c7c4180 - std::panicking::begin_panic_handler::{{closure}}::hbbd6c4e11858ba52
   7:     0x555f4c7c2894 - std::sys_common::backtrace::__rust_end_short_backtrace::hdd56e8729123abc5
   8:     0x555f4c7c40e9 - rust_begin_unwind
   9:     0x555f4c6467f1 - core::panicking::panic_fmt::h9596d5ee0dabf3a3
  10:     0x555f4c6468e3 - core::result::unwrap_failed::h7d8122a7d843671d
  11:     0x555f4c69902b - <simple_logger::SimpleLogger as log::Log>::log::h6622ab37d4cd5e7d
  12:     0x555f4c7a5664 - log::__private_api_log::h2ba3371e320d7318
  13:     0x555f4c657e77 - sworkstyle::config::Config::fetch_icon::h63fd8dbffee43a99
  14:     0x555f4c66b65f - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h490b597cc363e5c0
  15:     0x555f4c668f13 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::hede16d1180249590
  16:     0x555f4c67fbb6 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h7aecdb7e206a0375
  17:     0x555f4c674ebf - tokio::park::thread::CachedParkThread::block_on::hc6bb475e09a1ce7f
  18:     0x555f4c67501e - tokio::runtime::thread_pool::ThreadPool::block_on::h5c0a80bce0bb4068
  19:     0x555f4c6827ec - sworkstyle::main::h2831d2f2cf676f4c
  20:     0x555f4c65df03 - std::sys_common::backtrace::__rust_begin_short_backtrace::h4188e2c2a3a8ee4b
  21:     0x555f4c65a6bd - std::rt::lang_start::{{closure}}::hb7f77bddbcd8f08a
  22:     0x555f4c7c20ab - std::rt::lang_start_internal::hcbc5d1079a591413
  23:     0x555f4c682912 - main
  24:     0x7f15064bd560 - __libc_start_call_main
  25:     0x7f15064bd60c - __libc_start_main@@GLIBC_2.34
  26:     0x555f4c646fc5 - _start
  27:                0x0 - <unknown>
Lyr-7D1h commented 2 years ago

Weird seems like the logging dependency is broken. I'm looking into it, probably will just switch from logging lib.

Lyr-7D1h commented 2 years ago

Fixed in https://github.com/Lyr-7D1h/swayest_workstyle/releases/tag/1.2.2