samuelpowell / Spinnaker.jl

A Julia interface to the FLIR/PointGrey Spinnaker SDK
MIT License
15 stars 7 forks source link

Not functional on Ubuntu 18.04 (linux) #71

Open urlicht opened 3 years ago

urlicht commented 3 years ago
┌ Error: Spinnaker SDK loaded but Spinnaker.jl failed to initialize
└ @ Spinnaker ~/.julia/packages/Spinnaker/kIgLz/src/Spinnaker.jl:94
TypeError: in ccall: first argument not a pointer or valid constant expression, expected Ptr, got a value of type Tuple{Symbol,String}
Stacktrace:
 [1] spinSystemGetInstance at /home/username/.julia/packages/Spinnaker/kIgLz/src/wrapper/spin_api.jl:97 [inlined]
 [2] Spinnaker.System() at /home/username/.julia/packages/Spinnaker/kIgLz/src/System.jl:16
 [3] __init__() at /home/username/.julia/packages/Spinnaker/kIgLz/src/Spinnaker.jl:91
 [4] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [5] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
 [6] _require(::Base.PkgId) at ./loading.jl:1007
 [7] require(::Base.PkgId) at ./loading.jl:928
 [8] require(::Module, ::Symbol) at ./loading.jl:923
 [9] eval(::Module, ::Any) at ./boot.jl:331
 [10] eval_user_input(::Any, ::REPL.REPLBackend) at /home/username/src/julia/julia-v1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:134
 [11] repl_backend_loop(::REPL.REPLBackend) at /home/username/src/julia/julia-v1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:195
 [12] start_repl_backend(::REPL.REPLBackend, ::Any) at /home/username/src/julia/julia-v1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:180
 [13] run_repl(::REPL.AbstractREPL, ::Any; backend_on_current_task::Bool) at /home/username/src/julia/julia-v1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:292
 [14] run_repl(::REPL.AbstractREPL, ::Any) at /home/username/src/julia/julia-v1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288
 [15] (::Base.var"#807#809"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:399
 [16] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [17] invokelatest at ./essentials.jl:709 [inlined]
 [18] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:383
 [19] exec_options(::Base.JLOptions) at ./client.jl:313
 [20] _start() at ./client.jl:506
IanButterworth commented 3 years ago

@urlicht can you try pkg> add Spinnaker@0.1.11 and see if that works? Meanwhile I'll look into the stacktrace

IanButterworth commented 3 years ago

I was assuming you're on 0.1.12, is that true?

urlicht commented 3 years ago
urlicht commented 3 years ago

FYI, just tried the latest Spinnaker SDK (2.3.0.77) on a different machine, and I still get the same errors

IanButterworth commented 3 years ago

Sorry @urlicht this slipped my mind. Before I fix it, a work around is to move to julia 1.6-beta1 or nightly. Or to roll back Spinnaker.jl

matthewewreed commented 3 years ago

Hi Ian,

After successfully directing Spinnaker.jl to the correct locations for the Spinnaker API, I got the same pointer/tuple related error on Windows on ccall.

Thanks, Matt

IanButterworth commented 3 years ago

@matthewewreed sounds like you're not using julia 1.6. I recommend upgrading as it will fix this issue and it's likely to be an LTS julia version

matthewewreed commented 3 years ago

You've forced me to be a slightly more sophisticated user than I was yesterday, and I thank you for it! Thanks for all the hard work on this project. You've freed me from my last matlab dependency.

Thanks again, Matt