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

World age error #21412

Closed
GregPlowman opened this issue Apr 17, 2017 · 2 comments
Closed

World age error #21412

GregPlowman opened this issue Apr 17, 2017 · 2 comments

Comments

@GregPlowman
Copy link
Contributor

May or may not be related to #19960

This came up when testing the linked issue above, but this error happens locally (no workers involved, so ignore the module name)

module RemoteWorkerTest
    export test
    using Formatting
    test(x) = println(format(x, commas=true))
end

using RemoteWorkerTest
Julia-0.6.0-pre.beta> test(1000)
ERROR: MethodError: no method matching sprintf_JSdk(::Int64)
The applicable method may be too new: running in world age 21687, while current world is 21688.
Closest candidates are:
  sprintf_JSdk(::Any) at C:\Users\Greg\.julia\v0.6\Formatting\src\cformat.jl:64 (method too new to be called from this world context.)
Stacktrace:
 [1] #format#2(::Int64, ::Int64, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::String, ::String, ::Int64, ::Int64, ::String, ::Symbol, ::String, ::Formatting.#format, ::Int64) at C:\Users\Greg\.julia\v0.6\Formatting\src\cformat.jl:257
 [2] (::Formatting.#kw##format)(::Array{Any,1}, ::Formatting.#format, ::Int64) at .\<missing>:0
 [3] test(::Int64) at .\REPL[1]:4

I get a similar error when module RemoteWorkerTest is defined in a file in LOAD_PATH

Julia-0.6.0-pre.beta> versioninfo()
Julia Version 0.6.0-pre.beta.174
Commit 16d7342* (2017-04-16 22:18 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Steamroller)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, bdver3)
@amitmurthy
Copy link
Contributor

Same error with a further reduced example:

using Formatting
format(1)

Also reported at Formatting.jl - JuliaIO/Formatting.jl#36

@yuyichao
Copy link
Contributor

Yes, this seems to be a Formatting bug. It uses eval to create new functions at runtime and should either not do that or need to also use eval to call the new functions.

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