Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Dispose #1

Open
slava-osipov-qs opened this issue Sep 30, 2019 · 1 comment
Open

Crash on Dispose #1

slava-osipov-qs opened this issue Sep 30, 2019 · 1 comment

Comments

@slava-osipov-qs
Copy link

slava-osipov-qs commented Sep 30, 2019

In some case NRE is occured in one of Tasks. I can't identify this task, but I suspect this task was created in IBluetoothLowEnergyAdapter.ConnectToDevice. Here is the stack trace from Android app:

at nexus.core.Observable`1[T].Dispose () [0x0002a] in <9343cfd36c97470fa9139cbdfa0c7ad4>:0 
  at _HA.Disconnect () [0x00135] in <e62d62d0f0784f209c7d249a3316efd5>:0 
  at _HA._sA (nexus.protocols.ble.ConnectionState ) [0x0007b] in <e62d62d0f0784f209c7d249a3316efd5>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1 (System.Object state) [0x00000] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <58604b4522f748968296166e317b04b4>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <58604b4522f748968296166e317b04b4>:0

It looks like one of IObserver<>'s is null. I can suggest to validate arguments in all methods, especially in Observable<T>.Subscribe

@nexussays
Copy link
Owner

Cheers, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants