ERROR: LoadError: PCRE JIT error: no more memory

TimG
Sun, 05 May 2024 11:33:47 +0000
General Usage

I’m encountering this error and as far as I can tell it is related to my use of a regular expression.

I’m using proprietary commercial data, so can’t easily share. However, I’m trying to read a set of files from a very large zip archive using ZipArchives.jl. I can open the archive and get a list of the 360 files it contains. I only want a small subset of these so I’m using

fmatch = "^Code-Point\Data\CSV\HD.[a-z]{3}"
allmatch=(n[occursin.(Regex(fmatch), n)])

This crashes with the above error.

Another file in the big zip file is a second, nested zip file. I can read this using ZipArchives.jl and, using a simpler regex, this method works fine, doesn’t crash, and produces the reduced list of matching files:

fmatch = "^HD.[a-z]{3}"
allmatch=(n[occursin.(Regex(fmatch), n)])

I’m using julia 1.10.3 under windows. I’m in a corporate environment where my pc is controlled by IT.

Does anyone have any suggestions?

5 posts - 2 participants