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

ReadOnlyMemoryError when precompiling #39396

Closed
jaakkor2 opened this issue Jan 25, 2021 · 7 comments
Closed

ReadOnlyMemoryError when precompiling #39396

jaakkor2 opened this issue Jan 25, 2021 · 7 comments

Comments

@jaakkor2
Copy link
Contributor

Steps to reproduce, now four times in a row

  • remove .julia/compiled/v1.6
  • ]precompile
julia> versioninfo()
Julia Version 1.6.0-beta1.0
Commit b84990e1ac (2021-01-08 12:42 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-beta1.0 (2021-01-08)
 _/ |\__'_|_|_|\__'_|  |  release-1.6/b84990e1ac (fork: 107 commits, 47 days)
|__/                   |

(@v1.6) pkg> precompile
Precompiling project...
  Progress [==========>                              ]  70/280
  ✗ TimerOutputs
  ✗ MutableArithmetics
  ✗ Lz4_jll
  ✗ RecipesBase
  ◑ Infiltrator
  ✗ SignedDistanceFields
  ✗ ModernGL
  ✗ Match
  ◐ Compat
  ◓ Distances
  ✓ NaNMath
  ◒ Requires
  ◐ SentinelArrays
  ◑ AbstractTrees
  ◓ LibSpatialIndex
  ◑ Mocking
  ◓ Xorg_libXau_jll
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
jlbacktrace at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_gc_alloc at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_gdb_dump_threadinfo at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_array_copy at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
copy at .\array.jl:349
batch_inline! at .\compiler/ssair\inlining.jl:535
ssa_inlining_pass! at .\compiler/ssair\inlining.jl:71
jfptr_ssa_inlining_passNOT._9828.clone_1 at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\lib\julia\sys.dll (unknown line)
run_passes at .\compiler/ssair\driver.jl:128
optimize at .\compiler\optimize.jl:277 [inlined]
_typeinf at .\compiler\typeinfer.jl:239
typeinf at .\compiler\typeinfer.jl:211
abstract_call_method_with_const_args at .\compiler\abstractinterpretation.jl:319
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:166
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_apply at .\compiler\abstractinterpretation.jl:727
abstract_call_known at .\compiler\abstractinterpretation.jl:934
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call at .\compiler\abstractinterpretation.jl:1036
abstract_apply at .\compiler\abstractinterpretation.jl:727
abstract_call_known at .\compiler\abstractinterpretation.jl:934
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_apply at .\compiler\abstractinterpretation.jl:727
abstract_call_known at .\compiler\abstractinterpretation.jl:934
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call at .\compiler\abstractinterpretation.jl:1036
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1383
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_apply at .\compiler\abstractinterpretation.jl:727
abstract_call_known at .\compiler\abstractinterpretation.jl:934
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_apply at .\compiler\abstractinterpretation.jl:727
abstract_call_known at .\compiler\abstractinterpretation.jl:934
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_edge at .\compiler\typeinfer.jl:745
abstract_call_method at .\compiler\abstractinterpretation.jl:478
abstract_call_gf_by_type at .\compiler\abstractinterpretation.jl:141
abstract_call_known at .\compiler\abstractinterpretation.jl:1015
abstract_call at .\compiler\abstractinterpretation.jl:1038
abstract_call at .\compiler\abstractinterpretation.jl:1022
abstract_eval_statement at .\compiler\abstractinterpretation.jl:1144
typeinf_local at .\compiler\abstractinterpretation.jl:1398
typeinf_nocycle at .\compiler\abstractinterpretation.jl:1454
_typeinf at .\compiler\typeinfer.jl:216
typeinf at .\compiler\typeinfer.jl:211
typeinf_ext at .\compiler\typeinfer.jl:835
typeinf_ext_toplevel at .\compiler\typeinfer.jl:868
typeinf_ext_toplevel at .\compiler\typeinfer.jl:864
jfptr_typeinf_ext_toplevel_13768.clone_1 at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\lib\julia\sys.dll (unknown line)
jl_type_infer at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_generate_fptr at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_get_unspecialized at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_apply_generic at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
_spawn_primitive at .\process.jl:99
#636 at .\process.jl:112 [inlined]
setup_stdios at .\process.jl:196
_spawn at .\process.jl:111 [inlined]
_spawn at .\process.jl:139
_spawn at .\process.jl:139
#open#645 at .\process.jl:374
open##kw at .\process.jl:361 [inlined]
open at .\process.jl:343
unknown function (ip: 000000005e9339f8)
create_expr_cache at .\loading.jl:1244
compilecache at .\loading.jl:1322
#212 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1125
unknown function (ip: 000000005e951003)
with_logstate at .\logging.jl:491
with_logger at .\logging.jl:603 [inlined]
macro expansion at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1124 [inlined]
#209 at .\task.jl:406
unknown function (ip: 000000005e94e453)
jl_finish_task at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)

[process exited with code 3221225477]

another one

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-beta1.0 (2021-01-08)
 _/ |\__'_|_|_|\__'_|  |  release-1.6/b84990e1ac (fork: 107 commits, 47 days)
|__/                   |

(@v1.6) pkg> precompile
Precompiling project...
  Progress [=======================>                 ]  155/279
  ✗ Latexify
  ✗ Setfield
  ✗ Pixman_jll
  ✗ DataStructures
  ✗ BufferedStreams
  ✗ JSON3
  ✗ JSON
  ✗ LeftChildRightSiblingTrees
  ✗ MbedTLS
  ✗ LibSSH2_jll
  ✗ CodecZlib
  ✗ ZipFile
  ✗ libpng_jll
  ◒ Blosc_jll
  ✗ Libtiff_jll
  ◓ HDF5_jll
  ✗ CodecBzip2
  ✗ FreeType2_jll
  ✗ libvorbis_jll
  ✗ Hwloc
  ✗ XML2_jll
  ✗ Colors
  ✗ Tables
  ✗ ExponentialUtilities
  ✗ PaddedViews
  ✗ QuadGK
  ◓ LightGraphs
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ffacbbba719 --

third one

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-beta1.0 (2021-01-08)
 _/ |\__'_|_|_|\__'_|  |  release-1.6/b84990e1ac (fork: 107 commits, 47 days)
|__/                   |

(@v1.6) pkg> precompile
Precompiling project...
  Progress [===========>                             ]  73/280
  ✗ MKL_jll
  ✗ Parsers
  ◐ MutableArithmetics
  ✗ SignedDistanceFields
  ◐ ModernGL
  ◑ SentinelArrays
  ✓ AbstractTrees
  ◒ LibSpatialIndex
  ◐ Mocking
  ◒ Xorg_libXau_jll
  ◒ Libffi_jll
  ◒ Pixman_jll
  ◐ Expat_jll
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
jlbacktrace at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_gc_alloc at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_alloc_string at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_array_grow_end at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
unknown function (ip: 000000000fb2b363)
unknown function (ip: 000000000fb0569a)
unknown function (ip: 000000000f311f2a)
unknown function (ip: 000000000f3120c7)
unknown function (ip: 000000000fafbbfb)
unknown function (ip: 000000000f98a84f)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f985f59)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000faf77cc)
unknown function (ip: 000000000fd1d791)
unknown function (ip: 000000000f5ee275)
unknown function (ip: 000000000fb1e8eb)
unknown function (ip: 000000000fb1c086)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f985f59)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000faf77cc)
unknown function (ip: 000000000fd1d791)
unknown function (ip: 000000000fb22549)
unknown function (ip: 000000000fb1bb46)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000faf77cc)
unknown function (ip: 000000000fd1d791)
unknown function (ip: 000000000fb22549)
unknown function (ip: 000000000fb1bb46)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000fd1e42f)
unknown function (ip: 000000000fafa70c)
unknown function (ip: 000000000f971cbd)
unknown function (ip: 000000000fb1c453)
unknown function (ip: 000000000f61733a)
unknown function (ip: 000000000f616c1b)
unknown function (ip: 000000000fb16172)
unknown function (ip: 000000000f984d00)
unknown function (ip: 000000000f9880de)
unknown function (ip: 000000000f989ec0)
unknown function (ip: 000000000fd1737a)
unknown function (ip: 000000000faf11d5)
unknown function (ip: 000000000f327fb4)
unknown function (ip: 000000000f32755b)
unknown function (ip: 000000000f327598)
jl_type_infer at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_generate_fptr at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_get_unspecialized at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_apply_generic at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
unknown function (ip: 000000000fa73761)
unknown function (ip: 000000000fa72b7e)
unknown function (ip: 000000000fd295cd)
unknown function (ip: 000000000fd295dc)
#open#645 at .\process.jl:374
open##kw at .\process.jl:361 [inlined]
open at .\process.jl:343
unknown function (ip: 000000005e8939f8)
create_expr_cache at .\loading.jl:1244
compilecache at .\loading.jl:1322
#212 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1125
unknown function (ip: 000000005e8b0923)
unknown function (ip: 000000000f73cb5d)
with_logger at .\logging.jl:603 [inlined]
macro expansion at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1124 [inlined]
#209 at .\task.jl:406
unknown function (ip: 000000005e8add73)
jl_finish_task at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)

[process exited with code 3221225477]

fourth

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-beta1.0 (2021-01-08)
 _/ |\__'_|_|_|\__'_|  |  release-1.6/b84990e1ac (fork: 107 commits, 47 days)
|__/                   |

(@v1.6) pkg> precompile
Precompiling project...
  Progress [============>                            ]  78/280
  ✗ Parsers
  ✗ TimerOutputs
  ◒ MutableArithmetics
  ✗ Compat
  ✗ AbstractTrees
  ✓ Xorg_libXau_jll
  ◑ Libffi_jll
  ◑ Pixman_jll
  ◒ Expat_jll
  ◑ LZO_jll
  ◒ MbedTLS_jll
  ◑ LibVPX_jll
  ◑ LAME_jll
  ◑ Libgpg_error_jll
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
jlbacktrace at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_gc_alloc at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_new_struct_uninit at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_init_processor_sysimg at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_init_processor_sysimg at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_init_processor_sysimg at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_uncompress_ir at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
unknown function (ip: 000000000fcb71e2)
unknown function (ip: 000000000fa911b6)
unknown function (ip: 000000000f2c7fb4)
unknown function (ip: 000000000f2c755b)
unknown function (ip: 000000000f2c7598)
jl_type_infer at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_generate_fptr at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_get_unspecialized at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
jl_apply_generic at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
macro expansion at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1160 [inlined]
#209 at .\task.jl:406
unknown function (ip: 000000006108dd83)
jl_finish_task at C:\Users\jaakkor2\AppData\Local\Programs\Julia-1.6.0-beta1\bin\libjulia-internal.dll (unknown line)
┌ Error: Pkg.precompile error
│   exception =
│    ReadOnlyMemoryError()
│    Stacktrace:
│     [1] create_expr_cache(pkg::Base.PkgId, input::String, output::String, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, internal_stderr::IOBuffer, internal_stdout::Base.DevNull)
  Progress [=============>                           ]  85/280
  ✗ Parsers
  ✗ TimerOutputs
  ✗ MutableArithmetics
  ✗ Compat
  ✗ AbstractTrees
  ✗ Libffi_jll
  ◐ LZO_jll
  ◐ LibVPX_jll
  ✗ LAME_jll
  ✗ Libgpg_error_jll
  ◓ EarCut_jll
  ◐ Libgcrypt_jll
  ◐ Xorg_libXdmcp_jll
  ◐ libfdk_aac_jll
  ◒ Opus_jll
  ◑ FFTW_jll
  ◑ JpegTurbo_jll
  ◐ Xorg_libpthread_stubs_jll
  ◐ x264_jll
  ◑ Zlib_jll
  ◒ CompilerSupportLibraries_jll
  ◑ Zstd_jll
  ◓ METIS_jll
  ◓ MbedTLS
  ◐ LibSSH2_jll
  ◐ Xorg_xtrans_jll
  ◐ Libtiff_jll
  ◐ x265_jll
  ◒ OpenSSL_jll
  ◐ Hwloc_jll
  ◑ Blosc_jll
  ◒ CodecZlib
  ◑ ZipFile
  ◐ libpng_jll
  ◑ Bzip2_jll
  ◒ OpenBLAS32_jll
  ◓ MUMPS_seq_jll
  ◒ OpenSpecFun_jll
  ◐ Libmount_jll
  ◒ Ogg_jll
  ◓ ASL_jll
  ◐ HTTP
  ◑ FriBidi_jll
  ◐ Libiconv_jll
  ◐ PCRE_jll
  ◑ ZeroMQ_jll
  ◐ Libuuid_jll
  ◐ HDF5_jll
  ◒ GEOS_jll
  ◐ Hwloc
  ◓ IntervalSets
  ◑ Blosc
  ◓ Missings
  ◐ PooledArrays
  ◑ Rmath
  ◐ Parameters
  ◒ CodecBzip2
  ◑ FreeType2_jll
  ◐ libass_jll
  ◒ CommonSubexpressions
  ◑ ZygoteRules
  ◓ Ipopt_jll
  ◒ SimpleTraits
  ◒ SpecialFunctions
  ◓ Isoband
  ◒ ColorTypes
  ◐ libvorbis_jll
  ◓ MappedArrays
  ◒ OffsetArrays
  ◓ AxisAlgorithms
  ◒ Showoff
  ◐ XML2_jll
  ◓ MKL_jll
  ◐ TableTraits
  ◑ ZMQ
  ◑ JSON3
  ◑ JSON
  ◐ HDF5
  ◓ IterativeSolvers
  ◒ GeoInterface
  ◐ DataStructures
  ◑ BufferedStreams
  ◑ NearestNeighbors
  ◐ DiffResults
  ◒ Contour
  ◓ ArrayInterface
  ◓ ExponentialUtilities
  ◑ Revise
  ◑ FreeType
  ◑ Fontconfig_jll
  ◐ Latexify
  ◒ Setfield
  ◐ LeftChildRightSiblingTrees
  ◑ RecursiveArrayTools
  ◒ StatsFuns
  ◐ DiffRules
  ◒ Colors
  ◒ ColorSchemes
  ◓ Interpolations
  ◐ PaddedViews
  ◓ EzXML
  ◒ Wayland_jll
  ◐ XSLT_jll
  ◒ Gettext_jll
  ◑ FFTW
  ◐ Tables
  ◒ GLTF
  ◑ BenchmarkTools
  ◒ Conda
  ◒ ColorBrewer
  ◒ CategoricalArrays
  ◑ JSONSchema
  ◐ Documenter
  ◓ MAT
  ◐ LibGEOS
  ◓ QuadGK
  ◐ LightGraphs
  ◒ SortingAlgorithms
  ◒ StatsBase
  ◑ JLD2
  ◑ ForwardDiff
  ◐ LabelledArrays
  ◑ FiniteDiff
  ◑ VectorizationBase
  ◐ TerminalLoggers
  ◓ Animations
  ◒ Graphics
  ◐ PlotUtils
  ◓ MosaicViews
  ◐ TimeZones
  ◒ Wayland_protocols_jll
  ◐ Xorg_libxcb_jll
  ◒ Glib_jll
  ◐ XLSX
  ◒ CSV
  ◐ PrettyTables
  ◒ StructArrays
  ◒ GeometryBasics
  ◓ MathOptInterface
  ◐ PyCall
  ◓ IJulia
  ◑ VertexSafeGraphs
  ◐ DataFrames
  ◒ ColorVectorSpace
  ◐ Distributions
  ◑ JuMP
  ◒ SparseDiffTools
  ◑ NonlinearSolve
  ◑ NLSolversBase
  ◒ SLEEFPirates
  ◐ PlotThemes
  ◑ RecipesPipeline
  ◓ ImageCore
  ◓ Intervals
  ◐ Xorg_libX11_jll
  ◐ Xorg_xcb_util_jll
  ◒ ShaderAbstractions
  ◐ Packing
  ◒ GridLayoutBase
  ◓ MeshIO
  ◓ Ipopt
  ◐ PyPlot
  ◑ FreeTypeAbstraction
  ◒ KernelDensity
  ◐ LineSearches
  ◐ LoopVectorization
  ◑ Netpbm
  ◐ PNGFiles
  ◐ Polynomials
  ◐ Xorg_libxkbfile_jll
  ◐ Xorg_libXfixes_jll
  ◐ Xorg_libXext_jll
  ◐ Xorg_libXrender_jll
  ◐ Xorg_xcb_util_image_jll
  ◐ Xorg_xcb_util_keysyms_jll
  ◐ Xorg_xcb_util_wm_jll
  ◐ Xorg_xcb_util_renderutil_jll
  ◒ Optim
  ◑ NLsolve
  ◑ RecursiveFactorization
  ◓ ImageIO
  ◐ DSP
  ◐ Xorg_xkbcomp_jll
  ◐ Xorg_libXcursor_jll
  ◐ Xorg_libXrandr_jll
  ◐ Xorg_libXi_jll
  ◐ Xorg_libXinerama_jll
  ◐ Libglvnd_jll
  ◐ DiffEqBase
  ◐ Xorg_xkeyboard_config_jll
  ◒ GLFW_jll
  ◒ OrdinaryDiffEq
  ◐ xkbcommon_jll
  ◒ GLFW
  ◓ Qt_jll
@vchuravy
Copy link
Member

Can I ask you how much RAM you have? Can you open the task-manager and see if you are running out of RAM while you are precompiling?

@jaakkor2
Copy link
Contributor Author

In this machine 16 GB. I rebooted, and precompiling 280 packages was successful twice. Task Manager shows memory usage less than 50%.

@IanButterworth
Copy link
Member

IanButterworth commented Jan 27, 2021

This is JuliaLang/Pkg.jl#2323

There's a workaround in there, by setting the number of tasks the precompiler uses to the number physical cores + 1 or fewer

@KristofferC
Copy link
Member

Should we default to that on Windows then?

@IanButterworth
Copy link
Member

It's a shame but I think we may have to. I don't think this hits a high percentage of windows users, but it's rather unfriendly when it happens. It'll just mean windows won't be at full speed, unless people experiment with pushing the number of tasks back up.

We could catch the error and tell the user to adjust the number of tasks.

@jebej
Copy link
Contributor

jebej commented Jan 28, 2021

Is there actually no way to debug this?

@jaakkor2
Copy link
Contributor Author

I believe this was fixed by JuliaLang/Pkg.jl#2366 .

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

5 participants