blixt-wallet
blixt-wallet copied to clipboard
Possible glitchy code regarding RCTEventEmitter in LndMobile
I stumbled upon this peculiar crash on the macOS build.
*** Assertion failure in -[RCTEventEmitter sendEventWithName:body:](), /Users/coco/Projects/Blixt/blixt-wallet-macos/node_modules/react-native-macos/React/Modules/RCTEventEmitter.m:58
2022-04-20 11:15:14.508604+0400 Blixt Wallet Debug[45997:3011467] [General] An uncaught exception was raised
2022-04-20 11:15:14.509039+0400 Blixt Wallet Debug[45997:3011467] [General] Error when sending event: SubscribeState with body: {
data = "CAI=";
}. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in LndMobile, even though it's inherited from RCTEventEmitter.
2022-04-20 11:15:14.509087+0400 Blixt Wallet Debug[45997:3011467] [General] (
0 CoreFoundation 0x0000000183b7eb08 __exceptionPreprocess + 240
1 libobjc.A.dylib 0x00000001838c9e14 objc_exception_throw + 60
2 Foundation 0x0000000184af4c80 -[NSMutableDictionary(NSMutableDictionary) initWithContentsOfFile:] + 0
3 Blixt Wallet Debug 0x0000000102bb4694 -[RCTEventEmitter sendEventWithName:body:] + 372
4 Blixt Wallet Debug 0x0000000102a7601c $s18Blixt_Wallet_Debug9LndMobileC17sendStreamCommand_7payload14streamOnlyOnce8resolver8rejecterySS_SSSbyypSgcySSSg_AJs5Error_pSgtctFy10Foundation4DataVSg_ALtcfU_ + 2688
5 Blixt Wallet Debug 0x0000000102841520 $s18Blixt_Wallet_Debug22LndmobileReceiveStreamC10onResponseyy10Foundation4DataVSgF + 104
6 Blixt Wallet Debug 0x00000001028415cc $s18Blixt_Wallet_Debug22LndmobileReceiveStreamC10onResponseyy10Foundation4DataVSgFTo + 148
7 Blixt Wallet Debug 0x0000000103c76588 cproxylndmobile_RecvStream_OnResponse + 116
8 Blixt Wallet Debug 0x0000000103c6c0fc _cgo_1a19d74ca7eb_Cfunc_cproxylndmobile_RecvStream_OnResponse + 48
9 Blixt Wallet Debug 0x00000001030316fc runtime.asmcgocall.abi0 + 124
)