grpc.Net.Client BlockingUnaryCall

86 views
Skip to first unread message

jing g

unread,
Feb 10, 2023, 3:53:41 AM2/10/23
to grpc.io
The following exception occurs when the grpc server is invoked using the unity3d grpc client in linux

free(): invalid pointer
Caught fatal signal - signo:6 code:-6 errno:0 addr:0x3e8000014fd 
Obtained 17 stack frames.

#0 0x007fee598ae980 in funlockfile 
#1 0x007fee594e9e87 in gsignal 
#2 0x007fee594eb7f1 in abort 
#3 0x007fee59534837 in __fsetlocking 
#4 0x007fee5953b8ba in _IO_str_seekoff 
#5 0x007fee59542dec in cfree
#6 0x007fec1b138002 in grpc_core::GrpcPolledFdPosix::~GrpcPolledFdPosix()
#7 0x007fec1afa67df in grpc_channel_stack_init(int, void (*)(void*, grpc_error*), void*, grpc_channel_filter const**, unsigned long, grpc_channel_args const*, grpc_transport*, char const*, grpc_channel_stack*)

#8 0x007fec1afa70f0 in grpc_channel_stack_builder_finish(grpc_channel_stack_builder*, unsigned long, int, void (*)(void*, grpc_error*), void*, void**)

#9 0x007fec1af9ba2a in grpc_core::Subchannel::PublishTransportLocked()

#10 0x007fec1af9beda in grpc_core::Subchannel::OnConnectingFinished(void*, grpc_error*)

#11 0x007fec1afbde71 in grpc_core::ExecCtx::Flush()

#12 0x007fec1b0fd4b1 in grpc_core::Executor::RunClosures(char const*, grpc_closure_list)

#13 0x007fec1b0fd6f6 in grpc_core::Executor::ThreadMain(void*)

#14 0x007fec1b1c10c3 in grpc_core::GetFileModificationTime(char const*, long*)

#15 0x007fee598a36db in start_thread

#16 0x007fee595cc61f in clone

Launching bug reporter QObject: Cannot create children for a parent that is in a different thread. (Parent is QObject(0xded7d0), parent's thread is QThread(0xadd350), current thread is Thread(0x12a1cf0)

Jan Tattermusch

unread,
Mar 31, 2023, 5:23:15 AM3/31/23
to grpc.io
From your report it's unclear whether the client or server is running on Unity (or both). If they're not both on Unity, where is the peer running?
A few important notes:
- if you're using Grpc.Core on Unity, note that that's something that was always experimental and it's explicitly not supported (see e.g. https://grpc.io/blog/grpc-csharp-future/)
- you're mentioning Grpc.Net.Client, but that doesn't seem to match the error you're posting since Grpc.Net.Client 1) AFAIK doesn't run on Unity at all 2) doesn't have a dependency on the C-core native library (which is where the stacktrace is coming from).
Reply all
Reply to author
Forward
0 new messages