Comments (8)
Jeez, thanks @kantenkugel. My bad.
from jda.
Here are a few things that are worth trying:
- Check if another version of JDA is running on the PC currently (The error says that the opus-file can not be used as another program blocks it).and try it with them closed.
- Try deleting the opus*.dll file before launching the bot
- Make sure that JDA is properly put inside of your Jar-file (open the .jar file with any gzip program an check if the opus directory exists as well as the net/dv8tion/jda one)
Please let us know, if you could find out anything new with the given suggestions.
I am also interested in how exactly you are including JDA into your project. gradle/maven, download from build-server or adding the JDA source?
from jda.
By the way: i wish you luck with receiving audio... we didn't test that at all yet (yes, there are packets incoming, but we didn't check if it is easy to use or to play back). Receiving audio is not even really alpha. We are still working on finalizing the sending part (for 1.3.0 release)
from jda.
And... oh wow... i didn't know that we are polluting the temp-folder with all those opus.dll files
from jda.
- There are no other versions of JDA running.
- I checked, the file seems to be deleted after the program crashes. In any case, I couldn't find any by the names given in the error message. Plenty of other
opusXXXXX...
files, though. Deleting them has no effect. - The jar I'm working with now looks like this.
I've tried the first two of those methods. Haven't tried compiling from source.
from jda.
No, you should not compile from source :) I was just asking to know if you did, cuz that could be a cause of error.
I am really confused, on why this happens... Each instance of JDA should create its own dll-file in the temp-folder to load as library. The docs of the used methods tell us that that file is unique... and we only access it once to load it.
So somehow JDA locks itself out from the created temp-file (the code closes the output-stream to the file, but maybe it's not free again)... It is either that (we are still using it somehow before the read-attempt), or the .jar-file somehow loses permissions for the file. We will have to test this problem a little bit. This did not occur for anyone else yet, so it's gonna be hard to figure out.
If you find out anything new before we do, please let us know.
Also feel free to join our channel in the Discord API Guild (invite in README-file), to have a better chat
from jda.
@AjaxGb JDA v1.3.0 has been released. Please try it and see if this problem still exists.
https://github.com/DV8FromTheWorld/JDA/releases/tag/v1.3.0
from jda.
Yeah, it's working now! Thanks!
from jda.
Related Issues (20)
- Button#getLabel() is marked as @Nonnull, but is an optional field in API documentation HOT 3
- Message.getEmbeds() contains certain embeds only the second time they're sent HOT 7
- First GuildMemberRoleAddEvent or GuildMemberRoleRemoveEvent does not fire HOT 6
- event.getTarget().getMember() returns null in onMessageContextInteraction HOT 2
- Audio WebsSocket Issue HOT 3
- FlatMapRestAction not checking the condition predicate when using RestAction#submit() HOT 1
- Discord JDA loading SlashCommands HOT 1
- event does not send response (GuildMemberJoinEvent)
- ClassCastException/Failed to parse JSON HOT 5
- Can't register Guild command HOT 1
- Modify Bot's Browser or Device HOT 2
- Polls HOT 6
- Make JDA bubble up websocket crashes as ExceptionEvent
- add errorresponse 50178 The user account must first be verified HOT 2
- .
- Bot is unable to stream audio on stage in certain scenarios HOT 4
- Commands.slash name on russian HOT 2
- Exception in WS read thread: RSV1 bit of a frame is set unexpectedly HOT 10
- ErrorResponse USER_MUST_BE_VERIFIED Error HOT 3
- Manage role didn't work and also not throw any error HOT 2
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 jda.