Electron renderer crashes after importing @discordjs/voice
In my electron project I have the renderer set up as below:
Everything works fine until I run
require("@discordjs/voice");
(also tried this in DevTools console), when the whole window turns black and DevTools says
DevTools was disconnected from the page. Once page is reloaded, DevTools will automatically reconnect.I have looked at Electron docs and there it says that DevTools disconnecting signalizes a V8 crash. With
--enable-logging
Electron flag, the only thing printed out in console is:
generateDependencyReport()
output:
How do I solve this?Application Debugging | Electron
Whenever your Electron application is not behaving the way you wanted it to, an array of debugging tools might help you find coding errors, performance bottlenecks, or optimization opportunities.
4 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!It probably is not common, I wanted to make a bot to be configured from an app
Or something like that
if you want to make a configuration window i think you should separate the processes
Isn’t there a way to make it work without separation?