-
Notifications
You must be signed in to change notification settings - Fork 80
PackageCompiler.create_app() with Gtk creates an executable that segfaults #665
Comments
Have you tried this with earlier Julia versions? |
I got the same error on 1.6 and 1.8. |
It seems like Gtk.jl's auto-idle should work fine with PackageCompiler, but if I run the It shows the window. The first time the button is clicked it outputs:
The application freezes when the button is clicked a second time. If I close the window without clicking on the button, it crashes with:
|
I get very similar |
I wonder if #687 fixes it -- I don't have time to check. But yes, |
Thanks @jwahlstrand, I will give it a try with a slight preference towards switching to |
Using an existing minimal example intended to demonstrate Gtk based Julia apps:
https://github.com/andrewkerr9000/GUIAppExample.jl/tree/master/example/CountClick
I don't know whether this issue would belong with Gtk, one of its dependencies, or PackageCompiler.
create_app does work as expected with Julia 1.4.2+0.x64 (and PackageCompiler 1.4.1, Gtk 3.24.29)
create_app creates a segfaulting app using Julia 1.8.0+0.x64 on Linux, installed via juliaup 1.7.22
Dependencies have been updated from original using
]update
. Those dependencies arePackageCompiler
(to 2.0.9) andGtk
(to 3.24.31). See log.Running the app from source works as expected. i.e.:
cd here
julia --project
using CountClick
CountClick.julia_main()
However, creating an app from that directory:
using PackageCompiler
create_app("","target")
creates an app that segfaults when run:
The text was updated successfully, but these errors were encountered: