runtime: MAUI+Android: Error when disposing HttpResponseMessage
Description
An HttpResponseMessage can be disposed while an HTTP request is in-progress. This cancels the HTTP request in the client and a notification is sent to the server that its been canceled.
User reported error of this failing in MAUI+Android.
Reproduction Steps
See https://github.com/grpc/grpc-dotnet/issues/1726
Expected behavior
The client cancels the HTTP request and a notification is sent to the server that it’s been canceled.
Actual behavior
Exception thrown on Android:
[DOTNET] System.AggregateException: One or more errors occurred. (Unbalanced enter/exit)
[DOTNET] ---> Java.Lang.IllegalStateException: Unbalanced enter/exit
[DOTNET] at Java.Interop.JniEnvironment.InstanceMethods.CallVoidMethod(JniObjectReference instance, JniMethodInfo method, JniArgumentValue* args) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:line 11884
[DOTNET] at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(String encodedMember, IJavaPeerable self, JniArgumentValue* parameters) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:line 29
[DOTNET] at Java.IO.InputStream.Close() in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net6.0/android-32/mcw/Java.IO.InputStream.cs:line 106
[DOTNET] at Android.Runtime.InputStreamInvoker.Close() in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/InputStreamInvoker.cs:line 62
[DOTNET] at System.IO.Stream.Dispose()
[DOTNET] at System.IO.BufferedStream.Dispose(Boolean disposing)
[DOTNET] at System.IO.Stream.Close()
[DOTNET] at System.IO.Stream.Dispose()
[DOTNET] at System.Net.Http.StreamContent.Dispose(Boolean disposing)
[DOTNET] at System.Net.Http.HttpContent.Dispose()
[DOTNET] at Grpc.Net.Client.Web.Internal.GrpcWebResponseContent.Dispose(Boolean disposing) in /_/src/Grpc.Net.Client.Web/Internal/GrpcWebResponseContent.cs:line 86
[DOTNET] at System.Net.Http.HttpContent.Dispose()
[DOTNET] at System.Net.Http.HttpResponseMessage.Dispose(Boolean disposing)
[DOTNET] at Xamarin.Android.Net.AndroidHttpResponseMessage.Dispose(Boolean disposing) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Xamarin.Android.Net/AndroidHttpResponseMessage.cs:line 55
[DOTNET] at System.Net.Http.HttpResponseMessage.Dispose()
[DOTNET] at Grpc.Net.Client.Internal.GrpcCall`2[[GRPCMagicalSmartHomeServices.WriteData, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[GRPCMagicalSmartHomeServices.StateResponse, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CancelCall(Status status) in /_/src/Grpc.Net.Client/Internal/GrpcCall.cs:line 429
[DOTNET] at Grpc.Net.Client.Internal.GrpcCall`2[[GRPCMagicalSmartHomeServices.WriteData, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[GRPCMagicalSmartHomeServices.StateResponse, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CancelCallFromCancellationToken() in /_/src/Grpc.Net.Client/Internal/GrpcCall.cs:line 402
[DOTNET] at Grpc.Net.Client.Internal.GrpcCall`2.<>c[[GRPCMagicalSmartHomeServices.WriteData, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[GRPCMagicalSmartHomeServices.StateResponse, MagicalSmartHome.gRPC.proto, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<TryRegisterCancellation>b__69_0(Object state) in /_/src/Grpc.Net.Client/Internal/GrpcCall.cs:line 389
[DOTNET] at System.Threading.CancellationTokenSource.Invoke(Delegate d, Object state, CancellationTokenSource source)
[DOTNET] at System.Threading.CancellationTokenSource.CallbackNode.<>c.<ExecuteCallback>b__9_0(Object s)
[DOTNET] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[DOTNET] --- End of stack trace from previous location ---
[DOTNET] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[DOTNET] at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback()
[DOTNET] at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
[DOTNET] --- End of managed Java.Lang.IllegalStateException stack trace ---
[DOTNET] java.lang.IllegalStateException: Unbalanced enter/exit
[DOTNET] at com.android.okhttp.okio.AsyncTimeout.enter(AsyncTimeout.java:64)
[DOTNET] at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.readChunkSize(Http1xStream.java:453)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.read(Http1xStream.java:437)
[DOTNET] at com.android.okhttp.internal.Util.skipAll(Util.java:165)
[DOTNET] at com.android.okhttp.internal.Util.discard(Util.java:147)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.close(Http1xStream.java:474)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.close(RealBufferedSource.java:397)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource$1.close(RealBufferedSource.java:385)
[DOTNET] at crc64338477404e88479c.InnerGestureListener.n_onSingleTapUp(Native Method)
[DOTNET] at crc64338477404e88479c.InnerGestureListener.onSingleTapUp(InnerGestureListener.java:79)
[DOTNET] at android.view.GestureDetector.onTouchEvent(GestureDetector.java:748)
[DOTNET] at mono.android.view.View_OnTouchListenerImplementor.n_onTouch(Native Method)
[DOTNET] at mono.android.view.View_OnTouchListenerImplementor.onTouch(View_OnTouchListenerImplementor.java:30)
[DOTNET] at android.view.View.dispatchTouchEvent(View.java:14536)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3114)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2787)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.WrapperView.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.WrapperView.dispatchTouchEvent(WrapperView.java:98)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:502)
[DOTNET] at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1890)
[DOTNET] at android.app.Activity.dispatchTouchEvent(Activity.java:4196)
[DOTNET] at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
[DOTNET] at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:460)
[DOTNET] at android.view.View.dispatchPointerEvent(View.java:14799)
[DOTNET] at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6347)
[DOTNET] at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6148)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5626)
[DOTNET] at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5683)
[DOTNET] at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5649)
[DOTNET] at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5814)
[DOTNET] at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5657)
[DOTNET] at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5871)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5630)
[DOTNET] at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5683)
[DOTNET] at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5649)
[DOTNET] at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5657)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5630)
[DOTNET] at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8562)
[DOTNET] at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8513)
[DOTNET] at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8482)
[DOTNET] at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8685)
[DOTNET] at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:259)
[DOTNET] at android.os.MessageQueue.nativePollOnce(Native Method)
[DOTNET] at android.os.MessageQueue.next(MessageQueue.java:335)
[DOTNET] at android.os.Looper.loopOnce(Looper.java:161)
[DOTNET] at android.os.Looper.loop(Looper.java:288)
[DOTNET] at android.app.ActivityThread.main(ActivityThread.java:7839)
[DOTNET] at java.lang.reflect.Method.invoke(Native Method)
[DOTNET] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
[DOTNET] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
[DOTNET] --- End of managed Java.Lang.IllegalStateException stack trace ---
[DOTNET] java.lang.IllegalStateException: Unbalanced enter/exit
[DOTNET] at com.android.okhttp.okio.AsyncTimeout.enter(AsyncTimeout.java:64)
[DOTNET] at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.readChunkSize(Http1xStream.java:453)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.read(Http1xStream.java:437)
[DOTNET] at com.android.okhttp.internal.Util.skipAll(Util.java:165)
[DOTNET] at com.android.okhttp.internal.Util.discard(Util.java:147)
[DOTNET] at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.close(Http1xStream.java:474)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource.close(RealBufferedSource.java:397)
[DOTNET] at com.android.okhttp.okio.RealBufferedSource$1.close(RealBufferedSource.java:385)
[DOTNET] at crc64338477404e88479c.InnerGestureListener.n_onSingleTapUp(Native Method)
[DOTNET] at crc64338477404e88479c.InnerGestureListener.onSingleTapUp(InnerGestureListener.java:79)
[DOTNET] at android.view.GestureDetector.onTouchEvent(GestureDetector.java:748)
[DOTNET] at mono.android.view.View_OnTouchListenerImplementor.n_onTouch(Native Method)
[DOTNET] at mono.android.view.View_OnTouchListenerImplementor.onTouch(View_OnTouchListenerImplementor.java:30)
[DOTNET] at android.view.View.dispatchTouchEvent(View.java:14536)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3114)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2787)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.WrapperView.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.WrapperView.dispatchTouchEvent(WrapperView.java:98)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.n_dispatchTouchEvent(Native Method)
[DOTNET] at crc6452ffdc5b34af3a0f.LayoutViewGroup.dispatchTouchEvent(LayoutViewGroup.java:56)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
[DOTNET] at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
[DOTNET] at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:502)
[DOTNET] at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1890)
[DOTNET] at android.app.Activity.dispatchTouchEvent(Activity.java:4196)
[DOTNET] at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
[DOTNET] at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:460)
[DOTNET] at android.view.View.dispatchPointerEvent(View.java:14799)
[DOTNET] at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6347)
[DOTNET] at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6148)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5626)
[DOTNET] at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5683)
[DOTNET] at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5649)
[DOTNET] at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5814)
[DOTNET] at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5657)
[DOTNET] at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5871)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5630)
[DOTNET] at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5683)
[DOTNET] at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5649)
[DOTNET] at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5657)
[DOTNET] at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5630)
[DOTNET] at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8562)
[DOTNET] at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8513)
[DOTNET] at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8482)
[DOTNET] at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8685)
[DOTNET] at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:259)
[DOTNET] at android.os.MessageQueue.nativePollOnce(Native Method)
[DOTNET] at android.os.MessageQueue.next(MessageQueue.java:335)
[DOTNET] at android.os.Looper.loopOnce(Looper.java:161)
[DOTNET] at android.os.Looper.loop(Looper.java:288)
[DOTNET] at android.app.ActivityThread.main(ActivityThread.java:7839)
[DOTNET] at java.lang.reflect.Method.invoke(Native Method)
[DOTNET] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
[DOTNET] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
[DOTNET]
[DOTNET] --- End of inner exception stack trace ---
[DOTNET] at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
[DOTNET] at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
[DOTNET] at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
[DOTNET] at System.Threading.CancellationTokenSource.Cancel()
[DOTNET] at MagicalSmartHome.gRPC.Client.Lib.Services.ClientService.DisposeAsy
### Regression?
_No response_
### Known Workarounds
_No response_
### Configuration
_No response_
### Other information
_No response_
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16 (6 by maintainers)
@simonrozsival unfortunately I cannot share it since it is proprietary code, but I will try to make a simple PoC (hope I get the time) to illustrate the issue, thank you