Giter Site home page Giter Site logo

Comments (5)

mincequi avatar mincequi commented on May 28, 2024 1

@detroitgoose,

Ok, having a stack trace would not help, if the tools runs without fault. It depends a little bit on your environment, but checkout some documentation on how to enable "core dumps" (sorry, the wording stack trace might have been misleading).
https://wiki.archlinux.org/title/Core_dump

If the tool crashes, you get a core file. Together with cornrow's executable you can trace back the issue:
gdb executable core-file

from cornrow.

detroitgoose avatar detroitgoose commented on May 28, 2024

Adding cornrow config if pertinent:

[bluetooth_source]
codecs = [ 0x0 ]        # As defined in the A2DP specification (SBC (0x0) is mandatory)
sample_rates = [ 44100, 48000 ]

[airplay_source]
name = "KitchenAirplay"
 port = 0              # port to listen on (0 for auto select)
 buffer_time = 2000    # in ms (defaults to 2000ms)

#[alsa_sink]
#device = "default"

[tcp_sink]
host = "127.0.0.1"
port = 4953

from cornrow.

mincequi avatar mincequi commented on May 28, 2024

Hmm, this map out-of-range is suspicious.
But in any case: your config file has an error: [tcp_sink]`<- this symbol might cause an error when parsing the config file.

Maybe you can produce a stack trace?

from cornrow.

detroitgoose avatar detroitgoose commented on May 28, 2024

@mincequi

your config file has an error: [tcp_sink]`<- this symbol might cause an error when parsing the config file.

Oops, that was a result of my poor github markup. I've edited the post to show the config as it actually is: without the backtick.

Maybe you can produce a stack trace?

I tried sudo strace -s 99 -ffp 766, 776 being the current process ID, but I'm not sure how helpful the data is. I get the following response which repeats ad infinitum:

[pid   766] clock_gettime64(CLOCK_MONOTONIC, {tv_sec=15991, tv_nsec=591824800}) = 0
[pid   766] clock_gettime64(CLOCK_MONOTONIC, {tv_sec=15991, tv_nsec=591944428}) = 0
[pid   766] epoll_wait(10, [], 128, 0)  = 0
[pid   766] clock_gettime64(CLOCK_MONOTONIC, {tv_sec=15991, tv_nsec=592170463}) = 0
[pid   766] poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 4, 1) = 0 (Timeout)

This was done while the program is running without fault.

If you could tell me the proper way to do a stack trace, I'll run it next time the error occurs.

from cornrow.

detroitgoose avatar detroitgoose commented on May 28, 2024

@mincequi

I enabled core dumps 2 weeks ago, but it hasn't crashed since.

Not sure what happened but I'll mark this closed. Thanks again for such seamless BT/AP integration

from cornrow.

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.