neogeno / shango-lightning-wallet

Shango Lightning Wallet
66 stars 4 forks source link

Shango crashes LND Backend #51

Closed turcane closed 5 years ago

turcane commented 5 years ago

When connecting to a LND Backend (Beta 0.5) it crashes. I'm not sure if this is a shango problem or a lnd problem.

Expected Behavior

No Crash

Current Behavior

Crash

2018-10-12 17:02 +02:00: panic: 2018-10-12 17:02 +02:00: runtime error: invalid memory address or nil pointer dereference 2018-10-12 17:02 +02:00: 2018-10-12 17:02 +02:00: [signal 2018-10-12 17:02 +02:00: SIGSEGV: segmentation violation 2018-10-12 17:02 +02:00: code= 2018-10-12 17:02 +02:00: 0x1 2018-10-12 17:02 +02:00: addr= 2018-10-12 17:02 +02:00: 0x0 2018-10-12 17:02 +02:00: pc= 2018-10-12 17:02 +02:00: 0xceb18d 2018-10-12 17:02 +02:00: ] 2018-10-12 17:02 +02:00: 2018-10-12 17:02 +02:00: goroutine 2018-10-12 17:02 +02:00: 972 2018-10-12 17:02 +02:00: [ 2018-10-12 17:02 +02:00: running 2018-10-12 17:02 +02:00: ]: 2018-10-12 17:02 +02:00: main.(rpcServer).GetTransactions 2018-10-12 17:02 +02:00: ( 2018-10-12 17:02 +02:00: 0xc01067b9b0 2018-10-12 17:02 +02:00: , 2018-10-12 17:02 +02:00: 0x1204760 2018-10-12 17:02 +02:00: , 0xc01087a990, 0x1a24318, 0xc01067b9b0, 0xc000584840, 0xc0002cb650) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/rpcserver.go:3021 +0x20d github.com/lightningnetwork/lnd/lnrpc._Lightning_GetTransactions_Handler.func1(0x1204760, 0xc01087a990, 0xe8f6a0, 0x1a24318, 0x1, 0x1, 0x0, 0x0) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnrpc/rpc.pb.go:6271 +0x89 github.com/lightningnetwork/lnd/macaroons.(Service).UnaryServerInterceptor.func1 2018-10-12 17:02 +02:00: (0x1204760, 0xc01087a990, 0xe8f6a0, 0x1a24318, 0xc0005847c0, 0xc000584840, 0xc00050eb50, 0x40c478, 0x50, 0xf32b80) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/macaroons/service.go:126 +0x153 github.com/lightningnetwork/lnd/lnrpc._Lightning_GetTransactions_Handler(0xf8aa60, 0xc01067b9b0, 0x1204760, 0xc01087a990, 0xc000540780, 0xc0106b8620, 0x0, 0x0, 0x0, 0x0) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnrpc/rpc.pb.go:6273 +0x158 github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc.(Server).processUnaryRPC(0xc0002ae8c0, 0x1209e40, 0xc01096a000, 0xc0001ea800, 0xc01067bb30, 0x19e2130, 0xc01087a9f0, 0x0, 0x0) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc/server.go:781 +0x8ec github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc.(Server).handleStream(0xc0002ae8c0, 0x1209e40, 0xc01096a000, 0xc0001ea800, 0xc01087a9f0) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc/server.go:981 +0x1308 github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc.(Server).serveStreams.func1.1(0xc00049a1a0, 0xc0002ae8c0, 0x1209e40, 0xc01096a000, 0xc0001ea800) /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc/server.go:551 +0x9f created by github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc.(Server).serveStreams.func1 /Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc/server.go:549 +0xa1

neogeno commented 5 years ago

It is not possible for Shango to create crashes as it only communicates with LND via the standard gRPC API. This is the same one that lncli uses on the command line. If there is any operation that is causing this, it would be best to identify what action results in the crash and file it under the LND GIthub issues page.