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

error in running finalizer: UndefVarError(var=:_Py) #482

Closed
amilsted opened this issue Mar 18, 2024 · 1 comment
Closed

error in running finalizer: UndefVarError(var=:_Py) #482

amilsted opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@amilsted
Copy link

Affects: Both?

Describe the bug
Am seeing the Julia error error in running finalizer: UndefVarError(var=:_Py) during GC with juliacall 0.9.16 and Julia 1.10.0.
Stack traces look like:

error in running finalizer: UndefVarError(var=:_Py)
ijl_undefined_var_error at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/rtutils.c:134
ijl_get_binding_or_error at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/module.c:471
pyobjectarray_finalizer at /data/home/ammilste/.julia/packages/PythonCall/F4kmJ/src/JlWrap/objectarray.jl:26
unknown function (ip: 0x7f19881c5127)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
run_finalizer at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:318
jl_gc_run_finalizers_in_list at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:408
run_finalizers at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:454
run_finalizers at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:435 [inlined]
ijl_gc_collect at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:3539
maybe_collect at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:937 [inlined]
jl_gc_pool_alloc_inner at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:1293 [inlined]
ijl_gc_pool_alloc at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gc.c:1341
setproperty! at ./Base.jl:38
jfptr_setpropertyNOT._79631 at /data/home/ammilste/.julia/compiled/v1.10/QSRBase/OhjPQ_D2YBh.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
optimizeConfigs at /data/home/ammilste/.julia/packages/Antlr4Runtime/8oPsa/src/atn/ATNConfigSet.jl:141
jfptr_optimizeConfigs_79186 at /data/home/ammilste/.julia/compiled/v1.10/QSRBase/OhjPQ_D2YBh.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076

Possible fix here: #481

@amilsted amilsted added the bug Something isn't working label Mar 18, 2024
@cjdoris
Copy link
Collaborator

cjdoris commented Mar 19, 2024

Thanks - another victim of the big recent internal refactor. Fixed now, and I'm making a release soon.

@cjdoris cjdoris closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants