Coder Social home page Coder Social logo

Segfault about cava HOT 13 CLOSED

 avatar commented on August 17, 2024
Segfault

from cava.

Comments (13)

karlstav avatar karlstav commented on August 17, 2024

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.

 avatar commented on August 17, 2024

@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.

karlstav avatar karlstav commented on August 17, 2024

could you could try to comment out the two lines you changed (method and source), just to check?

from cava.

 avatar commented on August 17, 2024

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.

 avatar commented on August 17, 2024

iniparser-4.0_2 if you want to try and replicate the issue.

from cava.

karlstav avatar karlstav commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

karlstav avatar karlstav commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

karlstav avatar karlstav commented on August 17, 2024

@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.

 avatar commented on August 17, 2024

Void's iniparser-package got patched and plays nicely with cava. So yes, Voidlinux' Cava-Package is working again.

from cava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.