Comments (13)
woha a lot of details here. I must admit, I do not really understand what I'm looking at.
@gregf when does it segfault? Are you running any command line arguments? Anything special in the config file?
from cava.
@karlstav Any command I run it segfaults. If I remove my config it appears to work. So I think it has something to do with iniparser? I don't see anything invalid in my config myself.
## Configuration file for CAVA. Default values are commented out. Use either ; or # for commenting.
[general]
; mode = normal # smoothing mode, can be normal, scientific or waves.
; framerate = 60 # Default: 60. Accepts only non-negative values.
; sensitivity = 100 # is sensitivity %. Accepts only non-negative values.
; bars = 0 # the number of bars. 0 sets it to auto (fil upp console).
; bar_width = 3 # width of bars.
; bar_spacing = 1 # space between bars.
; lower_cutoff_freq = 50 # the lower cutof frequency for the far left bar
; higher_cutoff_freq = 10000 # the higher cutoff frequency for the far right bar. Note: there is a minimum total bandwith of 43Mhz x number of bars. Cava will automaticly increase the higher cuttoff if a too low band is specified.
[input]
method = fifo # supported input methods are 'alsa' or 'fifo'.
source = /home/gregf/.mpd/mpd.fifo # ALSA device or FIFO path.
[output]
; method = ncurses # method used to draw output may be ncurses, noncurses or circle.
; style = stereo # visual styles, may be 'stereo' or 'mono'. Stereo mirrors both channels with low frequencies in center. Mono avrages both channels and outputs left to right lowest to highest frequencies
[color]
# supported colors are: red, green, yellow, magenta, cyan, white, blue, black.
; background = black
; foreground = cyan
[smoothing]
; integral = 0.7 # multiplier for the integral smoothing calculations. Takes values from 0 - 0.99. Higher values means smoother, but less precise. 0 to disable.
; monstercat = 1 # disables or enables the so-called "Monstercat smoothing". Default: 1. Set to 0 to disable.
; gravity = 1 # Set gravity multiplier for "drop off". Higher values means bars will drop faster. Accepts only non-negative values. 0.5 means half gravity, 2 means double. Set to 0 to disable "drop off".
; ignore = 0 # set bars with height lower than this to 0
[eq]
# This one is tricky. You can have as much keys as you want. More keys = more precision. Look at readme.md on github for further explanations and examples.
; 1 = 1 # bass
; 2 = 1
; 3 = 1
; 4 = 1
; 5 = 1 # treble
from cava.
could you could try to comment out the two lines you changed (method and source), just to check?
from cava.
I did that playing around with it, and it didn't make any difference.
On Thu, Oct 29, 2015 at 07:33:38AM -0700, karl wrote:
could you could try to comment out the two lines you changed (method and source), just to check?
Reply to this email directly or view it on GitHub:
#78 (comment)
--gregf
from cava.
iniparser-4.0_2 if you want to try and replicate the issue.
from cava.
are you using a system wide iniparser or the bundled one?
I have tried with both the bundled and the newest from github without any issues.
from cava.
Looks like system wide.
ldd /usr/bin/cava
linux-vdso.so.1 (0x00007ffc5d1a9000)
libiniparser.so.0 => /usr/lib/libiniparser.so.0 (0x00007f59ce69f000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x00007f59ce39f000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f59ce09f000)
libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x00007f59cdd0f000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f59cdaef000)
libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f59cd877000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f59cd4cf000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f59cd2c7000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007f59cd0bf000)
/lib/ld-linux-x86-64.so.2 (0x00007f59ce8a7000)
from cava.
could you try to compile it with the bundled instead?
are you by any chance using the package from AUR? It is kinda out of date, although it should work.
from cava.
I narrowed it down to this line in the config file.
; style = stereo # visual styles, may be 'stereo' or 'mono'. Stereo mirrors both channels with low frequencies in center. Mono avrages both channels and outputs left to right lowest to highest frequencies
The comment to the right of stereo for some reason causes the segfault.
I'm not using archlinux. I tried both the package for voidlinux.eu and I tried compiling it by hand.
from cava.
I think its a line length issue with iniparser. It segfaults on the word center. In the sentence frequencies in center
. If I delete the word center it then works.
from cava.
This appears to be fixed with the bundled version and the latest version of cava. So i'm very sorry to have wasted your time. Voidlinux has 0.3.5 packaged and it looks like the latest version is 0.3.5.9. I'm going to submit a pull request to update there package. Thank you for your time, and again sorry to have wasted it.
from cava.
@gregf no problem 😉 There must have been a problem with the version of iniparser used in Voidlinux, nothing have been done with cava lately than can have caused/fixed this.
For what it's worth this made me realize that the lines on the comment in the config file are waaaaay to long, looks like a mess...
from cava.
Void's iniparser-package got patched and plays nicely with cava. So yes, Voidlinux' Cava-Package is working again.
from cava.
Related Issues (20)
- Segmentation fault HOT 2
- Keyboard controls are ignored when pausing PipeWire input HOT 6
- Erratic when waveform activated HOT 2
- Cava ignores the config file HOT 2
- Fails to build with iniparser 4.2 HOT 3
- Cava terminated with SIGSEGV at startup HOT 28
- missing <stdlib.h> in config.c
- Is it possible to integrate into a console-based music player? HOT 1
- Error: failure in opening stream (Invalid number of channels) HOT 1
- error while loading shared libraries: libiniparser.so HOT 14
- Linking fails on 10.6: `Undefined symbols: _glGenVertexArrays, _glReleaseShaderCompiler, _glBindVertexArray` HOT 5
- Cava causing crashes of pipewire HOT 1
- Gradient depends on the window size HOT 5
- Waves don't work properly in raw mode. HOT 18
- Error while loading shared libraries...
- Split view or something HOT 4
- Two squares on top of each bar in Tmux HOT 3
- Is it possible to use Cava without "Background Music" on MacOS? HOT 3
- Gradient does not corresponds config gradient
- cava: error while loading shared libraries: libiniparser.so.1: cannot open shared object file: No such file or directory 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 cava.