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

Julia (1.8.0-beta3) compiler errors when I evaluate a model using MLJ package. #44965

Closed
eisthf opened this issue Apr 13, 2022 · 2 comments · Fixed by #44966
Closed

Julia (1.8.0-beta3) compiler errors when I evaluate a model using MLJ package. #44965

eisthf opened this issue Apr 13, 2022 · 2 comments · Fixed by #44966
Assignees
Milestone

Comments

@eisthf
Copy link

eisthf commented Apr 13, 2022

Julia (1.8.0-beta3) compiler errors when I evaluate a model using MLJ package.

using MLJ

X, y = @load_iris

LogisticClassifier = @load LogisticClassifier pkg=MLJLinearModels verbosity=0

lc = LogisticClassifier()

evaluate(lc, X, y,
        resampling=CV(shuffle=true),
        measures=[log_loss, accuracy],
        verbosity=0)



Internal error: encountered unexpected error in runtime:
ErrorException("unhandled Vararg")
error at .\error.jl:35
widenconst at .\compiler\typelattice.jl:342
unknown function (ip: 00000000a5aead76)
issimplertype at .\compiler\typelimits.jl:319
tmerge at .\compiler\typelimits.jl:362
abstract_apply at .\compiler\abstractinterpretation.jl:1304
abstract_call_known at .\compiler\abstractinterpretation.jl:1554
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2284
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call_known at .\compiler\abstractinterpretation.jl:1549 [inlined]
abstract_iteration at .\compiler\abstractinterpretation.jl:1143
precise_container_type at .\compiler\abstractinterpretation.jl:1131
abstract_apply at .\compiler\abstractinterpretation.jl:1248
abstract_call_known at .\compiler\abstractinterpretation.jl:1554
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2284
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2284
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call at .\compiler\abstractinterpretation.jl:1722
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2284
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call at .\compiler\abstractinterpretation.jl:1722
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:151
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2310
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_edge at .\compiler\typeinfer.jl:876
abstract_call_method at .\compiler\abstractinterpretation.jl:632
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:156
abstract_call_known at .\compiler\abstractinterpretation.jl:1666
abstract_call at .\compiler\abstractinterpretation.jl:1724
abstract_call at .\compiler\abstractinterpretation.jl:1703
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1845
typeinf_local at .\compiler\abstractinterpretation.jl:2284
typeinf_nocycle at .\compiler\abstractinterpretation.jl:2406
_typeinf at .\compiler\typeinfer.jl:230
typeinf at .\compiler\typeinfer.jl:213
typeinf_ext at .\compiler\typeinfer.jl:957
typeinf_ext_toplevel at .\compiler\typeinfer.jl:990
typeinf_ext_toplevel at .\compiler\typeinfer.jl:986
jfptr_typeinf_ext_toplevel_15844.clone_1 at D:\Programs\julia-1.8.0-beta3\lib\julia\sys.dll (unknown line)
_jl_invoke at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2358 [inlined]
ijl_apply_generic at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2540 [inlined]
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1831 [inlined]
jl_type_infer at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:319
jl_generate_fptr_impl at /cygdrive/c/buildbot/worker/package_win64/build/src\jitlayers.cpp:314
jl_compile_method_internal at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2072
jl_compile_method_internal at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2019 [inlined]
_jl_invoke at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2350 [inlined]
ijl_apply_generic at /cygdrive/c/buildbot/worker/package_win64/build/src\gf.c:2540
evaluate! at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:1190
unknown function (ip: 00000000a5aea000)
evaluate! at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:1261
unknown function (ip: 00000000a5ae4ee7)
#evaluate!#276 at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:948
evaluate!##kw at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:913
unknown function (ip: 00000000a5ae2b54)
#evaluate#277 at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:961
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1831 [inlined]
do_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:725
evaluate##kw at E:\.julia\packages\MLJBase\rMXo2\src\resampling.jl:961
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1831 [inlined]
do_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:126
eval_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:215
eval_stmt_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:166 [inlined]
eval_body at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:594
jl_interpret_toplevel_thunk at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:750
top-level scope at In[37]:9
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:906
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:850
ijl_toplevel_eval at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
include_string at .\loading.jl:1277
softscope_include_string at E:\.julia\packages\SoftGlobalScope\u4UzH\src\SoftGlobalScope.jl:65
execute_request at E:\.julia\packages\IJulia\AQu2H\src\execute_request.jl:67
unknown function (ip: 00000000b9f7066a)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1831 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:769
#invokelatest#2 at .\essentials.jl:729 [inlined]
invokelatest at .\essentials.jl:727 [inlined]
eventloop at E:\.julia\packages\IJulia\AQu2H\src\eventloop.jl:8
#15 at .\task.jl:482
unknown function (ip: 000000005d1ff2a3)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1831 [inlined]
start_task at /cygdrive/c/buildbot/worker/package_win64/build/src\task.c:931


PerformanceEvaluation object with these fields:
  measure, measurement, operation, per_fold,
  per_observation, fitted_params_per_fold,
  report_per_fold, train_test_pairs
Extract:
┌────────────────────────────┬─────────────┬──────────────┬─────────────────────
│ measure                    │ measurement │ operation    │ per_fold           ⋯
├────────────────────────────┼─────────────┼──────────────┼─────────────────────
│ LogLoss(tol = 2.22045e-16) │ 0.689       │ predict      │ [0.777, 0.699, 0.6 ⋯
│ Accuracy()                 │ 0.873       │ predict_mode │ [0.76, 0.88, 0.92, ⋯
└────────────────────────────┴─────────────┴──────────────┴─────────────────────
julia> versioninfo()
Julia Version 1.8.0-beta3
Commit 3e092a2521 (2022-03-29 15:42 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 12 virtual cores
Environment:
  JULIA_DEPOT_PATH = E:\.julia
  JULIA_SSL_CA_ROOTS_PATH =

@eisthf eisthf changed the title Julia (1.8.3-beta3) compiler errors when I evaluate a model using MLJ package. Julia (1.8.0-beta3) compiler errors when I evaluate a model using MLJ package. Apr 13, 2022
@goerch
Copy link

goerch commented Apr 13, 2022

Same problem occurs on

Julia Version 1.9.0-DEV.368
Commit 802054903e (2022-04-12 05:25 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 12 on 12 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 12

More specifically I see

[ Info: Precompiling MLJLinearModels [6ee0df7b-362f-4a72-a706-9e79364fb692]
Internal error: encountered unexpected error in runtime:
ErrorException("unhandled Vararg")
error at .\error.jl:35
widenconst at .\compiler\typelattice.jl:342

Another version check: Julia-1.8.0-beta1 seems to be fine.

@DilumAluthge
Copy link
Member

Possibly related to #42583 and/or #42901?

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

Successfully merging a pull request may close this issue.

5 participants