Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error import index on i386 #5

Open
urobasa opened this issue Jan 1, 2025 · 1 comment
Open

Error import index on i386 #5

urobasa opened this issue Jan 1, 2025 · 1 comment

Comments

@urobasa
Copy link

urobasa commented Jan 1, 2025

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

@shemanaev
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants