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

Test failure: getgc has no method matching getgc(::Canvas) #203

Open
wkearn opened this issue Feb 12, 2015 · 8 comments
Open

Test failure: getgc has no method matching getgc(::Canvas) #203

wkearn opened this issue Feb 12, 2015 · 8 comments

Comments

@wkearn
Copy link

wkearn commented Feb 12, 2015

Just started getting this error today.

julia> Pkg.test("Winston")
INFO: Testing Winston
ERROR: `getgc` has no method matching getgc(::Canvas)
 in anonymous at /home/wkearn/.julia/v0.3/Winston/src/tk.jl:23
 in display at /home/wkearn/.julia/v0.3/Winston/src/tk.jl:35
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
while loading /home/wkearn/.julia/v0.3/Winston/test/canvas.jl, in expression starting on line 20
while loading /home/wkearn/.julia/v0.3/Winston/test/runtests.jl, in expression starting on line 1

I got the same error on a couple different versions of Julia:

0.3

julia> versioninfo()
Julia Version 0.3.6-pre+69
Commit 8a75610* (2015-02-06 21:07 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

I tried it again on an 0.4 commit (a couple of days off of master) and got the same error.

julia> versioninfo()
Julia Version 0.4.0-dev+3229
Commit bb43210 (2015-02-09 16:15 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Thought it might be something weird going on with my desktop, so I tried in on my Macbook Air and got the same error:

julia> versioninfo()
Julia Version 0.3.5
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
    System: Darwin (x86_64-apple-darwin13.4.0)
    CPU: Intel(R) Core(TM i5-4250U CPU @ 1.30 GHz
    WORD_SIZE: 64
    BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
    LAPACK: libopenblas
    LIBM: libopenlibm
    LLVM: libLLVM-3.3
@timholy
Copy link
Member

timholy commented Feb 12, 2015

I suspect this will be fixed by #202, but I haven't had time to test yet.

@weijianzhg
Copy link

I am having similar error

julia> using Winston
Warning: imported binding for Graphics overwritten in module Main

julia> imagesc(eye(3))
Error showing value of type error during Tk callback: 
ERROR: `getgc` has no method matching getgc(::Canvas)
 in anonymous at /home/weijian/.julia/v0.3/Winston/src/tk.jl:23
 in configure at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:246
 in init_canvas at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:407
 in anonymous at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:386
 in jl_tcl_callback at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:145
FramedPlot:
ERROR: `getgc` has no method matching getgc(::Canvas)
 in anonymous at /home/weijian/.julia/v0.3/Winston/src/tk.jl:23
 in configure at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:246
 in init_canvas at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:407
 in anonymous at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:386
 in jl_tcl_callback at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:145

@wkearn
Copy link
Author

wkearn commented Feb 13, 2015

Confirmed that this is fixed by #202

Thanks, @timholy for pointing that out.

@timholy
Copy link
Member

timholy commented Feb 13, 2015

Thanks for testing.

@weijianzhg
Copy link

Yes, #202 fixed my problem as well. Thanks!

@rickedanielson
Copy link

Just to summarize the above (a nice exercise until the fix gets "in"):
Pkg.status()
Pkg.test("Winston") gives the getgc error (fix is "out")
Pkg.checkout("Winston") puts Winston on the master (fix is in)
Pkg.status()
Pkg.test("Winston") passes tests
Pkg.free("Winston") (fix is back out)
Pkg.test("Winston") gives the getgc error again

@wkearn
Copy link
Author

wkearn commented Feb 27, 2015

This error has reappeared on 0.3 for me.

@wkearn
Copy link
Author

wkearn commented Feb 27, 2015

It's related to JuliaGraphics/Graphics.jl#1

The temporary fix in that issue (Pkg.checkout("Graphics","jcb/exportbase")) seems to solve it.

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

4 participants