-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thread 'main' panicked at 'cannot remove a char from the end of a string', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b #1
Comments
I think I know what part of my code it's failing on (not sure about why though) Could you paste the line from your mpd.conf that sets your music directory please, that is the string that is being manipulated when it crashes (or just upload your entire mpd.conf, you'll probably have to change the extension to .txt) thanks! |
there's not many lines in my mpd.conf. Here ####### MPD CONFIG #######
# Required files
db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
# Optional
music_directory "~/music"
playlist_directory "~/.config/mpd/playlists"
pid_file "~/.config/mpd/pid"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
audio_output {
type "pulse"
name "pulse audio"
}
audio_output {
type "fifo"
name "toggle_visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
####### END MPD CONFIG ####### |
could you test this latest version please and let me know if it solves the problem, pretty sure it should (fingers crossed) Thanks! |
Using it with keybinding work perfectly but it doesn't show song art cover. $ rinse
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
rinse: /var/tmp/portage/x11-libs/libX11-1.7.3/work/libX11-1.7.3/src/xcb_io.c:269: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
[1] 31848 IOT instruction rinse So the only way to run it is from keybinding. |
First off, massive thanks for doing this testing and giving me these reports, big help, I'll have to find a way to get you on the contributors list at some point. the missing album art, currently it gets the art by searching for a file called cover.{jpg, jpeg, png} in the folder that contains the file you are playing/selecting - that is how I have my collection setup. as for the other error, Im guessing there is a dependency for the ui lib I'm using that you might not have installed. |
I download music from youtube music using yt-dlp with thumbnail and metadata embed to it. So yeah I embedded the album art to the song itself with command yt-dlp -f 'ba' -x --audio-format mp3 $link --embed-thumbnail --embed-metadata --ppa "EmbedThumbnail+ffmpeg_o:-c:v mjpeg -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\"" $ equery list "*xcb*"
* Searching for *xcb* ...
[IP-] [ ] x11-base/xcb-proto-1.14.1:0
[IP-] [ ] x11-libs/libxcb-1.14:0/1.12
[IP-] [ ] x11-libs/xcb-util-0.4.0-r2:0
[IP-] [ ] x11-libs/xcb-util-cursor-0.1.3-r3:0
[IP-] [ ] x11-libs/xcb-util-image-0.4.0-r2:0
[IP-] [ ] x11-libs/xcb-util-keysyms-0.4.0-r2:0
[IP-] [ ] x11-libs/xcb-util-renderutil-0.3.9-r3:0
[IP-] [ ] x11-libs/xcb-util-wm-0.4.1-r3:0
[IP-] [ ] x11-libs/xcb-util-xrm-1.3-r1:0
[IP-] [ ] x11-misc/xcb-2.4-r1:0 There're not many USE flags for those but here [ebuild R ] x11-misc/xcb-2.4-r1::gentoo USE="-motif" 0 KiB
[ebuild R ] x11-base/xcb-proto-1.14.1::gentoo ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild R ] x11-libs/libxcb-1.14:0/1.12::gentoo USE="xkb -doc (-selinux) -test" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ] x11-libs/xcb-util-renderutil-0.3.9-r3::gentoo ABI_X86="(64) -32 (-x32)" 287 KiB
[ebuild R ] x11-libs/xcb-util-keysyms-0.4.0-r2::gentoo ABI_X86="(64) -32 (-x32)" 284 KiB
[ebuild R ] x11-libs/xcb-util-wm-0.4.1-r3::gentoo ABI_X86="(64) -32 (-x32)" 315 KiB
[ebuild R ] x11-libs/xcb-util-0.4.0-r2::gentoo ABI_X86="(64) -32 (-x32)" 291 KiB
[ebuild R ] x11-libs/xcb-util-image-0.4.0-r2::gentoo ABI_X86="(64) -32 (-x32)" 321 KiB
[ebuild R ] x11-libs/xcb-util-xrm-1.3-r1::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] x11-libs/xcb-util-cursor-0.1.3-r3::gentoo ABI_X86="(64) -32 (-x32)" 289 KiB |
Cheers, I'll look into it later on tonight |
Distro : Gentoo x86_64
Display server : Xorg
I'm using rust-bin
run it with command
rinse
Then tried to run it with RUST_BACKTRACE=1
Then with RUST_BACKTRACE=full
The text was updated successfully, but these errors were encountered: