Sometimes when I am calculating a lot of ‘models’ Julia will hang. This happens in ‘cmd’ but also with Powershell.
In my case, my code continuously produces output to the console (files that are being written, progress, …).
When there is no new output to the console for quite some time the program ‘hangs’ (in my view).
When I press any key, the code will continue.
Unfortunately, I cannot share the code I am running. Apologies for that.
I am using the packages below thought (from python I use xlsxwriter and pandas).
Has anyone ever encountered something like that?
Sometimes this happens with the REPL, sometimes it happens when I directly invoke julia.exe with a *.jl file.
I can see that you will probably want to see my code, to better understand my problem. I can see whether I can create an MWE. It would seem that it is probably an issue somewhere in my code, but I thought it wouldn’t hurt to ask.
Also, I can check what the process is doing (cpu/memory) next time I encounter this. Notably, I cannot reproduce it right now.
using OnlineStats, StatsFuns, SQLite, DataFrames, DataArrays, ProgressMeter, Iterators, PyCall, HDF5, JLD
EDIT:
Luckily Julia got stuck again and I was able to take a screenshot!![code_which was running|690x144]
Picture 1: the code which was running (readtable in this case)
Picture 2: Julia being stuck (task manager shows ‘nothing’…)
Picture 3: Julia continues after I click a button.
Interestingly the time reported to read the file is ‘correct’.
I do not know how long it was stuck (maybe 30minutes or so), but it was certainly more than 10s.
(the second time which is shown is from additional code that is not shown)