-
Notifications
You must be signed in to change notification settings - Fork 20
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
Async freezes in nimqml-application #21
Comments
I haven't looked at your code, but I'm guessing you haven't properly integrated into the nimqml event loop? You likely need to call some sort of QML poll function together with the |
@dom96 well, what I trying to do:
nothing more. and as result output I have:
client tells me about successfully connection, but in that time server doesn't go to next line |
@r3d9u11 @dom96 Qt is not made (usually) for being called by other threads and you must be careful on doing that. |
@filcuc thanks for hint, I'll try to play with threading. but I'll leave this issue to be open, yet |
@dom96 async procedures isn't GC safe? Is it possible to call async procedure from another procedure who called in a new thread via spawn? |
You can write |
@dom96 yes, thanks! (sorry I'm a novice in Nim, yet) |
@r3d9u11 @dom96 |
@filcuc can it help to solve this situation? |
I will give it a look asap |
with filcuc/dotherside@b6fcb52 in place i can proceed and fix this issue |
@filcuc |
No yet. I'll close this one when i add the bindings in NimQml. After that i
would like to create a test project that integrates nim async with Qt event
loop. Let's see if it's feasible.
Il giorno ven 4 ott 2019 alle ore 09:21 r3d9u11 <[email protected]>
ha scritto:
… @filcuc <https://github.com/filcuc>
great news!
can I close this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21?email_source=notifications&email_token=ABWTXI5NKVVNAH5TC3PBSRLQM3VHLA5CNFSM4EVQ5WC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKXMTQ#issuecomment-538277454>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWTXIYVQRKIJQRQU6YJQOLQM3VHLANCNFSM4EVQ5WCQ>
.
--
Filippo Cucchetto
|
feat: QGuiApplication supporting icon() and installEventFilter() meth…
Hi. I strange behavior of async/await operaions, when I called into nimqml-signal.
ChatServer freezes at server.nim:38
chat_server_app.zip
Here is client for test:
async_client_server.zip
(also in this client can be tested server.nim without nimqml and it works fine)
Any ideas?
The text was updated successfully, but these errors were encountered: