Surprising Error message

I have a script I wrote that calculates Temporal Reproductive Isolation which worked 6 months ago. It needs some tweaking but now when I run it I get:

ERROR: ArgumentError: invalid GenericMemory size: too large for system address width
Stacktrace:
 [1] GenericMemory
   @ .\boot.jl:516 [inlined]
 [2] Array
   @ .\boot.jl:578 [inlined]
 [3] Array
   @ .\boot.jl:591 [inlined]
 [4] zeros
   @ .\array.jl:578 [inlined]
 [5] zeros
   @ .\array.jl:575 [inlined]
 [6] zeros(dims::Int64)
   @ Base .\array.jl:573
 [7] CohortTable(cof::Vector{Any}, data::DataFrame)
   @ Main i:\Temporal Isolation\CohortTable.jl:11
 [8] top-level scope
   @ i:\Temporal Isolation\Temporal Isolation.jl:58

I have googled it and it seems to be related to an array with negative numbers or that the memory is filled up. I have 32gb of RAM with 25gb free so this shouldn’t be coming even close to filling that but that space. And again nothing has changed in the script itself and it didn’t fill up the memory then with the same dataset.

Running Julia 1.11.5 with all packages updated within the last week.

any thoughts?

How did you install Julia? What does versioninfo() show? And how big is that argument you’re passing to zeros on line 11 of your CohortTable.jl?

1 Like

How did you install Julia?

I honestly don’t know how I originally installed it back in Version 1.4 but likely through the package with the Atom IDE. I have been using the update UpdateJulia package since switching to VSCode in 2021 then to VSCodium in 2022.

What does versioninfo() show?

Julia Version 1.11.5
Commit 760b2e5b73 (2025-04-14 06:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 Ă— AMD Ryzen 7 5700G with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_VSCODE_REPL = 1

How big is that argument you’re passing to zeros on line 11?
Shouldn’t be any larger than 60 but that maybe where the issue is.