Pluto "Process Exited" due to segmentation fault on macos

Everytime I restart the same notebook I got “Process Exited - Restart”.
In the log I found

From worker 2: signal (11): Segmentation fault: 11

Worker 2 terminated.

Unhandled Task ERROR: EOFError: read end of file

This seems to happens on cells where I plot something (using plot jl and stats plots).
I have to comment all the cells, kill pluto and julia, start julia again, execute Pluto.run() and then execute the cells one by one to make it works.

But this make julia unusable on my macos.
I’m using macOS Monterey on M1 Chip and 1.7.1

1 Like

You’re probably hitting similar problems as I reported last November ( https://github.com/fonsp/Pluto.jl/discussions/1686 ).

I now only use it with JULIA_NUM_THREADS<=4 and occasionally it wants a restart, typically less and less after a few restarts. Not ideal, but for now I can live with it. Still, running such a notebook in the REPL always works, so it is likely a Pluto issue.

2 Likes

Thank you so much!
Tried with JULIA_NUM_THREADS=4 but it didn’t work. Then tried with JULIA_NUM_THREADS=3 and seems to work.

1 Like

Have you also found that the notebooks always seem fine in the REPL?

1 Like

Yes, with REPL it seems working fine.
I noticed that by default Threads.nthreads() return 1. I didn’t expect that.

I’m having the same problem!!!

This bug is extremely annoying, even with the super helpful workaround. Could someone from Julia please fix this?