-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when audio files played in quick succession #2549
Comments
I just ran my tests with beta 3, and it crashed again. I only managed to click about 3-4 times before it froze and crashed to desktop. |
Really? It's been rock solid in my click-tests after yesterday's changes. :-( |
Maybe it's just the code, and files I'm playing then? Here's a copy of my current test build of the 'Bond awarded' script, plus the audio files I'm playing. I made a change to the script last night, but didn't test it until after beta 3, and now it's a bit hit and miss in game with it playing the sounds. Although that could just be me not getting kills fast enough to trigger it. Still, it does play a couple before crashing when I use the test button. |
Some more information that may be useful. I forced the on-foot sections of code to run by changing the I then loaded into game, changed the != back to = and disembarked from my ship onto a station. I then started clicking test again, and it crashed after only a couple. So, for some reason, it seems like it may only happen when I'm in game? But I can't see why that would be. |
It has to do with when objects are disposed / removed from memory. |
No worries. I appreciate your efforts with this. I'd rather you take your time to get it right. 🙂 |
What's Wrong (please be as specific as possible)
Expected
EDDI operates normally when audio files played in quick succession.
Observed
EDDI crashes to desktop when running a script that plays audio files by clicking the 'Test' button.
Steps to reproduce
Configuration
My Investigation
Investigation Notes
I've been experimenting with the 'Bond awarded' script, getting it to play audio files using the Play() function. I have a few different files to be played, depending on how many kills you have within a certain time. The code works well, however, when running it in quick succession, EDDI will suddenly freeze and then crash to desktop a second or two later.
I have tried this with v4.0.2 & v4.0.3-b2, plus with and without VA. I can make it crash consistently every time, using the method above. Having the script play in-game doesn't seem to make it crash, but I'm guessing that's because it's not happening fast enough to cause it.
And, yes, I am attempting to recreate an Unreal Tournament style "multi-kill" speech, hence why I'm trying to make it go fast. 😉
EDDI Logs
Verbose log. Loaded EDDI standalone, and started clicking the 'Test' button until it crashed.
eddi.zip
Player journals
N/A
The text was updated successfully, but these errors were encountered: