-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
add package crashes with Exception violation when I try to add
any package
#41642
Comments
Seems this was introduced in JuliaLang/libuv@794bfdf, as NULL is documented as a valid result for the variable on that line, but that is not handled. |
Thanks @vtjnash |
I'm getting this error with the same steps running 1.6.3 or 1.6.4 portable on Windows 11. My PATH variable reflects my "install" location. If it will help, here's my output (first time posting, let me know if I broke any spoken or unspoken rules)...
|
win11 and win10, PCs and laptops. |
Note that someone reported what looks like the same issue recently with Julia 1.8.5. Is there a workaround in the meantime? Some way to prevent (On discourse, the OP worked around the problem from changing the tmp directory from a RAM disk back to the ordinary drive. Maybe the problem arises simply if you have a tmp directory on a volume that does not have enough space?) |
Thank you sooooooooo much for your reply!! |
And I just asked ChatGPT, It seems ramdisk do lock some part of memory, I will give it a check, if it can be solved I will feedback.
But the problem is I have done nothing on my PCs, before all work fine, but suddenly cannot work and I never update any software. |
Report: Cheers! |
I'm assuming this is fixed now? |
Ping. This is a top google result... should be closed or fixed ASAP. |
I have the same problem when trying to add any package on a Windows portable version of Julia 1.10 when I set the depot path to be inside the usb disk: C:\Users\bob>if not exist "D:\JuliaPortable\JuliaPkg1.10.5" mkdir D:\JuliaPortable\JuliaPkg1.10.5
C:\Users\bob>set JULIA_DEPOT_PATH=D:\JuliaPortable\JuliaPkg1.10.5
C:\Users\bob>D:\JuliaPortable\julia-1.10.5\bin\julia.exe
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.5 (2024-08-27)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.10) pkg> add PrecompileTools
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff891cb66b2 -- fs__chmod at /workspace/srcdir/libuv\src/win\fs.c:2372
in expression starting at none:0
fs__chmod at /workspace/srcdir/libuv\src/win\fs.c:2372
uv__fs_work at /workspace/srcdir/libuv\src/win\fs.c:3218
uv_fs_chmod at /workspace/srcdir/libuv\src/win\fs.c:3774
jl_fs_chmod at C:/workdir/src\jl_uv.c:461
#chmod#34 at .\file.jl:1155
chmod at .\file.jl:1154 [inlined]
#rm#10 at .\file.jl:280
rm at .\file.jl:273 [inlined]
tryrmopenfile at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:308
close at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:338
#mkpidlock#7 at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:95
mkpidlock at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:90 [inlined]
#mkpidlock#6 at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
mkpidlock at C:\workdir\usr\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
write_env_usage at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\Types.jl:545
EnvCache at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\Types.jl:383
EnvCache at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\Types.jl:362 [inlined]
Context at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\Types.jl:412
#add#27 at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\API.jl:150
add at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
jfptr_add_102626.1 at D:\JuliaPortable\julia-1.10.5\lib\julia\sys.dll (unknown line)
do_cmd! at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:412
#do_cmd#21 at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:390
do_cmd at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:380 [inlined]
#24 at C:\workdir\usr\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:557
jfptr_YY.24_104261.1 at D:\JuliaPortable\julia-1.10.5\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:812
#invokelatest#2 at .\essentials.jl:892 [inlined]
invokelatest at .\essentials.jl:889 [inlined]
run_interface at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\LineEdit.jl:2656
jfptr_run_interface_94754.1 at D:\JuliaPortable\julia-1.10.5\lib\julia\sys.dll (unknown line)
run_frontend at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:1312
#62 at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:386
jfptr_YY.62_95901.1 at D:\JuliaPortable\julia-1.10.5\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
start_task at C:/workdir/src\task.c:1238
Allocations: 1671861 (Pool: 1670529; Big: 1332); GC: 3
┌ Warning: failed to remove pidfile on close
│ path = "D:\\JuliaPortable\\JuliaPkg1.10.5\\logs\\manifest_usage.toml.pid"
│ removed = false
└ @ FileWatching.Pidfile D:\JuliaPortable\julia-1.10.5\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:342 Is there any workaround? |
I am facing the following exception when am trying to add any package with Julia.
Steps to reproduce
I get this with 1.6.2 , 1.5.4 as well as 1.7.0 beta .
I am on windows 10.
This occurs for any package.
Can some one help please?
The text was updated successfully, but these errors were encountered: