Skip to content

Thread Safety - Signal 11 faults if using multiple threads #58

@lawless-m

Description

@lawless-m

I was advised that API is changing and to update my code from this

en2lalo(e, n) = Proj4.transform(Projection(Proj4.epsg[27700]), Projection(Proj4.epsg[4326]), [e, n])

to this

en2lalo(e, n) = Proj4.Transformation("EPSG:27700", "EPSG:4326", always_xy=true)([e,n])

And using mutliple threads (eleven) I get a received signal: 11 error

Commenting out the Threads.@threads made it work again

##Threads.@threads
    for i in 1:length(readers)
        dbs[i] = generate(readers[i])
    end

The threaded version processed 39 million records using 11 threads, so I am confident it is not the data or my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions