-
Notifications
You must be signed in to change notification settings - Fork 36
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
Qml instance started with Exec_async doesn't close properly #145
Comments
On the main branch, there is a function |
I tried the following in the project QmlJuliaExamples cd basic
julia --project and then in Julia, after initiating the project: include("listmodel-fromjulia.jl") # window pops up
QML.cleanup() # window closes
include("listmodel-fromjulia.jl") # crash This crashes with julia> include("listmodel-fromjulia.jl")
[64952] signal (11.2): Segmentation fault
in expression starting at /home/ufechner/repos/QmlJuliaExamples/basic/listmodel-fromjulia.jl:51
unknown function (ip: 0x7f63f5f75040)
unknown function (ip: 0x7f6329ffc58f)
Allocations: 6039630 (Pool: 6033552; Big: 6078); GC: 9
Segmentation fault (core dumped) @barche Any idea? |
Instead of using cleanup directly, you should exit the REPL. After running |
I need to open my file using exec_async, since I have an interactive simulation displaying and image, and otherwise it won't update the image. However, as opposed to starting just with exec(), if I close the QML window the QML engine is not closed. Due to this, if I try to exec_async() again from the same REPL, I get the error: ERROR: Existing engine, aborting creation. I have to close the REPL and recompile all functions again to open a new window.
The text was updated successfully, but these errors were encountered: