# Problems in 1.6.4 with IJulia. Downgrade to 1.6.3?

**URL:** <https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129>\
**Category:** Performance\
**Tags:** question, package, ijulia\
**Created:** [November 26, 2021, 7:03pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129 "2021-11-26T19:03:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 7:03pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/1 "2021-11-26T19:03:13Z")

</div>

I am having a problem with IJulia throwing `StackOverflowError:` in 1.6.4. I am pretty sure that I was having no problem in 1.6.3 and have tested the notebook in 1.6.1 with no problems.

Is there any way I can get 1.6.3 to see if there is or is not a problem with 1.6.3 and stick with that version if it works ok. The downloads page only offers 1.6.4 and I did not save 1.6.3. My copy of 1.6.1 was on a machine that I rarely use, and I’m lucky to have it.

This code that throws the exception is complicated and I do not have an MWE yet. All I know is that it uses FFTW and allocates only a modest (\< 100MB) amount of storage.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [November 26, 2021, 7:09pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/2 "2021-11-26T19:09:02Z")

</div>

Just try to modify the 1.6.4 download link, e.g.  
[https://julialang-s3.julialang.org/bin/winnt/x86/1.6/julia-1.6.3-win32.exe](https://julialang-s3.julialang.org/bin/winnt/x86/1.6/julia-1.6.3-win32.exe)  
works for me.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 7:12pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/3 "2021-11-26T19:12:00Z")

</div>

Thanks. The code works fine in the REPL under 1.6.4, but not in IJulia.

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [November 26, 2021, 7:29pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/4 "2021-11-26T19:29:07Z")

</div>

I had the same experience. My code worked with julia 1.6.4 in REPL but not in Juno / vscode. I had stackoverflow as well. I went back to 1.6.2

On a side note, this was on osx if it is of any help.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 7:32pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/5 "2021-11-26T19:32:17Z")

</div>

Yup. It was osx for me too. I’m not sure if it’s a 1.6.4 problem or a Monterey problem, but it is a problem. Given that it’s the two of us, perhaps 1.6.4 hates nonlinear solver work.

@rveltz ,were you able to come up with a MWE? Someone should file an issue if that someone could clearly identify the problem. That someone is not me, at least not yet.

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [November 26, 2021, 7:35pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/6 "2021-11-26T19:35:44Z")

</div>

I think it would be really helpful, if one of you could make minimum crashing example. Maybe it could become a test in some package to make sure we will get rid of this bug.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 7:39pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/7 "2021-11-26T19:39:19Z")

</div>

I am working on it, but it if happens in all of Juno/VScode/IJulia, it’ll be hard to find. If I make any progress I will post on this thread and file an issue, at least if I can figure out which package has the issue.

If the problem vanishes in 1.7, then it really does not matter.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [November 26, 2021, 8:07pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/8 "2021-11-26T20:07:43Z")

</div>

> [@ctkelley](#):
>
> If the problem vanishes in 1.7, then it really does not matter.

I don’t think this is true, after all 1.6 will still be the version with the Long Term Support label, so it may be worth it to attack and report bugs.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 26, 2021, 8:08pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/9 "2021-11-26T20:08:04Z")

</div>

In general all released are available on GitHub here:

[https://github.com/JuliaLang/julia/releases](https://github.com/JuliaLang/julia/releases)

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 8:18pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/10 "2021-11-26T20:18:10Z")

</div>

Fair enough.

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [November 26, 2021, 8:25pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/11 "2021-11-26T20:25:01Z")

</div>

If you have any code which works, but not in Juno: I’m in.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 26, 2021, 10:36pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/12 "2021-11-26T22:36:59Z")

</div>

Here you go. This

```julia
n=512; L=rand(n,n); z=rand(n); b=L\z;

```

runs in the REPL and in IJUlia with 1.6.3. I get the `StackOverflowError:` in IJulia under 1.6.4. Running Monterey.

@rveltz, can you try this in Juno/vscode and see what happens?

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [November 26, 2021, 10:51pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/13 "2021-11-26T22:51:45Z")

</div>

Wow, this is Juno/Atom on Windows 10:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/2/52b0d2062f5b3d18abe958adf7aab59b7f31cbea.png)

Sorry, should have been more specific: Juno/Atom. But I see your point (if IJulia is based on Juno?)!

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [November 26, 2021, 11:15pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/14 "2021-11-26T23:15:06Z")

</div>

On what foundations is IJulia built, VS Code or Atom/Juno?

---

<div class="post-metadata">

**Author:** ![blackeneth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blackeneth/32/10353_2.png) [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Post date:** [November 27, 2021, 4:00am UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/15 "2021-11-27T04:00:38Z")

</div>

On Windows 11 (sorta), running VSCode:

```julia
julia> n=512; L=rand(n,n); z=rand(n); b=L\z;
ERROR: StackOverflowError:

```

That’s it. No additional output after “StackOverflowError:”  
Probing further, L is defined. “z” is defined. “b” is not defined.

my version info:

```julia
julia> versioninfo()
Julia Version 1.6.4
Commit 35f0c911f4 (2021-11-19 03:54 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4960X CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, ivybridge)
Environment:
  JULIA.EXECUTABLEPATH = C:\Users\amgough\Julia\bin\julia.exe
  JULIA_GLPK_LIBRARY_PATH = C:\Program Files\glpk
  JULIA_HOME = C:\Users\amgough\Julia\bin\julia.exe
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 6

```

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 27, 2021, 9:53am UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/16 "2021-11-27T09:53:07Z")

</div>

I will file an issue and reference this thread. Strange that

```julia
n=32; L=rand(n,n); z=rand(n); b=L\z;

```

works fine, at least for me and IJullia in 1.6.4.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [November 27, 2021, 9:57am UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/17 "2021-11-27T09:57:31Z")

</div>

Just filed  
[https://github.com/JuliaLang/julia/issues/43242](https://github.com/JuliaLang/julia/issues/43242)

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [December 8, 2021, 3:57pm UTC](https://discourse.julialang.org/t/problems-in-1-6-4-with-ijulia-downgrade-to-1-6-3/72129/18 "2021-12-08T15:57:24Z")

</div>

1.7 has the same problem. Switching to the MKL BLAS solved it on my intel Macs and also with the x86 version of 1.7.0 on my M1 Mac. The success on M1 surprised me.

MKL has to be using rosetta2 and the performance was good. I did a few tests an it looks 10-20% faster than openblas in the REPL for moderately sized problems (1000x1000 Gaussian elimination …)

I’m now using x86 1.7.0 on all my machines while I wait for the openblas fix for the native M1 version.

So `using MKL` is now in my startup.jl and startup\_ijulia.jl files. Problem solved!
