It could be a multithreading issue while loading ImageView.jl which ultimately is caused by some GTK.jl interaction (also here).
Maybe the Juno profiler runs the code with a single thread and doesn’t trigger this issue?
Did you try to start Julia with only one thread?