-
Notifications
You must be signed in to change notification settings - Fork 35
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
exec_async
crashes
#174
Comments
I can confirm that the example observable.jl crashes on Ubuntu 20.04 using Julia 1.9.3 and QML 0.8.
@barche Any idea what could be the reason or how to further debug this issue? |
I can confirm this and actually noticed it before the release, but I have no idea what causes it. It is due to a change between Qt 6.4 and 6.5. |
Is it possible that this issue is related? JuliaGraphics/jlqml#15 |
Unfortunately no. I have no idea what is causing this, what I have determined is that launching any Qt6 event loop from within a Julia task (which is what |
While the examples listmodel-fromjulia and observable crash, the example repl-background just works fine. (On Ubuntu 20.04). @barche Any idea? |
The difference is that in the repl-background example the QML doesn't contain any UI elements that take input. If you add e.g. a button it also crashes. I still have no idea at all on the root cause. |
Both examples don't crash if you start Julia with: |
Thanks to @ufechner7 's observation in barche/QmlJuliaExamples#12 we now know that a workaround is to set The reason is that Qt 6.5 has a new stack bound checker: https://bugreports.qt.io/browse/QTBUG-106875, so that's why Qt 6.4 was not affected. |
So what is the way to proceed?
|
The only currently viable workaround is setting |
Thanks to the golden tip here: JuliaLang/julia#31104 (comment) I now have a fix running locally, so this should be committed soon. |
You are a genius! |
Fixed in QML.jl 0.8.1 |
exec_async
is causing frequent crashes (segmentation faults) for me - butexec
works fine.It crashes every time I run
basic/observable.jl
fromQmlJuliaExamples
.Sometimes there's also a printout saying
Maximum call stack size exceeded
when usingexec_async
.The text was updated successfully, but these errors were encountered: