Note that gRPC's support for Unity is not official (is marked as 
"experimental") - so it's not all that surprising that you are facing 
issues when trying out a new target platform. I don't know the details of 
Oculus Quest, but if it's an android device, you still might be able to get 
things working with some extra effort (sorry, Unity platform doesn't really 
make things easy for us).

On Wednesday, November 18, 2020 at 5:04:07 AM UTC+1 [email protected] 
wrote:

> Has anyone been able to get gRPC working on Oculus Quest?
>
> I have a VR project that runs in Unity (C#) and uses gRPC. It works fine 
> in the editor and works fine when built on Windows. However, when I compile 
> to Android/Quest, nothing gRPC-related works at all. I get a runtime 
> exception like: 
>
>
> *(Filename: <f7a04f2dd64143e0bba9257dc32cc3db> Line: 0)2020-11-17 
> 19:49:40.407 10631-10651/? E/Unity: InvalidOperationException: Operation is 
> not valid due to the current state of the object.      at 
> Grpc.Core.Internal.NativeCallbackDispatcher.Init 
> (Grpc.Core.Internal.NativeMethods native) [0x0002e] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.Internal.NativeExtension..ctor () [0x0001c] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.Internal.NativeExtension.Get () [0x00022] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.Internal.NativeMethods.Get () [0x00000] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.GrpcEnvironment.GrpcNativeInit () [0x00016] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.GrpcEnvironment..ctor () [0x0001e] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at 
> Grpc.Core.GrpcEnvironment.AddRef () [0x00028] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at Grpc.Core.Channel..ctor 
> (System.String target, Grpc.Core.ChannelCredentials credentials, 
> System.Collections.Generic.IEnumerable`1[T] options) [0x00041] in 
> <fcf85defed7d4657a25a4006a87f381f>:0       at Grpc.C*
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/22d1a354-962b-4744-9ee2-1e96cb283d91n%40googlegroups.com.

Reply via email to