-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Application freezed after received message. #49
Comments
When you call onAwakeReceived? You place showFullScreen just after 'self.connection.start()'. Connection is running on another thread it cant block your app. I think that using the on_open method will solve your problem .Did you try this? |
I call onAwakeReceived() here: Without showFullScreen method onAwakeReceived working correctly and application never stoped. I made yesterday at night a test where I run showFullScreen from QThread. In this test onAwakeReceived just set a flag which was checking by the QThread. If value of this flag was True I emited a signal. My signal handler was made for executing showFullScreen and the rest of UI logic. The result of this test was success. The window was opened in full screen and it wasn't freezed. Yesterday night test Worker definition
Start worker
UI signal handler
onAwakeReceived set flag for worker
Do You have any idea how do it without additional QThread? |
I'm working on desktop application based on PyQT and signalrcore library. My application freezed after recived a message from server.
Steps to reproduce the behavior:
Expected behavior
Application should open in full screen mode.
Desktop (please complete the following information):
Additional context
This situation have place only when I execute showFullScreen() from inside of message handler method.
Building connection
Message handler method
I think the reason could be related with thread uesd to handle websocket. Is there posibility to inject QThread?
The text was updated successfully, but these errors were encountered: