Skip to content

songrec recognize panics at broken pipe #209

@bonsaiiV

Description

@bonsaiiV

I tried to parse the songrec json with jq. Unfortunately my jq arguments were wrong. This lead to an error message from jq and a panic from songrec:

songrec recognize Noah.mp3 --json | jq ".[track]"
jq: error: track/0 is not defined at <top-level>, line 1, column 3:
    .[track]
      ^^^^^
jq: 1 compile error
thread 'main' panicked at library/std/src/io/stdio.rs:1118:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at library/core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x564ab6496925 - <unknown>
   1:     0x564ab64c097b - <unknown>
   2:     0x564ab649367f - <unknown>
   3:     0x564ab6497df1 - <unknown>
   4:     0x564ab6497acc - <unknown>
   5:     0x564ab6498451 - <unknown>
   6:     0x564ab6498283 - <unknown>
   7:     0x564ab6496de9 - <unknown>
   8:     0x564ab6497f44 - <unknown>
   9:     0x564ab60e9565 - <unknown>
  10:     0x564ab60e95f2 - <unknown>
  11:     0x564ab60e96d6 - <unknown>
  12:     0x564ab61623df - <unknown>
  13:     0x7fd12cb53f8d - <unknown>
  14:     0x7fd12cb55657 - <unknown>
  15:     0x7fd12cb55a17 - g_main_loop_run
  16:     0x564ab610706d - <unknown>
  17:     0x564ab612bb32 - <unknown>
  18:     0x564ab615d2e6 - <unknown>
  19:     0x564ab6135b2c - <unknown>
  20:     0x564ab648e270 - <unknown>
  21:     0x564ab612ca94 - main
  22:     0x7fd12b627635 - <unknown>
  23:     0x7fd12b6276e9 - __libc_start_main
  24:     0x564ab60e9d55 - <unknown>
  25:                0x0 - <unknown>
thread caused non-unwinding panic. aborting.
fish: Process 153689, 'songrec' from job 1, 'songrec recognize Noah.mp3 --js…' terminated by signal SIGABRT (Abort)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingminor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions