nate-xyz / chromatic

Fine-tune your instruments.
https://beta.flathub.org/apps/io.github.nate_xyz.Chromatic
GNU General Public License v3.0
41 stars 8 forks source link

Crash on Fedora 38 #3

Open long21wt opened 1 year ago

long21wt commented 1 year ago

Hi,

Thanks for making a GTK tuner app.

The application crashes whenever I toggle Manually Select. Here is the trace with flatpak run :

ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
ALSA lib ../../../src/pcm/pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib ../../../src/pcm/pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib ../../../src/pcm/pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib ../../../src/pcm/pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib ../../../src/pcm/pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib ../../../src/pcm/pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib ../../../src/pcm/pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../src/confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib ../../usb_stream/pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib ../../src/confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib ../../usb_stream/pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
 ERROR chromatic::recorder > There is an error: No devices found, starting stream w/ default option
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/recorder.rs:216:39
stack backtrace:
   0:     0x559ba42c14ca - <unknown>
   1:     0x559ba42e0eee - <unknown>
   2:     0x559ba42bf065 - <unknown>
   3:     0x559ba42c1295 - <unknown>
   4:     0x559ba42c2a7f - <unknown>
   5:     0x559ba42c27bb - <unknown>
   6:     0x559ba42c318c - <unknown>
   7:     0x559ba42c2ee2 - <unknown>
   8:     0x559ba42c197c - <unknown>
   9:     0x559ba42c2c32 - <unknown>
  10:     0x559ba3fc39d3 - <unknown>
  11:     0x559ba3fc3aad - <unknown>
  12:     0x559ba40afbfb - <unknown>
  13:     0x559ba403b881 - <unknown>
  14:     0x559ba3fe7e39 - <unknown>
  15:     0x559ba3ffe19a - <unknown>
  16:     0x7f093da464f2 - g_closure_invoke
  17:     0x7f093da5b1e8 - <unknown>
  18:     0x7f093da62195 - g_signal_emit_valist
  19:     0x7f093da62363 - g_signal_emit
  20:     0x7f093dba5df8 - <unknown>
  21:     0x7f093db2679d - <unknown>
  22:     0x7f093da4670a - <unknown>
  23:     0x7f093da6159e - g_signal_emit_valist
  24:     0x7f093da62363 - g_signal_emit
  25:     0x7f093dba74db - <unknown>
  26:     0x7f093dba0ca6 - <unknown>
  27:     0x7f093d949965 - g_main_context_invoke_full
  28:     0x7f093dba0df8 - <unknown>
  29:     0x7f093db9f3f3 - <unknown>
  30:     0x7f093dba1919 - <unknown>
  31:     0x7f093dba68b9 - <unknown>
  32:     0x7f093da464f2 - g_closure_invoke
  33:     0x7f093da5b1e8 - <unknown>
  34:     0x7f093da62195 - g_signal_emit_valist
  35:     0x7f093da62363 - g_signal_emit
  36:     0x7f093da4a9c4 - <unknown>
  37:     0x7f093da4db68 - g_object_notify_by_pspec
  38:     0x7f093e0a0602 - gtk_switch_set_active
  39:     0x7f093e0a09f5 - <unknown>
  40:     0x7f093e1357a5 - <unknown>
  41:     0x7f093da464f2 - g_closure_invoke
  42:     0x7f093da5b1e8 - <unknown>
  43:     0x7f093da62195 - g_signal_emit_valist
  44:     0x7f093da62363 - g_signal_emit
  45:     0x7f093e26361d - <unknown>
  46:     0x7f093e264359 - <unknown>
  47:     0x7f093e26451c - <unknown>
  48:     0x7f093d94937f - <unknown>
  49:     0x7f093d948681 - g_main_context_dispatch
  50:     0x7f093d948bd8 - <unknown>
  51:     0x7f093d948c73 - g_main_context_iteration
  52:     0x7f093db8cd1d - g_application_run
  53:     0x559ba40172cf - <unknown>
  54:     0x559ba40173f9 - <unknown>
  55:     0x559ba4048ec7 - <unknown>
  56:     0x559ba4031aeb - <unknown>
  57:     0x559ba401768e - <unknown>
  58:     0x559ba3ffaeb1 - <unknown>
  59:     0x559ba42bb30c - <unknown>
  60:     0x559ba3ffae8a - <unknown>
  61:     0x559ba4048f2e - main
  62:     0x7f093d62954a - <unknown>
  63:     0x7f093d62960b - __libc_start_main
  64:     0x559ba3fc4045 - <unknown>
  65:                0x0 - <unknown>
nate-xyz commented 1 year ago

Does it run properly otherwise? When you start the app does it detect audio?

nate-xyz commented 1 year ago

can you try this commit https://github.com/nate-xyz/chromatic/commit/e680ce81d81d66cbc1d89497b9128f150f8920e1

long21wt commented 1 year ago

Does it run properly otherwise? When you start the app does it detect audio?

Yes, I don't see any other problem, the app seems like using my microphone.

can you try this commit e680ce8

Can I build your app with GNOME Builder, otherwise how can I install the .flatpak build ?

nate-xyz commented 1 year ago

Yeah you should be able to build with GNOME Builder, or you can use the setup script to just build with meson. If you build with meson you probably need to remove the first line in setup.sh (sudo rm -R _builddir && )

nate-xyz commented 1 year ago

@long21wt I pushed this fix in the last flathub update, does it still crash for you?

long21wt commented 1 year ago

Unfortunately, it still happens. I press the toggle button Screenshot from 2023-03-11 00-29-56

 ERROR chromatic::recorder > disconnected channel, stream should end
Ratfink commented 1 year ago

I'm encountering the same problem on Fedora 37. Changing inputs using Helvum works, but turning on the "Manually Select" switch makes the app freeze, with the same error as @long21wt reports.

long21wt commented 1 year ago

It seems to be fixed for me now

nate-xyz commented 1 year ago

Weird, maybe it was some underlying issue with fedora? Because I haven't changed anything

long21wt commented 1 year ago

Maybe after the release of Fedora 38 Beta, switching device somehow are automatically fixed, but I think the app doesn't work with my audio interface.

nate-xyz commented 1 year ago

@Ratfink is this fixed for you as well?

Ratfink commented 1 year ago

Not on Fedora 37, no, it still freezes. EDIT: And on Fedora 38 beta on my laptop.

Nitrousoxide commented 1 year ago

This still crashes for me too on Fedora 38