Julia regularly crashing when trying to use packages

  • I think I have my firewall active for this. I just disabled it and tried again but I still get errors. Although here it just crashed out without saying anything…
C:\Users\User>julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.4 (2024-06-04)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> activate --temp
  Activating new project at `C:\Users\User\AppData\Local\Temp\jl_fcZPWv`

(jl_fcZPWv) pkg> add ClassicalOrthogonalPolynomials
   Resolving package versions...
ERROR: Could not parse compatibility version for dependency `julia`

(jl_fcZPWv) pkg> add ClassicalOrthogonalPolynomials
   Resolving package versions...

C:\Users\User>julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.4 (2024-06-04)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> activate --temp
  Activating new project at `C:\Users\User\AppData\Local\Temp\jl_1oBOM6`

(jl_1oBOM6) pkg> add ClassicalOrthogonalPolynomials
   Resolving package versions...
    Updating `C:\Users\User\AppData\Local\Temp\jl_1oBOM6\Project.toml`
  [b30e2e7b] + ClassicalOrthogonalPolynomials v0.13.2
    Updating `C:\Users\User\AppData\Local\Temp\jl_1oBOM6\Manifest.toml`
  [621f4979] + AbstractFFTs v1.5.0
  [4c555306] + ArrayLayouts v1.9.4
  [aae01518] + BandedMatrices v1.7.2
  [8e7c35d0] + BlockArrays v1.1.0
  [ffab5731] + BlockBandedMatrices v0.13.1
  [49dc2e85] + Calculus v0.5.1
  [b30e2e7b] + ClassicalOrthogonalPolynomials v0.13.2
  [34da2185] + Compat v4.15.0
  [b152e2b5] + CompositeTypes v0.1.4
  [187b0558] + ConstructionBase v1.5.5
  [7ae1f121] + ContinuumArrays v0.18.2
  [717857b8] + DSP v0.7.9
  [ffbed154] + DocStringExtensions v0.9.3
  [5b8099bc] + DomainSets v0.7.14
  [fa6b7ba4] + DualNumbers v0.6.8
  [7a1cc6ca] + FFTW v1.8.0
  [442a2c76] + FastGaussQuadrature v1.0.2
  [057dd010] + FastTransforms v0.16.2
  [1a297f60] + FillArrays v1.11.0
  [a8297547] + GenericFFT v0.1.6
  [34004b35] + HypergeometricFunctions v0.3.23
  [4858937d] + InfiniteArrays v0.14.1
  [cde9dba0] + InfiniteLinearAlgebra v0.8.3
  [e1ba4f0e] + Infinities v0.1.8
  [8197267c] + IntervalSets v0.7.10
  [92d709cd] + IrrationalConstants v0.2.2
  [c8e1da08] + IterTools v1.10.0
  [692b3bcd] + JLLWrappers v1.5.0
  [5078a376] + LazyArrays v2.0.4
  [d7e5e226] + LazyBandedMatrices v0.10.1
  [2ab3a3ac] + LogExpFunctions v0.3.28
  [1914dd2f] + MacroTools v0.5.13
  [a3b82374] + MatrixFactorizations v3.0.0
  [77ba4419] + NaNMath v1.0.2
  [f27b6e38] + Polynomials v4.0.11
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [c4ea9172] + QuasiArrays v0.11.5
  [3cdcf5f2] + RecipesBase v1.3.4
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [f8ebbe35] + SemiseparableMatrices v0.4.0
  [efcf1570] + Setfield v1.1.1
  [276daf66] + SpecialFunctions v2.4.0
  [90137ffa] + StaticArrays v1.9.5
  [1e83bf80] + StaticArraysCore v1.4.3
  [c751599d] + ToeplitzMatrices v0.8.3
  [f5851436] + FFTW_jll v3.3.10+0
  [34b6f7d7] + FastTransforms_jll v0.6.2+0
  [1d5cc7b8] + IntelOpenMP_jll v2024.1.0+0
  [1d63c593] + LLVMOpenMP_jll v15.0.7+0
  [856f044c] + MKL_jll v2024.1.0+0
  [efe28fd5] + OpenSpecFun_jll v0.5.5+0
  [1317d2d5] + oneTBB_jll v2021.12.0+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
  [781609d7] + GMP_jll v6.2.1+6
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [3a97d323] + MPFR_jll v4.2.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [05823500] + OpenLibm_jll v0.8.1+2
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2

C:\Users\User>
  • I’m on my home network. Any suggestions how I could diagnose any potential issues? Just running the network troubleshooter shows no problems.
  • I’ve had my antivirus disabled during all this while trying to figure this all out, so I don’t think that would be it.
  • I tried using chkdsk /r /f /x and also sfc /scannow to check for issues, and also the Windows Memory Diagnostic tool. sfc /scannow said it fixed some corrupted files but the issues still persist… the other two diagnostics showed no issues. Any other tools I can use to check this?

Are the corrupted files related to Julia? Why are there corrupted files?

I’m getting a little worried about hard drive failure. Why kind of hard drive do you have?

Do you have any pending driver updates?

Are all these issues isolated to Julia or are you experiencing issues with any other programs?

1 Like

Looking at the logs, there seem to be the corrupted files

2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Corrupt file: C:\Windows\System32\drivers\BthA2dp.sys
2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Repaired file: C:\Windows\System32\drivers\BthA2dp.sys
2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Corrupt file: C:\Windows\System32\drivers\BthHfEnum.sys
2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Repaired file: C:\Windows\System32\drivers\BthHfEnum.sys
2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Corrupt file: C:\Windows\System32\drivers\bthmodem.sys
2024-06-19 14:02:25, Info                  DEPLOY [Pnp] Repaired file: C:\Windows\System32\drivers\bthmodem.sys

I don’t know what these files are or how to really tell what’s going on. My knowledge about this kinda stuff is very minimal unfortunately :confused:

I have no pending updates.

Are all these issues isolated to Julia or are you experiencing issues with any other programs?

Initially I’ve only been having issues with Julia. But now that I’ve run these diagnostics my browser keeps crashing too and I’ve gotten a BSOD twice… so maybe it’s not related to Julia. But I’m at a complete loss of what to do here.

Why kind of hard drive do you have?

Does this image tell you? I’ve had this computer setup for a while now I’m not 100% sure.

Did you start using any new Bluetooth or wireless accessories lately?

1 Like

No, haven’t made any changes to my setup recently.

I am starting to strongly suspect malware. Something appears to be trying to tamper with your networking stack. If there was nothing you did recently to trigger this, then I think we may need to consider that possibility.

1 Like

Interesting… trying to think of what I could’ve done recently that might’ve caused this, but nothing comes to mind. I was contemplating doing a factory reset but was thinking previously that if it were a hard drive issue, that a reset probably wouldn’t fix it. Do you think a reset would be worth it at this point?

I don’t use Windows much these days, but I will typically use CCleaner to help maintain my installation. One of the nicer things it does is help clean up the Windows Registry. But some words of warning: CCleaner is kind of spammy in that it may try to install 3rd party apps you don’t need/want and it is very pushy about the “professional” version that is unnecessary.

I’m not sure sure other people’s opinion on it, but it would be worth a try to clean up your system with it before doing any kind of full reset. I would just try to avoid the professional version and definitely turn off “run ccleaner on start up” or just uninstall after using it.

1 Like

Didn’t seem to make any difference unfortunately. Appreciate the suggestion though

yeah, it was a bit of a long shot…

1 Like

Thanks @mihalybaci and @mkitti. Meant to reply back to this that indeed the computer was having significant issues unrelated to Julia. Computer’s pretty dead now unfortunately. Appreciate all the help!

Me too.

You’ll probably want to make a new thread for your problem. For me my solution was to just be forced to get a new computer as the old one died.