AgoraIO-Community / Agora-Electron-Quickstart

Quickstart for Agora Electron SDK(Windows/macOS) https://github.com/AgoraIO/Electron-SDK
71 stars 36 forks source link

Agora Premium App crashing #43

Closed silarvaibhav closed 4 years ago

silarvaibhav commented 4 years ago

I am running electron example on Mac Catalina, When app try to get camera following warning comes in console crashing app:

[warn] kq_init: detected broken kqueue

When below code executes app crashes App.js:

  this.setState({
    videoDevices: rtcEngine.getVideoDevices(),
    audioDevices: rtcEngine.getAudioRecordingDevices(),
    audioPlaybackDevices: rtcEngine.getAudioPlaybackDevices(),
  })

App ran successfully for the first time. And error was coming after that.

No camera/audio devices are being shared at this point. Any help will be appreciated.

plutoless commented 4 years ago

App ran successfully for the first time -> does this mean you can see the video for at least one time? or not at all? how are you running the demo? npm run dev?

silarvaibhav commented 4 years ago

Correct, I can see others video. I was using npm run dev

plutoless commented 4 years ago

can you maybe call separately to see which api is crashing your app? How can i reproduce this in quickstart example?

silarvaibhav commented 4 years ago

rtcEngine.getVideoDevices() is crashing app. In one of my folder it's working fine. Don't know may be because of npm package(electron,agora sdk) version installed. Will try to figure it out.

plutoless commented 4 years ago

if you are running "npm run dev", make sure you are not starting the app from editor terminal (vscode for example) if you are running released app, make sure you have the entitlements file properly configured.

silarvaibhav commented 4 years ago

was running from vscode. Working now. Thanks for help