inpxer icon indicating copy to clipboard operation
inpxer copied to clipboard

Error import index on i386

Open urobasa opened this issue 10 months ago • 2 comments

please add x32 bit version app for start on old hardware and openwrt i build this for i386 ang run import exept error: /inpxer import ./flibusta_fb2_local.inpx Starting import from: ./flibusta_fb2_local.inpx ⠙ Indexing... panic: unaligned 64-bit atomic operation

goroutine 1 [running]: internal/runtime/atomic.panicUnaligned() /root/go/pkg/mod/golang.org/[email protected]/src/internal/runtime/atomic/unaligned.go:8 +0x2d internal/runtime/atomic.Xadd64(0xa0226e4, 0x0) /root/go/pkg/mod/golang.org/[email protected]/src/internal/runtime/atomic/atomic_386.s:125 +0x11 github.com/blevesearch/zapx/v16.(*invertedIndexOpaque).incrementBytesWritten(...) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/section_inverted_text_index.go:401 github.com/blevesearch/zapx/v16.(*invertedIndexOpaque).writeDicts(0xa022608, 0xfd7efa8) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/section_inverted_text_index.go:529 +0xe74 github.com/blevesearch/zapx/v16.(*invertedTextIndexSection).Persist(0x9424880, 0xfe720c0, 0xfd7efa8) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/section_inverted_text_index.go:54 +0x3d github.com/blevesearch/zapx/v16.(*interim).convert(0xfe5fc00) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/new.go:220 +0x6d9 github.com/blevesearch/zapx/v16.(*ZapPlugin).newWithChunkMode(0x9424880, {0xf774008, 0x3e9, 0x3e9}, 0x402) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/new.go:69 +0x194 github.com/blevesearch/zapx/v16.(*ZapPlugin).New(0x9424880, {0xf774008, 0x3e9, 0x3e9}) /root/go/pkg/mod/github.com/blevesearch/zapx/[email protected]/new.go:45 +0x43 github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Batch(0x9fde008, 0xf6ffa90) /root/go/pkg/mod/github.com/blevesearch/bleve/[email protected]/index/scorch/scorch.go:445 +0x63a github.com/blevesearch/bleve/v2.(*indexImpl).Batch(0x9c98500, 0xf6bf680) /root/go/pkg/mod/github.com/blevesearch/bleve/[email protected]/index_impl.go:316 +0x90 github.com/shemanaev/inpxer/internal/fts/blevefts.(*Indexer).AddBooks(0x9fa0f10, {0x9e34008, 0x3e9, 0x3fe}, 0x0) /root/inpxer/internal/fts/blevefts/indexer.go:70 +0x1ac github.com/shemanaev/inpxer/internal/db.(*Store).AddBooks(0x9fa0110, {0x9fff008, 0x3e9, 0x3fe}, 0x0) /root/inpxer/internal/db/database.go:82 +0x148 github.com/shemanaev/inpxer/internal/indexer.Run(0x9c983c0, {0xbfdade69, 0x19}, 0x0, 0x0) /root/inpxer/internal/indexer/indexer.go:78 +0x9e2 main.importAction(0x9fa6bc0) /root/inpxer/main.go:71 +0x1b9 github.com/urfave/cli/v2.(*Command).Run(0x9fae0c8, 0x9fa6bc0, {0x9fa09d0, 0x2, 0x2}) /root/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276 +0x825 github.com/urfave/cli/v2.(*Command).Run(0x9fae248, 0x9fa6b00, {0x9ca6078, 0x3, 0x3}) /root/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:269 +0xa91 github.com/urfave/cli/v2.(*App).RunContext(0x9c850e8, {0x8dbc594, 0x9424880}, {0x9ca6078, 0x3, 0x3}) /root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x4c3 github.com/urfave/cli/v2.(*App).Run(...) /root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:307 main.main() /root/inpxer/main.go:63 +0x39c

urobasa avatar Jan 01 '25 01:01 urobasa

There are a couple of issues on 32 bit cpus support in a crucial 3rdparty libraries (like https://github.com/blevesearch/zapx/pull/290), so I can not guarantee it will be implemented, but I'll try.

shemanaev avatar Jan 07 '25 13:01 shemanaev

So... You can try latest release. You also might need to set storage = "bolt" in config since badger wasn't play nice with me, but ymmv.

shemanaev avatar Feb 05 '25 18:02 shemanaev