Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

cannot import Gallium after importing PyPlot #174

Open
CCWRoy opened this issue Nov 11, 2016 · 2 comments
Open

cannot import Gallium after importing PyPlot #174

CCWRoy opened this issue Nov 11, 2016 · 2 comments

Comments

@CCWRoy
Copy link

CCWRoy commented Nov 11, 2016

Hey guys, I'm not sure if this should be filed with PyPlot or Gallium. I typed the following in the Julia REPL:

import PyPlot
import Gallium

ERROR: InitError: MethodError: Cannot convert an object of type Void to an object of type UInt64
This may have arisen from a call to the constructor UInt64(...),
since type constructors fall back to convert methods.
in read(::ELF.SectionRef{ELF.ELFHandle{Base.AbstractIOBuffer{Array{UInt8,1}}},ELF.ELF64.SectionHeader}, ::Type{DWARF.CallFrameInfo.eh_frame_hdr}) at /home/roy/.julia/v0.5/DWARF/src/cfi.jl:103
in DWARF.CallFrameInfo.EhFrameRef{SR<:ObjFileBase.SectionRef}(::ELF.SectionRef{ELF.ELFHandle{Base.AbstractIOBuffer{Array{UInt8,1}}},ELF.ELF64.SectionHeader}, ::ELF.SectionRef{ELF.ELFHandle{Base.AbstractIOBuffer{Array{UInt8,1}}},ELF.ELF64.SectionHeader}) at /home/roy/.julia/v0.5/DWARF/src/cfi.jl:112
in mod_for_h(::ELF.ELFHandle{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::Gallium.RemotePtr{Void,UInt64}, ::String) at /home/roy/.julia/v0.5/Gallium/src/modules.jl:496
in update_module!(::Gallium.LocalSession, ::Gallium.LazyJITModules{Dict{Gallium.RemotePtr{Void,intptrT},Any}}, ::Ptr{Void}, ::String) at /home/roy/.julia/v0.5/Gallium/src/modules.jl:282
in update_shlibs!(::Gallium.LocalSession, ::Gallium.LazyJITModules{Dict{Gallium.RemotePtr{Void,intptrT},Any}}) at /home/roy/.julia/v0.5/Gallium/src/modules.jl:297
in init() at /home/roy/.julia/v0.5/Gallium/src/Gallium.jl:908
in _include_from_serialized(::String) at ./loading.jl:150
in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
in _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:217
in require(::Symbol) at ./loading.jl:371
during initialization of module Gallium

If I imported Gallium before PyPlot, I wouldn't get such error. However, any calls to Gallium.breakpoints(g) followed by a call to g (any function) would still yield the same error.

I'm on Ubuntu 16.04, running Julia 0.5 with Gallium 0.0.4 and PyPlot 2.2.4. My versioninfo() is:

Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: AMD A10-7870K Radeon R7, 12 Compute Cores 4C+8G
WORD_SIZE: 64
BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Prescott)
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, bdver3)

@Keno
Copy link
Member

Keno commented Nov 11, 2016

Does look like a Gallium issue. Possibly having trouble with one of the shared libraries PyPlot loaded.

@Keno
Copy link
Member

Keno commented Nov 11, 2016

Will take a look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants