Hi,
I’m setting out to conduct a POC which calls Julia from Scala, via Julia’s C interface.
https://github.com/Quafadas/slincTest/blob/master/slinc.scala#L30
I’ve checked that I can call functions from the std C library.
I’ve compiled a trivial Julia library with package compiler.
From what I can tell, I’ve also generated bindings to the C interface of that Julia package from scala. I get this error message;
WARNING: failed to initialize stack walk info
ERROR: could not load library "C:\temp\superJlibCompiled\lib\julia\sys.dll"
The specified module could not be found.
I can track the warning back to Julia code, which I believe to be evidence, that I’ve successfully entered Julias init cycle, and have this called it’s C interface.
The subsequent error message is suggestive however, that something about the linking process has gone wrong, or is incomplete.
I can find a sys.dll file here;
C:\Users\partens\AppData\Local\Programs\Julia-1.8.3\lib\julia
But it would not be on the path. I followed the embedding instructions and have the
JULIA_DIR
environment variable set to
C:\Users\partens\AppData\Local\Programs\Julia-1.8.3\bin
I can overcome that, by simply copy and pasting
“C:\Users\partens\AppData\Local\Programs\Julia-1.8.3\lib\julia\sys.dll”
to the right place. Ultimately however, I get this;
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x0 -- unknown function (ip: 0000000000000000)
in expression starting at none:0
unknown function (ip: 0000000000000000)
Allocations: 2907 (Pool: 2896; Big: 11); GC: 0
Given that I’m rather unsure what I’m doing, I’m unwilling to believe this is a bug report…
Would anyone have a hint?