-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading image from stream #10
Comments
Can you share the full stack trace, and the versions of ImageIO and PNGFiles |
Yes, of course, sorry: julia> ImageIO.load(x)
ERROR: MethodError: no method matching lock(::PNGFiles.var"#4#5"{Nothing,Bool,Base.Process,Ptr{Nothing},Ptr{Nothing}}, ::Base.Process)
Closest candidates are:
lock(::Any, ::Base.GenericCondition) at condition.jl:78
lock(::Any, ::Base.AbstractLock) at lock.jl:158
lock(::Any, ::WeakKeyDict) at weakkeydict.jl:76
Stacktrace:
[1] maybe_lock(::Function, ::Base.Process) at /home/yakir/.julia/packages/PNGFiles/Sgsmw/src/io.jl:33
[2] load(::Base.Process; gamma::Nothing, expand_paletted::Bool) at /home/yakir/.julia/packages/PNGFiles/Sgsmw/src/io.jl:44
[3] load(::Base.Process) at /home/yakir/.julia/packages/PNGFiles/Sgsmw/src/io.jl:38
[4] #invokelatest#1 at ./essentials.jl:710 [inlined]
[5] invokelatest(::Any, ::Any) at ./essentials.jl:709
[6] load(::Base.Process; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/yakir/.julia/packages/ImageIO/DOpZl/src/ImageIO.jl:27
[7] load(::Base.Process) at /home/yakir/.julia/packages/ImageIO/DOpZl/src/ImageIO.jl:23
[8] top-level scope at REPL[8]:1
[9] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.0/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288 |
@SimonDanisch sorry to bother you again with this, but JuliaIO/PNGFiles.jl#19 didn't quite fix it. Perhaps we just need to not lock on those anonymous functions.. but I don't see how we could set up the method signatures to avoid that |
I'm having a hard time figuring out how to read an image from a stream:
I'm getting
but not sure if it's because I'm using the wrong syntax?
The text was updated successfully, but these errors were encountered: