Open PallHaraldsson opened 2 weeks ago
I'm also seeing a very strange error, with a similar error. Here is a recording of what happened. I hit ctrl+C to stop the error messages. I seems to print it forever if I don't kill it.
Here are the last few errors lines:
...
REPL.var"#97#100"{REPL.LineEdit.Prompt}(julia_prompt=<circular reference @-9>),
#<null>,
#<null>,
REPL.LineEdit.KeyAlias(seq="\b"),
#<null>,
#<null>,
#<null>,
nothing,
REPL.LineEdit.var"#154#210"(),
REPL.LineEdit.KeyAlias(seq="\r"),
REPL.LineEdit.var"#127#183"(),
REPL.LineEdit.var"#151#207"(),
#<null>,
#<null>,
REPL.LineEdit.var"#125#181"(),
#<null>,
#<null>,
#<null>,
nothing,
REPL.LineEdit.var"#158#214"(),
nothing,
nothing,
REPL.LineEdit.var"#145#201"(),
nothing,
#<null>,
#<null>,
#<null>,
#<null>,
REPL.LineEdit.var"#150#206"(),
#<null>,
Base.Dict{Char, Any}(slots=Memory{UInt8}(64, 0x7fa797c8a240)[0xfe, 0x00, 0xca, 0xcd, 0x00, 0x00, 0x00, 0xb9, 0x00, 0xc0, 0xec, 0x00, 0x00, 0x99, 0x00, 0xd9, 0xab, 0x8a, 0x00, 0x00, 0x00, 0xe4, 0x00, 0xb6, 0x00, 0x9d, 0x00, 0x00, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xad, 0x00, 0x00, 0xac, 0xb3, 0xba, 0x99, 0x00, 0x00, 0x00, 0xbc, 0xda, 0xff, 0x00, 0x00, 0x00, 0x00, 0xb5, 0xd2, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x00], keys=Memory{Char}(64, 0x7fa797c91a00)[Char(0x6e000000), Char(0x00000000), Char(0x66000000), Char(0x77000000), Char(0x00000001), Char(0x00000000), Char(0x97c91a20), Char(0x64000000), Char(0x97c95e10), Char(0x65000000), Char(0x5b000000), Char(0x00007fa7), Char(0x97c91a20), Char(0x08000000), Char(0x97c91a10), Char(0x3e000000), Char(0x7f000000), Char(0x3c000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x0a000000), Char(0x97c91a60), Char(0x79000000), Char(0x97c95e40), Char(0x74000000), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c91a60), Char(0x00007fa7), Char(0x4f000000), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x97c91aa0), Char(0x63000000), Char(0x97c95e70), Char(0x00007fa7), Char(0x70000000), Char(0xf48f9fbf), Char(0x57000000), Char(0x6d000000), Char(0x97c91a90), Char(0x00007fa7), Char(0x00000001), Char(0x0d000000), Char(0x2e000000), Char(0x5f000000), Char(0x9907e5e8), Char(0x00007fa7), Char(0x9384dff0), Char(0x00007fa7), Char(0x6c000000), Char(0x75000000), Char(0x00000090), Char(0x00000000), Char(0x00000002), Char(0x00000000), Char(0x62000000), Char(0x00007fa7)], vals=Memory{Any}(64, 0x7fa796ecc680)[
REPL.LineEdit.var"#233#243"(),
#<null>,
REPL.LineEdit.var"#138#194"(),
REPL.LineEdit.var"#148#204"(),
#<null>,
#<null>,
#<null>,
REPL.LineEdit.var"#156#212"(),
#<null>,
REPL.LineEdit.var"#172#228"(),
Base.Dict{Char, Any}(slots=Memory{UInt8}(64, 0x7fa797c8a180)[0x00, 0x00, 0x00, 0x00, 0xed, 0x00, 0x00, 0x00, 0x00, 0x00, 0x93, 0xdc, 0xc9, 0x00, 0x00, 0xa2, 0xef, 0x9f, 0xc0, 0xf2, 0x00, 0x00, 0x00, 0x00, 0xba, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x00, 0x00, 0xb3, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbc, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], keys=Memory{Char}(64, 0x7fa797c918e0)[Char(0x97c95d20), Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x31000000), Char(0x00007fa7), Char(0x97c918d0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x37000000), Char(0x36000000), Char(0x5a000000), Char(0x00000000), Char(0x97c91920), Char(0x35000000), Char(0x42000000), Char(0x43000000), Char(0x44000000), Char(0x41000000), Char(0x97c91920), Char(0x00007fa7), Char(0x97c91910), Char(0x00007fa7), Char(0x34000000), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x38000000), Char(0x46000000), Char(0x00007fa7), Char(0x97c95d80), Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c91960), Char(0x00007fa7), Char(0x48000000), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0xf48f9fbf), Char(0x39000000), Char(0x00000000), Char(0x97c919a0), Char(0x00007fa7), Char(0x97c95db0)^C, Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c919a0), Char(0x00007fa7), Char(0x32000000), Char(0x33000000), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x97c919e0), Char(0x00007fa7)], fatal: error thrown and no exception handler available.
InterruptException()
jl_ast_ctx_leave at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/ast.c:319 [inlined]
ijl_is_operator at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/ast.c:998
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1269
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1286
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1113
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1286
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
ijl_no_exc_handler at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/task.c:693
true_main at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/jlapi.c:907
jl_repl_entrypoint at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/jlapi.c:1059
main at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/cli/loader_exe.c:58
unknown function (ip: 0x7fa7a1c56e07)
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Are you loading any packages in your startup.jl? If so disable it?
Are you loading any packages in your startup.jl? If so disable it?
Indeed. I had VimBindings.jl in my startup.jl
:
if isinteractive()
@eval using VimBindings
end
Disabling it fixes the issue.
I tried to investigate but VimBindings doesn't work on master
% ./julia -ie "using VimBindings"
Info Given VimBindings was explicitly requested, output will be shown live
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
? VimBindings
[ Info: Precompiling VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a]
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a].
└ exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
ERROR: LoadError: InitError: LoadError: UndefVarError: `TextInterface` not defined in `REPL`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:42
[2] top-level scope
@ ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:163
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:582
[4] include
@ ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:9 [inlined]
[5] __init__()
@ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:46
Which is known https://github.com/caleb-allen/VimBindings.jl/issues/98
I tried to investigate but VimBindings doesn't work on master
% ./julia -ie "using VimBindings" Info Given VimBindings was explicitly requested, output will be shown live WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183. ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. ? VimBindings [ Info: Precompiling VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a] WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183. ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. ┌ Info: Skipping precompilation due to precompilable error. Importing VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a]. └ exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module. ERROR: LoadError: InitError: LoadError: UndefVarError: `TextInterface` not defined in `REPL` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base ./Base.jl:42 [2] top-level scope @ ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:163 [3] include(mod::Module, _path::String) @ Base ./Base.jl:582 [4] include @ ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:9 [inlined] [5] __init__() @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:46
Yes. I see there is an open issue on that
@PallHaraldsson , were you also using VimBindings.jl ? If not, then my issue was different than yours...
I'm also seeing a very strange error, with a similar error. Here is a recording of what happened.
@favba is there a particular sequence of keys which resulted in this error loop? Also, what terminal and OS are you using? I haven't dug into 1.12, but it'd be particularly concerning if VimBindings is causing this on the 1.11 RC.
I think there are at least two issues here: 1) Something to do with VimBindings interacting with REPL internals that may have changed 2) The way we load Pkg via a task now when requesting the pkg repl should have better error state handling if it fails
I'm also seeing a very strange error, with a similar error. Here is a recording of what happened.
@favba is there a particular sequence of keys which resulted in this error loop? Also, what terminal and OS are you using? I haven't dug into 1.12, but it'd be particularly concerning if VimBindings is causing this on the 1.11 RC.
In order to trigger the error I have to first start the Pkg REPL with ]
. It then throws the SYSTEM: caught exception of type :TypeError while trying to print a failed Task notice; giving up
error.
After that, I exit the Pkg REPL mode and type any function, the infinite error msg happens after I type the opening bracket (
for the function.
I'm using the foot terminal v1.18.1 on Arch linux with zen kernel v6.10.8
@PallHaraldsson , were you also using VimBindings.jl ? If not, then my issue was different than yours...
No I wasn't. I've never had a problem with my startup.jl, if that's even the cause here, first on 1.11. And there's basically nothing in it, first line some old test I forgot in there...
1+2
ENV["JULIA_PKG_PRESERVE_TIERED_INSTALLED"] = true
This seems to have been the problem (I may have been deving the package, but then only to try to disable some stuff, to reduce startup time:
julia> @time using PythonCall
ERROR: InitError: MethodError: no method matching
..
SYSTEM (REPL): caught exception of type TypeError while trying to handle a nested exception; giving up
While I didn't until:
(@v1.11) pkg> add PythonCall
ERROR: MethodError: no method matching
I probably should have made the issue at julialang, since I'm not/no longer sure, kg> add triggered it. Can somebody move it over there?
Seems like a PythonCall issue with something async that it starts during __init__()
then?
At least, if this should go to the julia repo it needs a clearer name / diagnosis.
Seems like a PythonCall issue with something async that it starts during init() then?
No, I don't see any async used (unless if a dependency of it and I also ruled out in CondaPkg), except for @async write
in code I wouldn't have used:
so I'm back to thinking this is Pkg related, completely unrelated to PythonCall.
Full log after starting Julia: