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
{{ message }}
Repository navigation
polling desktopCapturer.getSources() crashes the electron app #11304
Need to update users with the latest screen capture of the apps open every 5 to 7 seconds, even if the user opens an app freshly. I realise that getSources is a highly-expensive API and it is not advised to poll. Is there an alternative method i can use?
Considering that i need the source id of the app since i need to start screen share of the app when the user clicks on the image displayed.
Reacted by Ajey Charantimath, cberescu, Alexandra Nasevich, Syed Umair and Mustafa Hashmi
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
As understand @rongilson in this issue #9600 able to fix the problem. But I don't understand how to implement his fix, no those folders in electron project.
@zeke, was this bundled with today's releases (1.7.11, 1.8.2-beta4)? I'm still new to developing with Electron, so I'm unsure where I can see if that's the case.
Activity
welcome commentedon Dec 1, 2017
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
anand-io commentedon Dec 1, 2017
This is happening for us too.
electron.desktopCapturer.getSourcesAPISteps to reproduce:
Call the below code more than once(mostly between 1-10 times), the app will crash.
Note: this is happening only in OSX High Sierra
Nikitikitavi commentedon Dec 6, 2017
+1
Same situation.
As understand @rongilson in this issue #9600 able to fix the problem. But I don't understand how to implement his fix, no those folders in electron project.
Any update on this?
Ajeey commentedon Dec 7, 2017
+1
I am able to easily reproduce this issue on Mac.
Here is the sample repo that demonstrates the issue
https://github.com/Ajeey/electron-crash-demo
kamesh-a commentedon Dec 7, 2017
+1
Ajeey commentedon Dec 14, 2017
@zcbenz @zeke @MarshallOfSound Can we get some attention on the above issue please?
It is turning out to be a show stopper for us :(
zeke commentedon Jan 24, 2018
Looks like a fix for this landed in electron/libchromiumcontent#418
jstlaurent commentedon Jan 24, 2018
@zeke, was this bundled with today's releases (1.7.11, 1.8.2-beta4)? I'm still new to developing with Electron, so I'm unsure where I can see if that's the case.
zeke commentedon Jan 25, 2018
@jstlaurent I think this will land in 2.0.0. Not sure we have a target date for that yet.