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
Floating point exception when playing AAC files #2148
Comments
any aac files? |
I just tried to play several aac test files, and nothing happened, no crash. |
so far, it's crashing with any AAC I'm throwing at it. |
How can I add some debug information or something which may help you troubleshoot the issue? |
One suggestion. If you built deadbeef yourself, make sure to delete the old version completely before installing the new one. It's possible that you had leftovers from previous build or something like that. Otherwise I don't know. Wiki has instructions how to use GDB to get stack trace. |
ok. Anyway, the last build was done after uninstalling the previous build so I think this does not apply. Thanks for the pointer with GDB. Will look into that. |
GDB Backtrace. Hope this helps:
|
Unfortunately, that doesn't provide any clues -- your build is without any debug info, and this is how the crash info looks:
|
how could I enable some debug info in my build? Any ./configure parameters ? Or any wiki page where I could go to help you? |
debug info is usually included by default. Your current build process is doing something to remove it. |
ok will look into that on my build script. Looks like this was the culprit for the lack of debug symbols, maybe:
|
ok, I recompiled without that l --strip-unneeded line and this is the backtrace I got:
|
Hmm. It's weird that no line numbers or address offsets are given, so it's a little hard to trace that. Please try a few more things:
|
Actually, I just noticed something. You don't have AAC plugin built. But somehow you're able to add and play the files, and then get the exception. So that means that some other plugin somehow picks up the AAC files, but can't decode them correctly. |
Perhaps you have aac enabled via FFMPEG somehow. This would explain it. |
Correct, I have ffmpeg2 installed. Additional info: I compiled deadbeef just by typing ./configure and outside my build script (which is intending to create a Slackware package, known as a "SlackBuild"). This is the backtrace I got. I think it's not that good, but it offers marginally more info that it might help:
|
this is what I got in the Plugin Summary after ./configure:
|
exactly. it says "aac: no" which means something else weird is going on, because by default AAC is not supposed to work, unless this plugin is built. and btw thanks for the stack trace, I'll try to figure out how to prevent the crash. |
you're very welcome! This is the full ./configure output with full Plugin Summary, in case it might be useful:
|
it won't build unless you install libfaad2 and libmpeg4ff + their dev packages if needed. |
Well. I installed FAAD2 and libmpeg2 (in Slackware each package also includes all dev headers). Now the AAC plugin builds but DeadBeef still crashes upon playing any AAC file. Full ./configure output:
Below is the GDB output:
|
Have you tried the other suggestions? |
Right now I'm in that process. Using the website provided build you linked produced the same crash. GDB output below:
|
SUCCESS! Moving away the config directory did the trick. Now deadbeef runs smoothly and plays AAC files without issue. Thanks! |
Could you then diff the config and see what is the culprit? |
I noticed that in the old config there was a ./presets directory which is not present in the current config. There, it was a single directory, ./encoders. Within thad directory, I saw several txt files. One of them was named AAC (Nero FAAC).txt. This is the content of this file:
|
directory diff:
|
This is not something that may affect aac decoding. |
Also the file |
this is the diff of the config files. ./config is the old config, ~/.config/deadbeef/config is the newer one:
|
diff of dspconfig in the same manner as the previous diff:
|
ok thanks. I can't see anything straight away yet, but if I do -- I'll let you know. |
Thanks, I really appreciate this. Meanwhile I can start listening with deadbeef. |
I verified the code for any remaining potential issues, that may be causing SIGFPE, and seems like everything is in check, so I'm closing the bug. |
Steps to reproduce the problem
Add an AAC file to the playlist. Press play on that file.
What's going on? Describe the problem in as much detail as possible.
The player crashes. On the console (can't tell whether is stdout or stderr) the following message is printed:
"Floating point exception"
Information about the software:
Deadbeef version: 1.8.0
OS: Linux, Slackware current, 64-bit
Kernel 4.19.46
gcc 9.1.0.
The error shows both in gtk2 and gtk3 interfaces.
Console output (using gtk2 interface):
The text was updated successfully, but these errors were encountered: