You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue for our specific application presents with animations happening in the background of the application not continuing when a context menu is opened. The expectation is that animations and the run/render loop would continue the same way context menus work in Chrome.
I also have this and can confirm it. Menu.popup, but only on OS X - blocks the GPU process I think or does something that disallows rendering from happening. The renderer process is still active, it still does stuff, but the window doesn't update visually
That doesn't make much sense if the all is showing live data, something animated or a video. In this case it has to be async. Will doing it in the main process workaround the issue?
This is not true, the issue is still there even with async IPC, under OS X. Please do not make assumptions like that. I realize the temptation to clean up Issues, but closing issues like that is a bit extreme.
You may have been confused by the fact that this only happens under OS X, and it doesn't really block the thread, only the rendering itself.
Should we just open another issue? As I said, the issue for me is not related to blocking the main thread, but instead stops rendering, only under OS X. @zcbenz what do you think we should do?
Is there an async version of Menu.popup that doesn't block rendering? If so can we make it the default context menu used for right-click events? It causes UI issues that when a user right-clicks the UI freezes. It causes issues in the tree-view around selected nodes. This has been an ongoing issue.
Already saw it, unfortunately it's not really an option to declare the context menu in the main process due to the project's code design and the fact that there is not just one menu with two elements. :/
Hi, I see this issues is more than half a year old. I also face this problem and just wanted to know if there are plans on implementing the async popup in the near future. Depending on the response I would change my strategy and go for an html context menu instead of going native.
Activity
Ivshti commentedon Jun 4, 2015
I also have this and can confirm it. Menu.popup, but only on OS X - blocks the GPU process I think or does something that disallows rendering from happening. The renderer process is still active, it still does stuff, but the window doesn't update visually
zcbenz commentedon Jun 9, 2015
Menu.popupis desired to be a synchronous function in the main process, so the blocking is expected. We can probably add an asynchronous version.Ivshti commentedon Jun 9, 2015
That doesn't make much sense if the all is showing live data, something animated or a video. In this case it has to be async. Will doing it in the main process workaround the issue?
Ivshti commentedon Jun 12, 2015
Confirming again that with 0.27.3, rendering continues just fine under Windows. Is it possible that this is under some form resolved?
aackerman commentedon Aug 15, 2015
I think the issue was attempting to run Menu.popup in a renderer window from a remote require. This is definitely not what you should do.
Ivshti commentedon Aug 15, 2015
This is not true, the issue is still there even with async IPC, under OS X. Please do not make assumptions like that. I realize the temptation to clean up Issues, but closing issues like that is a bit extreme.
You may have been confused by the fact that this only happens under OS X, and it doesn't really block the thread, only the rendering itself.
@aackerman please reopen this
Ivshti commentedon Aug 16, 2015
Should we just open another issue? As I said, the issue for me is not related to blocking the main thread, but instead stops rendering, only under OS X. @zcbenz what do you think we should do?
zcbenz commentedon Aug 21, 2015
I think we can reopen this issue and add OS X label.
sstur commentedon Aug 26, 2015
Is there an async version of
Menu.popupthat doesn't block rendering? If so can we make it the default context menu used for right-click events? It causes UI issues that when a user right-clicks the UI freezes. It causes issues in the tree-view around selected nodes. This has been an ongoing issue.13 remaining items
martpie commentedon Jun 17, 2016
@PGMLDE see my comment for a workaround #1854 (comment)
pgml commentedon Jun 17, 2016
Already saw it, unfortunately it's not really an option to declare the context menu in the main process due to the project's code design and the fact that there is not just one menu with two elements. :/
r1si commentedon Aug 29, 2016
I have also the same problem....
lizprun commentedon Oct 3, 2016
I have also the same problem.
but it seems that slack has resolved this problem...
how did slack do it ?
martpie commentedon Oct 3, 2016
@r1si @lizprun You can have a look at my solution here: #1854 (comment)
Not the easiest to implement, but it does the job pretty well.
Flush DOM before displaying context menu
AoDev commentedon Jan 15, 2017
Hi, I see this issues is more than half a year old. I also face this problem and just wanted to know if there are plans on implementing the async popup in the near future. Depending on the response I would change my strategy and go for an html context menu instead of going native.
pjebs commentedon Jul 26, 2018
#13820
AliceSof commentedon Oct 5, 2023
Update