Race conditions in geelightning integration module
I've seen this crash a couple of times:
System.NullReferenceException: Object reference not set to an instance of an object
at <StartupCode$GWallet-Backend>.$Lightning+callback@1062-6.Invoke (System.IntPtr delegateArg0, System.UIntPtr delegateArg1, System.IntPtr delegateArg2, System.IntPtr delegateArg3) [0x00000] in <5e4b83275e45f38ba745038327834b5e>:0
exception inside UnhandledException handler: (null) assembly:/usr/lib/mono/4.5/mscorlib.dll type:NullReferenceException member:(null)
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at GWallet.Backend.Infrastructure.Report[a] (System.Exception ex, SharpRaven.Data.ErrorLevel _arg1) [0x0000d] in <5e4b83275e45f38ba745038327834b5e>:0
at GWallet.Backend.Infrastructure.ReportCrash[a] (System.Exception ex) [0x00000] in <5e4b83275e45f38ba745038327834b5e>:0
at GWallet.Backend.Infrastructure.OnUnhandledException[a] (System.Object _arg1, System.UnhandledExceptionEventArgs args) [0x00008] in <5e4b83275e45f38ba745038327834b5e>:0
at GWallet.Backend.Infrastructure+SetupSentryHook@52-4.Invoke (System.Object delegateArg0, System.UnhandledExceptionEventArgs delegateArg1) [0x00000] in <5e4b83275e45f38ba745038327834b5e>:0
In this instance it's pointing into NodeChannelsStream.Next
to the line:
let callback = Ffi.NodeChannelsNextCallback callbackRaw
Though I've also seen the same issue happen on the equivalent line in NodeLocalConfirmChannelGenerator.Resume
.