Skip to content

Application hangs in blocking event handlers #1699

@r0x0r

Description

@r0x0r

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions