Comments (7)
Master
branch not working on macOS 10.12.2 Sierra, the System.getProperty
check must not be finding macOS. Commenting out that entire line (including setAudioSendFactory
) and then re-building works (now playing music 🎶 ).
Edit: Found out the reason why, macOS os.arch
is x86_64. Adding a x86_64 check with get rid of the native player for Windows clients too. Would an os.name
check (currently Mac OS X
on my local MacBook) work?
Edit 2: PR'ing os.name check for Mac OS X to development
Other than that, loving this sweet bot! 👍
from archived-bot.
Currently we have confirmed the following errors.
Exception in thread "JDA AudioConnection Guild: 268663931692777486 Ready Thread" java.lang.UnsatisfiedLinkError: Required library at /natives/darwin/libudpqueue.dylib was not found
At com.sedmelluq.discord.lavaplayer.natives.NativeLibLoader.extractLibrary (NativeLibLoader.java: 93)
At com.sedmelluq.discord.lavaplayer.natives.NativeLibLoader.load (NativeLibLoader.java: 77)
At com.sedmelluq.discord.lavaplayer.udpqueue.natives.UdpQueueManagerLibrary.getInstance (UdpQueueManagerLibrary.java: 13)
At com.sedmelluq.discord.lavaplayer.udpqueue.natives.UdpQueueManager. (UdpQueueManager.java: 26)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendFactory.initialiseQueueManager (NativeAudioSendFactory.java: 31)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendFactory.addInstance (NativeAudioSendFactory.java: 58)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendSystem.start (NativeAudioSendSystem.java: 22)
At net.dv8tion.jda.core.audio.AudioConnection.setupSendSystem (AudioConnection.java: 225)
At net.dv8tion.jda.core.audio.AudioConnection.access $ 200 (AudioConnection.java: 47)
At net.dv8tion.jda.core.audio.AudioConnection $ 1.run (AudioConnection.java: 123)
from archived-bot.
It looks like you are trying to host FredBoat on a Mac. FredBoat depends on https://github.com/sedmelluq/lavaplayer to play music, which does not seem to support Darwin (the OSX kernel).
This normally wouldn't be a problem for a Java library, but this library isn't pure Java.
from archived-bot.
LavaPlayer itself works on OS X, but the native audio packet send system doesn't. Remove .setAudioSendFactory(new NativeAudioSendFactory())
part in FredBoatBot
class if you want to run it on OS X.
from archived-bot.
Thanks for clarifying Sed. I thought lavaplayer itself didn't support darwin
.
When running on arm
architecture we have a special case to disable NAS, I should simply patch this to also check for darwin
.
I will do this later as I am very busy right now.
from archived-bot.
if(!System.getProperty("os.arch").equalsIgnoreCase("darwin")) { builder.setAudioSendFactory(new NativeAudioSendFactory()); }
will work, insert into development branch, at FredBoatBot.java L66
Let me know if it worked.
from archived-bot.
This issue should now be fixed. Compile from the development
branch to get the fix.
from archived-bot.
Related Issues (20)
- Bot got stuck in connecting to VC after discord server crash HOT 5
- Bot doesn't leave when left alone HOT 4
- Bot not responding while doing searching tracks from Spotify in YouTube
- DanceCommand is broken
- FredBoat Music Failures HOT 1
- Prioritized tracks remain prioritized with the 'all' repeat mode HOT 6
- Compatibility issue with Clyp.it HOT 1
- Youtube error with Twitch streams HOT 1
- Feature: Gracefully handling Lavalink restarts HOT 1
- Edit the message sent when ;;help is executed HOT 3
- Feature: Add build instructions to CONTRIBUTING.md HOT 4
- [Feature Request] playfirst command HOT 1
- Use more updated version of gradle
- Add youtube title to ;;export output. HOT 1
- Configuration option to restrict DJs from skipping Admin's songs.
- SELFHOSTED - stop command makes the bot leave the channel HOT 3
- Youtube search is broken
- Feature request: Allow FredBoat to DM me track announcements HOT 1
- [Feature Request] Play direct links to mp3, wav, or other music files HOT 2
- SayCommand is not secure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archived-bot.