Issue #295 resolved

Crash in FieldCache with more than 65k values

davewillmer avatardavewillmer created an issue

Hey -

we're getting a crash in Field Cache with large numbers of values - reproduced using 2.2.2 and 2.4.1

/whoosh/filedb/", line 273, in to_file UnboundLocalError: local variable 'newcode' referenced before assignment

This is related to Issue #178, which was fixed last year.

It looks to me like this code block was copy-pasted twice more into the same file before being fixed - in v.2.4.1 the same line needs to be added at lines 270 and 426.

Thanks, Dave

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.