Cysharp / YetAnotherHttpHandler

YetAnotherHttpHandler brings the power of HTTP/2 (and gRPC) to Unity and .NET Standard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity Crash

bartutiryakioglu opened this issue · comments

I am using Unity 2021.3.29f1. After completing #22 that issues process. I managed to built my application for arm7 devices. But i am having crash almost every session after getting this plugin. It says
'fatal runtime error: Rust cannot catch foreign exceptions' right before the crash occurs.

Crashed: tokio-runtime-worker 0 libsystem_kernel.dylib 0x7578 __pthread_kill + 8 1 libsystem_pthread.dylib 0x7118 pthread_kill + 268 2 libsystem_c.dylib 0x1d178 abort + 180 3 LofeltHaptics 0x13d71c std::sys::unix::abort_internal::h59020a9ab4202e3f + 10 4 LofeltHaptics 0x12cec4 __rust_foreign_exception + 176 5 LofeltHaptics 0x1575fc __rust_panic_cleanup + 82 6 UnityFramework 0x2b6c360 std::panicking::try::cleanup::hb865e43f9910dc37 + 481 (panicking.rs:481) 7 UnityFramework 0x28489e8 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h5e946cf7647f07c0 + 31932 8 UnityFramework 0x2a2c680 tokio::runtime::scheduler::multi_thread::worker::Context::run_task::h20676341b357fc11 + 4008 9 UnityFramework 0x2a2b824 tokio::runtime::scheduler::multi_thread::worker::Context::run::hcc0b5f183246457a + 332 10 UnityFramework 0x2a0aebc tokio::runtime::context::scoped::Scoped$LT$T$GT$::set::h354742f1dddfc1d7 + 68 11 UnityFramework 0x2a10a48 tokio::runtime::context::runtime::enter_runtime::hda8fb7d50fe7ac0c + 380 12 UnityFramework 0x2a2b638 tokio::runtime::scheduler::multi_thread::worker::run::hc2e5a1d1f88796af + 104 13 UnityFramework 0x2a1b738 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::h6b704fa14eeab18f + 9128 14 UnityFramework 0x2a22074 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::h06d31d82d7baedc8 + 112 15 UnityFramework 0x29fbf4c tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::hb15b1863c337d988 + 8408 16 UnityFramework 0x2a323f0 tokio::runtime::blocking::pool::Inner::run::he9fc25b8f704b524 + 1804 17 UnityFramework 0x2a01098 std::sys_common::backtrace::__rust_begin_short_backtrace::haa0da9248db02859 + 864 18 UnityFramework 0x2a0dabc core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hbc52b7c520fabdf8 + 3428 19 UnityFramework 0x2ab375c std::sys::unix::thread::Thread::new::thread_start::h10ef7964306dc4ee + 1985 (boxed.rs:1985) 20 libsystem_pthread.dylib 0x16b8 _pthread_start + 148

This is the crash log. It says it is coming from Nice Vibrations plugin but I can not see any relation because it persists event after I closed haptic functions in my game. This occurs right after I call some of my grpc functions. Let me know if I did something wrong.

I create my channel at the start of the game and use that single channel for all of my operations.

I've removed Haptics from my repo and still having this crash

Crashed: tokio-runtime-worker 0 libsystem_kernel.dylib 0x6bbc __pthread_kill + 8 1 libsystem_pthread.dylib 0xd854 pthread_kill + 208 2 libsystem_c.dylib 0x1f6a4 abort + 124 3 UnityFramework 0x2b2693c std::sys::unix::abort_internal::h10642670a27a8641 + 10 4 UnityFramework 0x2b1d104 __rust_foreign_exception + 128 5 UnityFramework 0x2b2e87c __rust_panic_cleanup + 102 6 UnityFramework 0x2bdf4c4 std::panicking::try::cleanup::hb865e43f9910dc37 + 24 7 UnityFramework 0x28bb7d8 tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::h5e946cf7647f07c0 + 944 8 UnityFramework 0x2a9f480 tokio::runtime::scheduler::multi_thread::worker::Context::run_task::h20676341b357fc11 + 448 9 UnityFramework 0x2a9e624 tokio::runtime::scheduler::multi_thread::worker::Context::run::hcc0b5f183246457a + 236 10 UnityFramework 0x2a7dcbc tokio::runtime::context::scoped::Scoped$LT$T$GT$::set::h354742f1dddfc1d7 + 64 11 UnityFramework 0x2a83848 tokio::runtime::context::runtime::enter_runtime::hda8fb7d50fe7ac0c + 304 12 UnityFramework 0x2a9e438 tokio::runtime::scheduler::multi_thread::worker::run::hc2e5a1d1f88796af + 104 13 UnityFramework 0x2a8e538 tokio::loom::std::unsafe_cell::UnsafeCell$LT$T$GT$::with_mut::h6b704fa14eeab18f + 124 14 UnityFramework 0x2a94e74 tokio::runtime::task::core::Core$LT$T$C$S$GT$::poll::h06d31d82d7baedc8 + 52 15 UnityFramework 0x2a6ed4c tokio::runtime::task::harness::Harness$LT$T$C$S$GT$::poll::hb15b1863c337d988 + 188 16 UnityFramework 0x2aa51f0 tokio::runtime::blocking::pool::Inner::run::he9fc25b8f704b524 + 368 17 UnityFramework 0x2a73e98 std::sys_common::backtrace::__rust_begin_short_backtrace::haa0da9248db02859 + 144 18 UnityFramework 0x2a808bc core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hbc52b7c520fabdf8 + 156 19 UnityFramework 0x2b2655c std::sys::unix::thread::Thread::new::thread_start::h10ef7964306dc4ee + 36 20 libsystem_pthread.dylib 0x3348 _pthread_start + 116 21 libsystem_pthread.dylib 0x1948 thread_start + 8