firebase-ios-sdk
firebase-ios-sdk copied to clipboard
Mac App Crashes - grpc_slice_refcount::Ref(grpc_core::DebugLocation)
Description
Mac app crashes with the stack trace attached. GRPC is only used by Firebase, not directly in my application. The occurrence of the issue is very very high.
Reproducing the issue
Unable to reproduce issue
Firebase SDK Version
12.6.0
Xcode Version
16.4
Installation Method
CocoaPods
Firebase Product(s)
All
Targeted Platforms
macOS
Relevant Log Output
Crashed: Thread
0 grpc 0xc584 grpc_slice_refcount::Ref(grpc_core::DebugLocation) + 417 (cxx_atomic_impl.h:417)
1 grpc 0x29e5f8 grpc_event_engine::experimental::SliceBuffer::RefSlice(unsigned long) + 101 (slice.h:101)
2 grpc 0x207070 grpc_event_engine::experimental::PosixEndpointImpl::TcpFlush(absl::lts_20240722::Status&) + 86 (slice.h:86)
3 grpc 0x207794 grpc_event_engine::experimental::PosixEndpointImpl::Write(absl::lts_20240722::AnyInvocable<void (absl::lts_20240722::Status)>, grpc_event_engine::experimental::SliceBuffer*, grpc_event_engine::experimental::EventEngine::Endpoint::WriteArgs const*) + 1196 (posix_endpoint.cc:1196)
4 grpc 0x209e18 grpc_event_engine::experimental::PosixEndpoint::Write(absl::lts_20240722::AnyInvocable<void (absl::lts_20240722::Status)>, grpc_event_engine::experimental::SliceBuffer*, grpc_event_engine::experimental::EventEngine::Endpoint::WriteArgs const*) + 627 (posix_endpoint.h:627)
5 grpc 0xfb4cc grpc_event_engine::experimental::(anonymous namespace)::EndpointWrite(grpc_endpoint*, grpc_slice_buffer*, grpc_closure*, void*, int) + 167 (endpoint.cc:167)
6 grpc 0x26dc88 endpoint_write(grpc_endpoint*, grpc_slice_buffer*, grpc_closure*, void*, int) + 507 (secure_endpoint.cc:507)
7 grpc 0x8d804 grpc_closure* grpc_core::(anonymous namespace)::InitTransportClosure<&write_action_begin_locked(grpc_core::RefCountedPtr<grpc_chttp2_transport>, absl::lts_20240722::Status)>(grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_closure*)::'lambda'(void*, absl::lts_20240722::Status)::__invoke(void*, absl::lts_20240722::Status) + 110 (ref_counted_ptr.h:110)
8 grpc 0xc4b38 grpc_combiner_continue_exec_ctx() + 814 (status.h:814)
9 grpc 0x1111e8 grpc_core::ExecCtx::Flush() + 83 (exec_ctx.cc:83)
10 grpc 0x10c40 grpc_core::ExecCtx::~ExecCtx() + 148 (exec_ctx.h:148)
11 grpc 0x88034 void absl::lts_20240722::internal_any_invocable::LocalInvoker<false, void, maybe_reset_keepalive_ping_timer_locked(grpc_chttp2_transport*)::$_0&>(absl::lts_20240722::internal_any_invocable::TypeErasedState*) + 312 (exec_ctx.h:312)
12 grpc 0x20dcc0 grpc_event_engine::experimental::PosixEventEngine::ClosureData::Run() + 508 (any_invocable.h:508)
13 grpc 0x306928 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 1437 (vector:1437)
14 grpc 0x306528 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 488 (work_stealing_thread_pool.cc:488)
15 grpc 0x306c98 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 259 (work_stealing_thread_pool.cc:259)
16 grpc 0x2d7024 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 146 (thd.cc:146)
17 libsystem_pthread.dylib 0x6bc8 _pthread_start + 136
18 libsystem_pthread.dylib 0x1b80 thread_start + 8
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!