Skip to content

StackOverflowError when taking matrix exp with big matrix #2543

@daviehh

Description

@daviehh

Reduced to a minimum example:

using LinearAlgebra

t = 2.1
hx = rand(125, 125)
u = exp(-1im * hx * t)

println(u[1, 1])

running this script in julia repl (outside of vscode) is ok, but when run in vscode it errors with just

ERROR: LoadError: StackOverflowError:
in expression starting at /test/sof.jl:5

with no more info...

my julia versioninfo():

julia> versioninfo()
Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin21.1.0)
CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_MATHLINK = /Applications/Mathematica.app/Contents/Frameworks/mathlink.framework
JULIA_MATHKERNEL = /Applications/Mathematica.app/Contents/MacOS/MathKernel

julia-vscode: this issue is present in both the normal (v1.4.3) and insider version (v1.5.2)

Most likely not related to io or variable names, since the calculation above was originally inside a function with no prints, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions