# Julia unresponsive (Apple Silicon issue?)

**URL:** <https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484>\
**Category:** General Usage\
**Tags:** question, apple\
**Created:** [September 19, 2022, 5:03pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484 "2022-09-19T17:03:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [September 19, 2022, 5:03pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/1 "2022-09-19T17:03:05Z")

</div>

I have a recurring problem where a long-running process hangs after some time. Screen updating then stops and Ctrl-C or Ctrl-D no longer interrupt the code. I have to restart `iterm` to stop execution.

This happens after several minutes to about half and hour while running an NLopt optimization (but the problem may not be related to NLopt). The problem arose after I switched to an M1-Pro mac (but again may not be related to Apple Silicon).

Since no error information is generated, I am unsure how to diagnose the problem.

Before I go down the rabbit hole of trying to isolate causes (multi-threading, Apple Silicon, NLopt, …), I thought I should ask for advice.

```julia
Julia Version 1.8.1
Commit afb6c60d69a (2022-09-06 15:09 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin21.4.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, westmere)
  Threads: 8 on 8 virtual cores
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_PKG_DEVDIR = /Users/lutz/Documents/julia
  JULIA_EDITOR = /usr/local/bin/code

```

---

<div class="post-metadata">

**Author:** ![gbaraldi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gbaraldi/32/22101_2.png) [@gbaraldi](https://discourse.julialang.org/u/gbaraldi)\
**Post date:** [September 19, 2022, 7:35pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/2 "2022-09-19T19:35:49Z")

</div>

Could you try using the native arm build instead of rosetta? Rosetta is known to have to issues with deadlocks and whatnot.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [September 20, 2022, 12:35pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/3 "2022-09-20T12:35:28Z")

</div>

I will try the arm version and report back.

NB: I installed my updates with `jill.py` which ended up installing the Rosetta version even when I requested ARM (could not verify the ARM files). I thought I was already using the ARM version.

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [September 20, 2022, 1:26pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/4 "2022-09-20T13:26:13Z")

</div>

I’d also recommend trying the ARM version. I had many problems with the Rosetta one before but the latest ARM releases work fine so far (MacBook M1, Julia 1.8.1).

Btw. I highly recommend `juliaup` to manage Julia installations. I hesitated for year(s) before switching because I thought I am happy with my environmental-modules setup but `juliaup` is really awesome 😉

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [September 20, 2022, 3:47pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/5 "2022-09-20T15:47:47Z")

</div>

So far so good with the arm version.

I’m hesitating about `juliaup` because of the disclaimer “Note that the Mac and Linux version are considered prerelease, have known bugs and might often break.”

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [September 20, 2022, 9:04pm UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/6 "2022-09-20T21:04:38Z")

</div>

I don’t know if that’s maybe an old statement. I am using it for a couple of months now and I never ever had any issues with it. Once you understand what a channel is, everthing is smooth 😆

I’d however recommend to install it via the official install script and not homebrew, since the homebrew keg is not updated often enough, which means you might miss new releases here and there.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [September 21, 2022, 12:01am UTC](https://discourse.julialang.org/t/julia-unresponsive-apple-silicon-issue/87484/7 "2022-09-21T00:01:11Z")

</div>

I’ll give it a try - thanks.
