toncenter / ton-indexer

TON Indexer system to store and serve blockchain data using SQL-database
https://toncenter.com/api/v3/
GNU General Public License v3.0
69 stars 33 forks source link

Index API panic in v1.1.0 #84

Open aghamir opened 2 months ago

aghamir commented 2 months ago

Hi, After upgrading to new version, index-api get panic:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xa6a07f]

goroutine 8 [running]:
github.com/jackc/pgx/v5/pgtype.(*Map).RegisterType(0xc0001cd570, 0x0)
    /go/pkg/mod/github.com/jackc/pgx/v5@v5.6.0/pgtype/pgtype.go:253 +0x1f
github.com/kdimentionaltree/ton-index-go/index.afterConnectRegisterTypes({0x193b6d0, 0xc0000a4f00}, 0xc0001ed680)
    /go/app/index/database.go:26 +0xec
github.com/jackc/pgx/v5/pgxpool.NewWithConfig.func1({0x193b6d0, 0xc0000a4f00})
    /go/pkg/mod/github.com/jackc/pgx/v5@v5.6.0/pgxpool/pool.go:233 +0x1a8
github.com/jackc/puddle/v2.(*Pool[...]).initResourceValue.func1()
    /go/pkg/mod/github.com/jackc/puddle/v2@v2.2.1/pool.go:409 +0xdc
created by github.com/jackc/puddle/v2.(*Pool[...]).initResourceValue in goroutine 1
    /go/pkg/mod/github.com/jackc/puddle/v2@v2.2.1/pool.go:407 +0xf6
BaoHG1508 commented 1 month ago

Have you solved this yet? @aghamir