cardo-podcast / cardo

Podcast client
https://cardo-podcast.github.io/
GNU General Public License v3.0
119 stars 9 forks source link

Got black screen after podcast subscription #14

Open vitaly-zdanevich opened 4 weeks ago

vitaly-zdanevich commented 4 weeks ago
  1. Downloaded AppImage (no prior installation)
  2. Made it executable
  3. Start
  4. Find podcast Find your dream job
  5. Subscribe

image

Logs:

$ ./cardo_1.8.0_amd64.AppImage 

** (cardo:2564): WARNING **: 01:38:43.624: atk-bridge: get_device_events_reply: unknown signature
cardo-podcast commented 3 weeks ago

Linux distros are giving a lot of different problems with the builds on releases page, too many different cases. Does it happen with other podcasts? I subscribed to this podcast on Windows and it works as expected. I see on your profile you are a Gentoo fan, is this problem ocurring on Gentoo? Would be a problem for you to compile Cardo from source (just needs to hace rust and pnpm installed, then is just run pnpm tauri build)? It would be nice to have maintainers for different linux distros so this problems are handled by distro specialists, instead of the github actions ubuntu host that is building the releases right now.

vitaly-zdanevich commented 3 weeks ago

is this problem ocurring on Gentoo

Yes, I checked on two computers.

Unable to build:

$ pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

   ╭──────────────────────────────────────────────────────────────────╮
   │                                                                  │
   │                Update available! 9.6.0 → 9.12.2.                 │
   │   Changelog: https://github.com/pnpm/pnpm/releases/tag/v9.12.2   │
   │              Run "pnpm add -g @pnpm/exe" to update.              │
   │                                                                  │
   │         Follow @pnpmjs for updates: https://x.com/pnpmjs         │
   │                                                                  │
   ╰──────────────────────────────────────────────────────────────────╯

Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/vitaly/.local/share/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Downloading @tauri-apps/cli-linux-x64-gnu@1.6.0: 8.46 MB/8.46 MB, done
Downloading typescript@5.2.2: 7.23 MB/7.23 MB, done
Downloading @tauri-apps/cli-linux-x64-musl@1.6.0: 8.46 MB/8.46 MB, done
Progress: resolved 586, reused 0, downloaded 586, added 586, done
node_modules/.pnpm/esbuild@0.21.5/node_modules/esbuild: Running postinstall script, done in 119ms

dependencies:
+ @dnd-kit/core 6.1.0
+ @dnd-kit/sortable 8.0.0
+ @dnd-kit/utilities 3.2.2
+ @tauri-apps/api 1.6.0
+ @types/dompurify 3.0.5
+ date-fns 3.6.0
+ dompurify 3.1.6
+ i18next 23.12.2
+ lodash 4.17.21
+ react 18.2.0
+ react-dom 18.2.0
+ react-i18next 15.0.1
+ react-router-dom 6.25.1
+ react-toastify 10.0.5
+ tauri-plugin-context-menu 0.8.0
+ tauri-plugin-sql-api 0.0.0
+ vite-bundle-visualizer 1.2.1

devDependencies:
+ @tauri-apps/cli 1.6.0
+ @types/lodash 4.17.7
+ @types/react 18.2.15
+ @types/react-dom 18.2.7
+ @vitejs/plugin-react 4.2.1
+ autoprefixer 10.4.19
+ dotenv-cli 7.4.2
+ eslint 8.57.0
+ eslint-config-react-app 7.0.1
+ eslint-plugin-react-refresh 0.4.12
+ postcss 8.4.40
+ prettier 3.3.3
+ prettier-plugin-tailwindcss 0.6.8
+ rollup-plugin-visualizer 5.12.0
+ tailwindcss 3.4.7
+ typescript 5.2.2
+ vite 5.3.1

Done in 55s
✔ ~/p/cardo [master|✔] 
01:08 $ pnpm tauri build

> cardo@1.8.0 tauri /home/vitaly/p/cardo
> dotenv -- tauri "build"

     Running beforeBuildCommand `pnpm build`

> cardo@1.8.0 build /home/vitaly/p/cardo
> tsc && vite build

vite v5.3.1 building for production...
✓ 658 modules transformed.
dist/index.html                           0.39 kB │ gzip:   0.26 kB
dist/assets/icon-Izfudqx4.png            49.49 kB
dist/assets/index-CcGty2V6.css           78.25 kB │ gzip:  13.94 kB
dist/assets/DownloadsPage-Dl4xIpbU.js     1.93 kB │ gzip:   0.91 kB
dist/assets/EpisodePreview-B89QLkBq.js    2.77 kB │ gzip:   1.30 kB
dist/assets/QueuePage-U2Tz5wch.js         7.31 kB │ gzip:   3.04 kB
dist/assets/PodcastPreview-CAAPUqtf.js    7.34 kB │ gzip:   2.65 kB
dist/assets/Settings-CY9SPjCp.js         10.82 kB │ gzip:   2.88 kB
dist/assets/sanitize-mqoL9bc9.js         21.50 kB │ gzip:   8.49 kB
dist/assets/index-Donpuz7l.js           430.66 kB │ gzip: 133.12 kB
✓ built in 1.53s
    Updating crates.io index
    Updating git repository `https://github.com/c2r0b/tauri-plugin-context-menu`
error: failed to get `tauri-plugin-context-menu` as a dependency of package `cardo v1.5.0 (/home/vitaly/p/cardo/src-tauri)`

Caused by:
  failed to load source for dependency `tauri-plugin-context-menu`

Caused by:
  Unable to update https://github.com/c2r0b/tauri-plugin-context-menu?branch=main#992019b2

Caused by:
  failed to clone into: /home/vitaly/.cargo/git/db/tauri-plugin-context-menu-2c3100763c3e1052

Caused by:
  failed to authenticate when downloading repository: git@github.com:c2r0b/tauri-plugin-context-menu

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  no authentication methods succeeded
       Error failed to build app: failed to build app
 ELIFECYCLE  Command failed with exit code 1.
vitaly-zdanevich commented 3 weeks ago

But I cloned successfully manually git@github.com:c2r0b/tauri-plugin-context-menu.git

https://github.com/c2r0b/tauri-plugin-context-menu

cardo-podcast commented 3 weeks ago

Maybe this is due to recent changes on plugin because of tauri v2 release. try removing tauri-plugin-sql line from scr-tauri/Cargo.toml and running command cargo add tauri-plugin-context-menu to install the package.

vitaly-zdanevich commented 3 weeks ago

Removed and ran - the same:

$ cargo add tauri-plugin-context-menu
    Updating git repository `https://github.com/c2r0b/tauri-plugin-context-menu`
error: failed to load source for dependency `tauri-plugin-context-menu`

Caused by:
  Unable to update https://github.com/c2r0b/tauri-plugin-context-menu?branch=main

Caused by:
  failed to fetch into: /home/vitaly/.cargo/git/db/tauri-plugin-context-menu-2c3100763c3e1052

Caused by:
  failed to authenticate when downloading repository: git@github.com:c2r0b/tauri-plugin-context-menu

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  no authentication methods succeeded
cardo-podcast commented 3 weeks ago

check this issue, maybe it's related with your trouble: https://github.com/rust-lang/cargo/issues/3381

vitaly-zdanevich commented 3 weeks ago

ok, now it downloads - anothe build error:

   Compiling tower-service v0.3.2
   Compiling native-tls v0.2.12
   Compiling same-file v1.0.6
   Compiling walkdir v2.5.0
   Compiling kuchikiki v0.8.2
   Compiling glib-macros v0.15.13
   Compiling glib-sys v0.15.10
   Compiling gobject-sys v0.15.10
The following warnings were emitted during compilation:

warning: javascriptcore-rs-sys@0.4.0: 

error: failed to run custom build command for `javascriptcore-rs-sys v0.4.0`

Caused by:
  process didn't exit successfully: `/home/vitaly/p/cardo/src-tauri/target/release/build/javascriptcore-rs-sys-7762442752f40ee1/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags javascriptcoregtk-4.0 javascriptcoregtk-4.0 >= 2.24

  The system library `javascriptcoregtk-4.0` required by crate `javascriptcore-rs-sys` was not found.
  The file `javascriptcoregtk-4.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `javascriptcoregtk-4.0.pc`.

warning: build failed, waiting for other jobs to finish...
       Error failed to build app: failed to build app
 ELIFECYCLE  Command failed with exit code 1.
cardo-podcast commented 3 weeks ago

Seems like this has to do with the problem:

The system library javascriptcoregtk-4.0 required by crate javascriptcore-rs-sys was not found. The file javascriptcoregtk-4.0.pc needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. The PKG_CONFIG_PATH environment variable is not set.

HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing javascriptcoregtk-4.0.pc

vitaly-zdanevich commented 3 weeks ago

javascriptcoregtk-4.0.pc is not found in my home directory.

cardo-podcast commented 3 weeks ago

this come with some library package, on Arch Linux is webkit2gtk

vitaly-zdanevich commented 3 weeks ago

Oh, this is too many dependencies to install :(

big-black-fluid /home/vitaly # emerge -a net-libs/webkit-gtk

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.80 s (backtrack: 0/20).

[ebuild  N     ] dev-util/unifdef-2.12-r1 
[ebuild  N     ] app-eselect/eselect-ruby-20231226 
[ebuild  N     ] dev-util/colm-0.14.7-r3  USE="-doc" 
[ebuild  N     ] media-libs/woff2-1.0.2-r5 
[ebuild  N     ] sys-apps/bubblewrap-0.10.0  USE="(-selinux) -suid" 
[ebuild  N     ] sys-apps/xdg-dbus-proxy-0.1.5  USE="-test" 
[ebuild  N     ] dev-util/ragel-7.0.4-r3  USE="-doc" 
[ebuild  N     ] dev-lang/ruby-3.2.4-r1  USE="gdbm ssl -berkdb -debug -doc -examples -ipv6 (-jemalloc) -jit -socks5 (-static-libs) -systemtap -tk -valgrind -xemacs" 
[ebuild  N     ] virtual/ruby-ssl-13  RUBY_TARGETS="ruby32 -ruby31" 
[ebuild  N     ] dev-ruby/rubygems-3.4.22  USE="-server -test" RUBY_TARGETS="ruby32 -ruby31" 
[ebuild  N     ] virtual/rubygems-19  RUBY_TARGETS="ruby32 -ruby31" 
[ebuild  N     ] dev-ruby/rake-13.2.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/bundler-2.4.22  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31" 
[ebuild  N     ] dev-ruby/matrix-0.4.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/minitest-5.25.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/json-2.7.2-r1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/power_assert-2.0.3  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/test-unit-3.6.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/did_you_mean-1.6.3  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/logger-1.6.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/rbs-3.5.3  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/typeprof-0.21.11  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/strscan-3.1.0  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/rexml-3.3.9  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/rss-0.3.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/date-3.3.4  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/kpeg-1.3.3  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/racc-1.8.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/stringio-3.1.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/psych-5.1.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/rdoc-6.6.3.1-r1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/io-console-0.7.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/reline-0.5.10  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/irb-1.13.2  USE="-test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/debug-1.9.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/forwardable-1.3.3  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/singleton-0.2.0  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/prime-0.1.2-r1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/time-0.4.0  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/timeout-0.4.1  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/net-protocol-0.2.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/net-smtp-0.5.0  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/net-ftp-0.3.7  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/net-imap-0.4.16  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] dev-ruby/net-pop-0.1.2  USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 
[ebuild  N     ] net-libs/webkit-gtk-2.44.4-r600  USE="X avif gstreamer introspection jumbo-build (seccomp) (-aqua) -examples -gamepad -jpegxl -keyring -lcms -pdf -spell -systemd -wayland" 

Would you like to merge these packages? [Yes/No] 
cardo-podcast commented 3 weeks ago

Wow, sorry but I can't help you with Gentoo, I don't know why it wants to install ruby since the app is rust/typescript based. Probably those packages are needed to build webkit that's needed to build cardo... Have you thought switch to ubuntu? 😅

vitaly-zdanevich commented 2 weeks ago

Have you thought switch to ubuntu?

I was in Ubuntu for years - with Gentoo I can build minimal and fast system (automatically compiling packages to non-portable -march=native), more controls here, and rolling releases, without April and October when it reinstall all packages and I need again to remove games and other packages that I do not need.