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
"unresponsive" event is incorrectly fired when calling synchronous version of dialog
methods
#6146
Comments
dialog
methodsdialog
methods
dialog
methodsdialog
methods are executed
dialog
methods are executeddialog
methods
dialog
methodsdialog
methods
How did you call the API? I think we have solved this before, we probably missed some cases. |
Pasted the code we use below. Note that I have to wait 2-3 minutes before the unresponsive event is called. I also tested this behavior on newer operating system and the behavior was the same. dialog.showOpenDialog({
title: 'Open File',
properties: ['openFile']
}); P.S. I could also test under Windows and Linux if you want. |
Are you running the code in the main process? If so this would be quite surprising to me, the code is blocking the whole main process and there is no chance for |
I call the |
Hmm I'm unable to reproduce by calling it in renderer process. |
Ok. I will create a simple app that reproduces the issue. |
Sorry for the delay but I will have to do it next week. |
Hi, I have created a simple app that replicates the issue. Steps to reproduce:
|
Hmm I can not reproduce with your app, it is probably because I'm using OS X 10.11. |
Currently we only suppress unresponsive event when a dialog is attached to a window, which might be why it is happening for some systems. We should probably just suppress the unresponsive event for all windows as long as there is dialog showing. |
I agree. P.S. I have also tested the sample under OS X 10.11.5 and successfully replicated the problem. After I open the dialog I wait and don't do anything else (maybe this is also related). |
Reopening since it reappears in v1.6.x. |
Left this up for 10 minutes on the latest |
dialog. showOpenDialog()
methodI understand why this happens. However, can something be done for this case? I hope you guys could fix it or maybe just provide an API for
dialog.hasOpenDialog
so this behavior could be fixed in our code.The text was updated successfully, but these errors were encountered: