# Understanding runtime errors with PackageCompiler built executables

**URL:** <https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120>\
**Category:** General Usage\
**Created:** [September 24, 2019, 4:38pm UTC](https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120 "2019-09-24T16:38:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![blaiseli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blaiseli/32/10332_2.png) [@blaiseli](https://discourse.julialang.org/u/blaiseli)\
**Post date:** [September 24, 2019, 6:33pm UTC](https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120/2 "2019-09-24T18:33:59Z")

</div>

Well, actually, the plain non-compiled version did only work when the version of one of the dependencies was correctly set. I don’t know whether this is related, but after fixing this, the error upon running the compiled version changed, and seems to give a little bit more information about the cause of failure:

```julia
fatal: error thrown and no exception handler available.
MethodError(f=typeof(Base.convert)(), args=(Int32, nothing), world=0x00000000000066d2)
rec_backtrace at /home/bli/src/julia/src/stackwalk.c:94
record_backtrace at /home/bli/src/julia/src/task.c:219 [inlined]
jl_throw at /home/bli/src/julia/src/task.c:429
jl_method_error_bare at /home/bli/src/julia/src/gf.c:1606
jl_method_error at /home/bli/src/julia/src/gf.c:1624
jl_apply_generic at /home/bli/src/julia/src/gf.c:2161
julia_main at /home/bli/src/qaf_demux/Julia/QafDemux/bin/qaf_demux_to_compile.jl:102
julia_main at /home/bli/src/qaf_demux/Julia/QafDemux/deps/builddir/qaf_demux.so (unknown line)
main at ./deps/builddir/qaf_demux (unknown line)
__libc_start_main at /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
_start at ./deps/builddir/qaf_demux (unknown line)

```

I do use `convert` explicitly in one function of the main library used by the program:

```julia
$ grep convert src/QafDemux.jl
qualnum2prob(qual::Int64) = qualnum2prob(convert(UInt8, qual))

```

I still don’t understrand how to fix the issue, though.

---

_[View the full topic](https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120)._
