Skip to content
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

OSX: convert error when reading png file #302

Closed
kmsquire opened this issue May 9, 2015 · 4 comments
Closed

OSX: convert error when reading png file #302

kmsquire opened this issue May 9, 2015 · 4 comments

Comments

@kmsquire
Copy link
Collaborator

kmsquire commented May 9, 2015

Should probably be a simple fix, but I don't have time to look at it right now.

(This came up while testing VideoIO.jl)

julia> imread("/Users/kevin/.julia/v0.4/VideoIO/test/annie_oakley.png")
ERROR: MethodError: `convert` has no method matching convert(::Type{Ptr{UInt8}}, ::Array{UInt8,1})
This may have arisen from a call to the constructor Ptr{UInt8}(...),
since type constructors fall back to convert methods.
Closest candidates are:
  call{T}(::Type{T}, ::Any)
  convert{T}(::Type{Ptr{T}}, ::UInt64)
  convert{T}(::Type{Ptr{T}}, ::Int64)
  ...
 in CFStringGetCString at /Users/kevin/.julia/v0.4/Images/src/ioformats/OSXnative.jl:327
 in read_and_release_imgsrc at /Users/kevin/.julia/v0.4/Images/src/ioformats/OSXnative.jl:50
 in imread at /Users/kevin/.julia/v0.4/Images/src/io.jl:128
@rsrock
Copy link
Collaborator

rsrock commented May 10, 2015

To be honest, I haven't done any testing of the native OS X reader on 0.4 yet. I know that there have been major changes to the ccall interface that are probably triggering this. I've stayed on 0.3 while the dust settles (seems like it's settling rapidly now, and all the new goodies are so, so tempting)

Real-world duties are blocking for a couple of months here, but my plan is to rework all of this using objectivec.jl over the summer. Hope to include image saving as well.

If this is blocking, you can always comment out this path and fall back to imagemagick.

@kmsquire
Copy link
Collaborator Author

Ok, thanks for the hint on commenting.

@rsrock
Copy link
Collaborator

rsrock commented May 11, 2015

Note to self-- this is probably JuliaLang/julia#10994

@Evizero
Copy link
Member

Evizero commented Dec 27, 2017

Just tried your VideoIO test image on OSX in 0.6 with QuartzImageIO and it works.

I'll go ahead and consider this fixed. Please let me know if that is not the case

@Evizero Evizero closed this as completed Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants