Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: error thrown and no exception handler available. #789

Closed
StefanPofahl opened this issue Feb 16, 2023 · 5 comments
Closed

fatal: error thrown and no exception handler available. #789

StefanPofahl opened this issue Feb 16, 2023 · 5 comments

Comments

@StefanPofahl
Copy link

  1. The output of versioninfo()
    I have compiled in three Julia versions:
    A.)
Julia Version 1.6.7
Commit 3b76b25b64 (2022-07-19 15:11 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

B.)

Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
Environment:
  JULIA_SSL_CA_ROOTS_PATH =

C.)

Julia Version 1.9.0-beta4
Commit b75ddb787f (2023-02-07 21:53 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
  1. How you installed Julia
    As portable SW.

  2. A minimal working example (MWE), also known as a minimum reproducible example

module HelloWorld

function julia_main()::Cint
  greet()
  return 0 # if things finished successfully
end

greet() = print("Hello World!")

end # module HelloWorld

The minimal example works fine on Julia v1.6.7 and v1.8.5.
On v1.9.0-beta4 the error message is:

D:\data\temp\myApps\HelloWorld\HelloWorldApp_Jv1.9.0\bin>HelloWorld.exe
ERROR: Unable to find compatible target in system image.

Another project, which is larger, can be compiled and the resulting .exe can be executed on the
build machine, but the App crashes on other computers.
The module of this App can be found here:
InteractiveEquivalentCircuit.jl
The trouble makers seems to be the package:
EquivalentCircuits.jl
As it is the first package of this author, it would be nice, if you could have a look on it.
I will in parallel file an issue on the project homepage.

Here are the three related error messages:

A.)
v1.6.7:

D:\data\temp\myApps\MyGLMakieApp\MyGLMakieApp_jv1.9.0\bin>"D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.6.7\bin\InteractiveEquiv
alentCircuit.exe"
fatal: error thrown and no exception handler available.
InitError(mod=:Tulip, error=ErrorException(""C:\\Users\\stefanpofahl\\.julia\\packages\\Tulip\\BVHPO\\src\\..\\Project.toml":
 No such file"))
error at .\error.jl:42
readstring at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\TOML\src\TOML.jl:21 [inlined]
parsefile at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\TOML\src\TOML.jl:43
__init__ at C:\Users\stefanpofahl\.julia\packages\Tulip\BVHPO\src\Tulip.jl:15
jfptr___init___84903 at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.6.7\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
jl_module_run_initializer at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:72
_julia_init at /cygdrive/c/buildbot/worker/package_win64/build/src\init.c:794
jl_init_with_image__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:74 [inlined]
jl_init_with_image__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:63 [inlined]
jl_init__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:90
.text at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.6.7\bin\InteractiveEquivalentCircuit.exe (unknown line)
__tmainCRTStartup at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.6.7\bin\InteractiveEquivalentCircuit.exe (unknown line)
.l_start at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.6.7\bin\InteractiveEquivalentCircuit.exe (unknown line)
BaseThreadInitThunk at C:\Windows\system32\kernel32.dll (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)

B.)
v1.8.5:

D:\data\temp\myApps\MyGLMakieApp\MyGLMakieApp_jv1.9.0\bin>"D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.8.5\bin\InteractiveEquiv
alentCircuit.exe"
fatal: error thrown and no exception handler available.
InitError(mod=:Tulip, error=ErrorException(""C:\\Users\\stefanpofahl\\.julia\\packages\\Tulip\\BVHPO\\src\\..\\Project.toml":
 No such file"))
error at .\error.jl:44
readstring at C:\workdir\usr\share\julia\stdlib\v1.8\TOML\src\TOML.jl:21 [inlined]
parsefile at C:\workdir\usr\share\julia\stdlib\v1.8\TOML\src\TOML.jl:43
__init__ at C:\Users\stefanpofahl\.julia\packages\Tulip\BVHPO\src\Tulip.jl:15
jfptr___init___164120 at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.8.5\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
jl_module_run_initializer at C:/workdir/src\toplevel.c:75
_finish_julia_init at C:/workdir/src\init.c:765
ijl_init_with_image at C:/workdir/src\jlapi.c:74 [inlined]
ijl_init_with_image at C:/workdir/src\jlapi.c:63 [inlined]
ijl_init at C:/workdir/src\jlapi.c:90
.text at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.8.5\bin\InteractiveEquivalentCircuit.exe (unknown line)
__tmainCRTStartup at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.8.5\bin\InteractiveEquivalentCircuit.exe (unknown line)
.l_start at D:\data\temp\myApps\EIS\MyAppCompiled_Jv1.8.5\bin\InteractiveEquivalentCircuit.exe (unknown line)
BaseThreadInitThunk at C:\Windows\system32\kernel32.dll (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)

C.)
v1.9.0:

D:\data\temp\myApps\MyGLMakieApp\MyGLMakieApp_jv1.9.0\bin>"D:\data\temp\myApps\EIS\MyAppCompiled_Juliav1.9.0\bin\InteractiveE
quivalentCircuit.exe"
ERROR: Unable to find compatible target in system image.

Stefan

@StefanPofahl
Copy link
Author

StefanPofahl commented Feb 19, 2023

Meanwhile I have experimented with a minimal example comprising the package Tulip, see:
ds4dm/Tulip.jl#131

I wonder, if it is possible to cure the issue of missing Relocatability?
I have read the section about the Relocatability.
but what is missing are some examples and I do not know, if the package maintainers of Tulip must do something on their code or, if it is possible to cure the issue inside my project that relies on Tulip.

@mkitti
Copy link
Contributor

mkitti commented Feb 20, 2023

The version 1.9 error suggests you need to modify the environment variable JULIA_CPU_TARGET or the cou_target keyword of create_sysimage or other package compiler functions.

Trying setting it to "generic" to start.

@StefanPofahl
Copy link
Author

StefanPofahl commented Feb 20, 2023

Thanks for the tip! :-)
Priority is to get started under JuliaLTS, if there are no good reason to switch to v1.9.0.
If it is operational under JuliaLTS I will give it a try ...

@StefanPofahl
Copy link
Author

I still stuggle, if have started a discussion in the Julia forum, see:
https://discourse.julialang.org/t/missing-relocatability-of-tulip/94886/9

@StefanPofahl
Copy link
Author

StefanPofahl commented Feb 23, 2023

@mkitti
Thanks Mark for your support. With the new version of Tulip the issue is resolved :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants