All-Cups / aicup22

64 stars 26 forks source link

localrunner запускается не с первой попытки (ubuntu 20.04) #19

Open PavelZubkov opened 2 years ago

PavelZubkov commented 2 years ago

При запуске, чаще всего вываливается ошибка:

:~/raic/runner$ ./aicup22 --antialias false
[INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
aicup22: ../../src/xcb_io.c:260: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)

Примерно 1 раз на десять запусков, он запускается и работает

:~/raic/runner$ ./aicup22 --antialias false
[INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
libEGL warning: DRI2: failed to authenticate
[INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
[INFO  ugli::context] GL version: "4.5 (Core Profile) Mesa 22.0.0-devel"

При запуске без antialias, выдет ошибку:

libEGL warning: DRI2: failed to authenticate
[ERROR batbox::logger] panicked at 'called `Result::unwrap()` on an `Err` value: CreationErrors([NoAvailablePixelFormat, NoAvailablePixelFormat])', /usr/local/cargo/git/checkouts/geng-a1d76f5475a34e9a/f12cf96/crates/geng/src/window/mod.rs:93:18
[ERROR batbox::logger]    0: batbox::logger::init_with::{{closure}}
       1: std::panicking::rust_panic_with_hook
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:702:17
       2: std::panicking::begin_panic_handler::{{closure}}
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:588:13
       3: std::sys_common::backtrace::__rust_end_short_backtrace
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/sys_common/backtrace.rs:138:18
       4: rust_begin_unwind
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:584:5
       5: core::panicking::panic_fmt
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/panicking.rs:143:14
       6: core::result::unwrap_failed
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/result.rs:1785:5
       7: geng::context::Geng::new_with
       8: codegame::runner::run
       9: std::sys_common::backtrace::__rust_begin_short_backtrace
      10: std::rt::lang_start::{{closure}}
      11: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/ops/function.rs:259:13
          std::panicking::try::do_call
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492:40
          std::panicking::try
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456:19
          std::panic::catch_unwind
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137:14
          std::rt::lang_start_internal::{{closure}}
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128:48
          std::panicking::try::do_call
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492:40
          std::panicking::try
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456:19
          std::panic::catch_unwind
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137:14
          std::rt::lang_start_internal
                 at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128:20
      12: main
      13: __libc_start_main
                 at /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
      14: _start
PavelZubkov commented 2 years ago

Только заметил, что новаря версия вышла. В v1.1.0 вообще не запускается. Ошибка такая же как во втором листинге выше(c --antialias false)