Skip to content

Fix problem due to LDMB update > 2.0.0 - #209

Merged
lfoppiano merged 2 commits into
masterfrom
bugfix/update-lmdb2
Mar 23, 2026
Merged

Fix problem due to LDMB update > 2.0.0#209
lfoppiano merged 2 commits into
masterfrom
bugfix/update-lmdb2

Conversation

@lfoppiano

Copy link
Copy Markdown
Collaborator

When GROBID loads multiple DeLFT models sharing the same embeddings (e.g., glove-840B), only the first model loads. All others fail with:

     lmdb.Error: The environment 'data/db/glove-840B' is already open in this process.

lmdb 2.0.0 (released 2026-03-17) added a breaking change: "Opening the same LMDB path twice in one process now raises lmdb.Error instead of silently proceeding to a likely segfault" (#230).

The bug was always latent in DeLFT -- each Embeddings instance opens its own LMDB handle with no sharing. It only surfaced because lmdb is unpinned and Docker builds now pull 2.0.0.

Signed-off-by: Luca Foppiano <luca@foppiano.org>
Signed-off-by: Luca Foppiano <luca@foppiano.org>
@lfoppiano
lfoppiano merged commit b91d21d into master Mar 23, 2026
4 checks passed
@lfoppiano
lfoppiano deleted the bugfix/update-lmdb2 branch March 23, 2026 22:01
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

Successfully merging this pull request may close these issues.

1 participant