Panicking when trying to write a song
Shortwave dies when I try to save a song. From an strace, it seems to be looking for this file, which doesn't exist: /home/pi/.var/app/de.haeckerfelix.Shortwave/config/user-dirs.dirs. I tried uninstalling it, removing the entire de.haeckerfelix.Shortwave directory tree and reinstalling it, but the result is the same.
This happens on gnome on the latest Raspbian. In case it matters, ~/Music is a symbolic link to a directory on a mounted USB drive.
This stack trace shows the behavior:
[pid 7835] read(5, "\1\0\0\0\0\0\0\0", 16) = 8 [pid 7835] openat(AT_FDCWD, "/home/pi/.var/app/de.haeckerfelix.Shortwave/config/user-dirs.dirs", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) [pid 7835] write(2, "thread '", 8) = 8 [pid 7835] write(2, "main", 4) = 4 [pid 7835] write(2, "' panicked at '", 15) = 15 [pid 7835] write(2, "called Option::unwrap() on a "..., 43) = 43 [pid 7835] write(2, "', ", 3) = 3 [pid 7835] write(2, "src/libcore/option.rs", 21) = 21 [pid 7835] write(2, ":", 1) = 1 [pid 7835] write(2, "378", 3) = 3 [pid 7835] write(2, ":", 1) = 1 [pid 7835] write(2, "21", 2) = 2 [pid 7835] write(2, "\n", 1) = 1 [pid 7835] write(2, "note: run withRUST_BACKTRACE=1"..., 79) = 79 [pid 7835] sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=8192}, NULL) = 0
The issue seems to be temporarily solved by copying ~/.config/user-dirs.dirs ~/.var/app/de.haeckerfelix.Shortwave/config/. Just FYI, it seems to need a file; a symbolic link didn't work. Anyway, not sure what part of the installation process or initial run is supposed to create that file, but it didn't do it.
After a little while, and a few songs saved, the issue reappears. The file user-dirs.dirs is there and the contents of this file are correct. The stack trace shows:
[pid 4053] read(5, "\1\0\0\0\0\0\0\0", 16) = 8 [pid 4053] openat(AT_FDCWD, "/home/pi/.var/app/de.haeckerfelix.Shortwave/config/user-dirs.dirs", O_RDONLY|O_LARGEFILE) = 34 [pid 4053] fstat64(34, {st_mode=S_IFREG|0600, st_size=633, ...}) = 0 [pid 4053] read(34, "# This file is written by xdg-us"..., 633) = 633 [pid 4053] close(34) = 0 [pid 4053] openat(AT_FDCWD, "/home/pi/.var/app/de.haeckerfelix.Shortwave/cache/Shortwave/recording/Squeeze - Another Nail For My Heart [1981].ogg", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 34 [pid 4053] fcntl64(34, F_GETFD) = 0x1 (flags FD_CLOEXEC) [pid 4053] statx(34, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=2260057, ...}) = 0 [pid 4053] openat(AT_FDCWD, "/home/pi/Music/Squeeze - Another Nail For My Heart [1981].ogg", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLOEXEC, 0100644) = -1 ENOENT (No such file or directory) [pid 4053] close(34) = 0 [pid 4053] write(2, "thread '", 8) = 8 [pid 4053] write(2, "main", 4) = 4 [pid 4053] write(2, "' panicked at '", 15) = 15 [pid 4053] write(2, "Could not copy song to music fol"..., 106) = 106 [pid 4053] write(2, "', ", 3) = 3 [pid 4053] write(2, "src/libcore/result.rs", 21) = 21 [pid 4053] write(2, ":", 1) = 1 [pid 4053] write(2, "1165", 4) = 4 [pid 4053] write(2, ":", 1) = 1 [pid 4053] write(2, "5", 1) = 1 [pid 4053] write(2, "\n", 1) = 1 [pid 4053] write(2, "note: run with
RUST_BACKTRACE=1"..., 79) = 79
[pid 4053] sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=8192}, NULL) = 0
[pid 4053] munmap(0xb6fc3000, 8192) = 0`