Juno: using a sysimage causes error

I’m trying to use a custom system image for starting Julia in Juno. The system image was compiled by compile_incremental or compile_package from PackageCompiler, the result is the same. Now, when I try to start Julia in Juno (using the new sysimage), the following error occurs:

ERROR: could not load library "C:\Users\Jonas Asprion\AppData\Local\atom\app-1.40.0"

I then have to close Atom because Julia hangs and cannot be stopped. Using the system image to start a normal Julia session (not in Juno) works fine.

Any ideas…?

How are you loading the sysimg? Putting

-J/home/pfitzseb/.julia/dev/PackageCompiler/sysimg/sys.so

into the “Additional Julia Startup Arguments” option works fine for me:

I do it exactly the same way, but this’ what happens:

(plots_incremental.dll is just a copy of what PackageCompiler produced in .../sysimg/sys.dll)
You’re also on Windows? (Specifically I’m on Windows 8.1…)

Old post, but for other Windows 10 users finding their way here from Google, I was able to solve this by quoting the path and escaping backslashes. For example, -J"C:\Users\User Name\sys_plots.so"
I hope that helps!

5 Likes

Is there a way to do something like this, but for each project? That is, a sysimage for each project.