Stream: helpdesk (published)

Topic: Any ideas on why this error is happening?


view this post on Zulip Davi Sales Barreira (May 20 2022 at 12:45):

Hello, everyone. I'm facing a strange problem, and I'm having some trouble figuring out why it's happening.
I have a script that donwloads a pdf from an S3 bucket, extracts the text from the pdf and writes the document to a MongoDB, using Mongoc.jl.
I've parallelized the script using Threads.@threads. I've also placed a try-catch around the function that extracts and writes the text to mongo:

function extractandwrite()
    client = Mongoc.Client()
    database = client["resolvvi"]
    collection = database["autos"]
    autos = obterdataframeautos()
    p = Progress(size(autos)[1])
    Threads.@threads for i in 1:size(autos)[1]
        try
            @suppress extrairauto(autos[i, :], collection)
        catch
            continue
        end
        next!(p)
    end
end

The thing is, when I leave this running, I get (at random) an error saying 17244 iot instruction (core dumped). This makes the repl die, hence, the error seems to go beyond the actual Julia code... Any idea what is this error?


Last updated: Dec 28 2024 at 04:38 UTC