If you call evaluate_js or any other window function that must be run on the main thread from a blocking event (eg. closing). This is caused by the fact that evaluate_js and others are not designed to be run on the main thread. A lock inside the function blocks the main thread and as the result function never returns. Event handlers in blocking mode are run on the main thread as well resulting in a deadlock. The bug has been discovered in this pr
I have briefly attempted to fix this, but could not find a solution, nor I am sure it is possible at all with the current blocking event architecture. At very least application should not result in hanging.
Input is welcomed
If you call
evaluate_jsor any other window function that must be run on the main thread from a blocking event (eg.closing). This is caused by the fact thatevaluate_jsand others are not designed to be run on the main thread. A lock inside the function blocks the main thread and as the result function never returns. Event handlers in blocking mode are run on the main thread as well resulting in a deadlock. The bug has been discovered in this prI have briefly attempted to fix this, but could not find a solution, nor I am sure it is possible at all with the current blocking event architecture. At very least application should not result in hanging.
Input is welcomed