import Images win10 下 出错


#1

julia> import Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
reset_page at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:912 [inlined]
add_page at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:932
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:994 [inlined]
jl_gc_alloc_ at /home/Administrator/buildbot/worker/package_win64/build/src\julia_internal.h:274 [inlined]
jl_gc_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2668
jl_new_struct at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:761
simple_join at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:348 [inlined]
var_gt at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:547
subtype_tuple at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:856 [inlined]
subtype at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:997
subtype_unionall at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:638
subtype at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:967
exists_subtype at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:1078 [inlined]
forall_exists_subtype at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:1106
jl_subtype_env at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:1166
jl_type_intersection_env_s at /home/Administrator/buildbot/worker/package_win64/build/src\subtype.c:2324
jl_typemap_intersection_node_visitor at /home/Administrator/buildbot/worker/package_win64/build/src\typemap.c:480
ml_matches at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2518
jl_matching_methods at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1730
unknown function (ip: 0000000005143B0A)
unknown function (ip: 000000000514E467)
unknown function (ip: 000000000514F55F)
unknown function (ip: 00000000051506C9)
unknown function (ip: 000000000507B158)
unknown function (ip: 000000000507C28A)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005094B0C)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 0000000005077FED)
unknown function (ip: 0000000005078E3B)
unknown function (ip: 000000000507BFFD)
unknown function (ip: 000000000508B779)
unknown function (ip: 000000000508C884)
unknown function (ip: 000000000508DE54)
unknown function (ip: 0000000005090FAB)
unknown function (ip: 000000000509738C)
unknown function (ip: 000000000514FF0E)
unknown function (ip: 00000000051512D9)
unknown function (ip: 0000000005151CA8)
unknown function (ip: 00000000051520C9)
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
jl_apply_with_saved_exception_state at /home/Administrator/buildbot/worker/package_win64/build/src\rtutils.c:257
jl_type_infer at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:275
jl_compile_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1784 [inlined]
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1828
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
jl_f__apply at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:556
jl_f__apply_latest at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:594
unknown function (ip: 000000000518FEED)
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
true_main at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:112
wmain at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:233
_tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:329
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:212
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
reset_page at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:912 [inlined]
add_page at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:932
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:994 [inlined]
jl_gc_alloc
at /home/Administrator/buildbot/worker/package_win64/build/src\julia_internal.h:274 [inlined]
jl_gc_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2668

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ffd6215a388 – RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
in expression starting at no file:0
RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at D:\Julia-1.0.0\bin\libgcc_s_seh-1.dll (unknown line)
_cxa_throw at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
Znwy at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
ZN4llvm9DWARFUnit42determineStringOffsetsTableContributionDWOERNS_18DWARFDataExtractorEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZNK4llvm9DWARFUnit19extractDIEsToVectorEbbRSt6vectorINS_19DWARFDebugInfoEntryESaIS2_EE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit23getSubroutineForAddressEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit25getInlinedChainForAddressEyRNS_15SmallVectorImplINS_8DWARFDieEEE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ffd6215a388 – RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
in expression starting at no file:0
RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at D:\Julia-1.0.0\bin\libgcc_s_seh-1.dll (unknown line)
cxa_throw at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
Znwy at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
ZNSt6vectorIN4llvm28DWARFAbbreviationDeclarationESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT
at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm31DWARFAbbreviationDeclarationSet7extractENS_13DataExtractorEPj at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZNK4llvm16DWARFDebugAbbrev29getAbbreviationDeclarationSetEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZNK4llvm9DWARFUnit16getAbbreviationsEv at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm10FrameEntry17parseInstructionsENS_13DataExtractorEPjj at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit42determineStringOffsetsTableContributionDWOERNS_18DWARFDataExtractorEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZNK4llvm9DWARFUnit19extractDIEsToVectorEbbRSt6vectorINS_19DWARFDebugInfoEntryESaIS2_EE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit8getDWOIdEv at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit25getInlinedChainForAddressEyRNS_15SmallVectorImplINS_8DWARFDieEEE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc

signal (22): SIGABRT
in expression starting at no file:0
crt_sig_handler at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\signals-win.c:92
raise at C:\WINDOWS\System32\msvcrt.dll (unknown line)
abort at C:\WINDOWS\System32\msvcrt.dll (unknown line)
ZN9__gnu_cxx27__verbose_terminate_handlerEv at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
ZGTtNSt16invalid_argumentD1Ev at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
ZSt9terminatev at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
_cxa_throw at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
Znwy at D:\Julia-1.0.0\bin\libstdc+±6.dll (unknown line)
ZN4llvm9DWARFUnit42determineStringOffsetsTableContributionDWOERNS_18DWARFDataExtractorEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZNK4llvm9DWARFUnit19extractDIEsToVectorEbbRSt6vectorINS_19DWARFDebugInfoEntryESaIS2_EE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit23getSubroutineForAddressEy at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm9DWARFUnit25getInlinedChainForAddressEyRNS_15SmallVectorImplINS_8DWARFDieEEE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at D:\Julia-1.0.0\bin\LLVM.dll (unknown line)
ERROR: LoadError: Failed to precompile CoordinateTransformations [150eb455-5306-5404-9cee-2592286d6298] to C:\Users\thinkpad.julia\compiled\v1.0\CoordinateTransformations\5md09.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834
[8] include at .\boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1038
[10] include(::Module, ::String) at .\sysimg.jl:29
[11] top-level scope at none:2
[12] eval at .\boot.jl:319 [inlined]
[13] eval(::Expr) at .\client.jl:389
[14] top-level scope at .\none:3
in expression starting at C:\Users\thinkpad.julia\packages\ImageTransformations\a2bDP\src\ImageTransformations.jl:4
ERROR: LoadError: Failed to precompile ImageTransformations [02fcd773-0e25-5acc-982a-7f6622650795] to C:\Users\thinkpad.julia\compiled\v1.0\ImageTransformations\Pfac4.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834
[8] include at .\boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1038
[10] include(::Module, ::String) at .\sysimg.jl:29
[11] top-level scope at none:2
[12] eval at .\boot.jl:319 [inlined]
[13] eval(::Expr) at .\client.jl:389
[14] top-level scope at .\none:3
in expression starting at C:\Users\thinkpad.julia\packages\Images\i5RxR\src\Images.jl:47
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to C:\Users\thinkpad.julia\compiled\v1.0\Images\H8Vxc.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834


#2

建议重装这个库,这个错误大多是在build的时候被打断导致的。

(v1.0) pkg> rm Images

(v1.0) pkg> gc

(v1.0) pkg> add Images

(v1.0) pkg> precompile