betta-cyber / netease-music-tui

netease cloud music terminal client by rust :zap:
MIT License
420 stars 34 forks source link

Unexpected exit of the program #30

Open R0boter opened 2 years ago

R0boter commented 2 years ago
  1. My private song list has some songs that have been taken down, when i open the list , program exit
  2. Play vip song will cause the program to quit(I'm not a vip, I want auto skip this songs)
  3. Can you add a tag to vip songs
betta-cyber commented 2 years ago

This commit add a vip tag at the song name. just like this ♚. if play vip song failed,it will auto skip to the next song.

@R0boter For your first problem, i need more debug info, maybe you can add debug = "true" in your ${HOME}/.config/netease-music-tui/Settings.toml file. and tail -f /var/log/ncmt.log for more log

R0boter commented 2 years ago

this is debug log file: ncmt.log I have another question today, I add debug="true" to my config file. Then I can't excutive ncmt, I need use sudo. but if i use sudo, i got some error like this XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.) ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp