JuliaIO / VideoIO.jl

Reading and writing of video files in Julia via ffmpeg
https://juliaio.github.io/VideoIO.jl/stable
Other
128 stars 53 forks source link

Segfault when trying to read from closed camera object #37

Closed kmsquire closed 10 years ago

kmsquire commented 10 years ago
julia> lift(fpswhen(window.inputs[:open], 30.0)) do x
           VideoIO.read!(camera, img)
           update!(glimg2,  mapslices(reverse, img, 3)) # needs to be mirrored :(
       end

signal (11): Segmentation fault
av_read_frame at /usr/lib/x86_64-linux-gnu/libavformat.so.54 (unknown line)
pump at /home/kevin/.julia/v0.4/VideoIO/src/avio.jl:135
jl_apply_generic at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
retrieve! at /home/kevin/.julia/v0.4/VideoIO/src/avio.jl:421
read! at /home/kevin/.julia/v0.4/VideoIO/src/avio.jl:481
jl_apply_generic at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
anonymous at none:2
jl_f_apply at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
julia_lift;184587 at  (unknown line)
jl_apply_generic at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: -1400553688)
unknown function (ip: -1400557399)
unknown function (ip: -1400489186)
jl_f_top_eval at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
eval_user_input at REPL.jl:54
jlcall_eval_user_input;179416 at  (unknown line)
jl_apply_generic at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
anonymous at task.jl:96
unknown function (ip: -1400526144)
julia_trampoline at /disk2/kevin-src/julia/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 4199613)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 4199667)
unknown function (ip: 0)
Segmentation fault