Skip to content
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

MPRIS error #1124

Open
flg opened this issue Oct 11, 2021 · 6 comments
Open

MPRIS error #1124

flg opened this issue Oct 11, 2021 · 6 comments
Labels
bug mpris dbus media player interface

Comments

@flg
Copy link

flg commented Oct 11, 2021

After moving from CentOS 8 to CentOS Stream 8 (can't tell if it's related or not), I get this error:

cmus: Error: an error occured while initializing MPRIS: Invalid argument. MPRIS will be disabled.
cmus: Press <enter> to continue.

Dbus is running. DBUS_SESSION_BUS_ADDRESS is properly set in the environment.


  1. uname -a:
Linux pcatd47 4.18.0-338.el8.x86_64 #1 SMP Fri Aug 27 17:32:14 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  1. cmus --version:
cmus v2.9.1
Copyright 2004-2006 Timo Hirvonen
Copyright 2008-2016 Various Authors
  1. cmus --plugins:
Input Plugins: /usr/lib64/cmus/ip
  mad:
    Priority: 55
    File Types: mp3 mp2
    MIME Types: audio/mpeg audio/x-mp3 audio/x-mpeg
  aac:
    Priority: 50
    File Types: aac
    MIME Types: audio/aac audio/aacp
  cue:
    Priority: 50
    File Types:
    MIME Types: application/x-cue
  flac:
    Priority: 50
    File Types: flac fla
    MIME Types:
  modplug:
    Priority: 50
    File Types: mod s3m xm it 669 amf ams dbm dmf dsm far mdl med mtm okt ptm stm ult umx mt2 psm
    MIME Types:
  mp4:
    Priority: 50
    File Types: mp4 m4a m4b
    MIME Types:
  mpc:
    Priority: 50
    File Types: mpc mpp mp+
    MIME Types: audio/x-musepack
  opus:
    Priority: 50
    File Types: opus
    MIME Types:
  vorbis:
    Priority: 50
    File Types: ogg oga ogx
    MIME Types: application/ogg audio/x-ogg
  wav:
    Priority: 50
    File Types: wav
    MIME Types:
  wavpack:
    Priority: 50
    File Types: wv
    MIME Types: audio/x-wavpack
  ffmpeg:
    Priority: 30
    File Types: aa aac ac3 aif aifc aiff ape au fla flac m4a m4b mka mkv mp+ mp2 mp3 mp4 mpc mpp ogg opus shn tak tta wav webm wma wv
    MIME Types:

Output Plugins: /usr/lib64/cmus/op
  pulse
  alsa
  ao
@nefthy nefthy added bug mpris dbus media player interface labels Oct 11, 2021
@mertoalex
Copy link

I too get this cmus: Error: an error occured while initializing MPRIS: No medium found. MPRIS will be disabled. error in arch wsl 2

@Spilskinanke
Copy link

I may be getting a similar error, with cmus: Error: an error occured while initializing MPRIS: File Exists. MPRIS will be disabled.
On top of that cmus can no longer play music. Hitting enter on a track will mark it as playing but it will be stuck at 00:00. Seeking through the track will update accordingly but the music will still not play. Hitting c during this point will cause it to crash and requires it to be manually killed.
uname -a:
Linux fedora 5.14.11-200.fc34.x86_64 #1 SMP Sun Oct 10 14:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
My other commands are identical to that of the OP.

@Koshkov
Copy link

Koshkov commented Nov 1, 2021

I was having the same issue on Void Linux. However, I was able to resolve the issue by editing the autosave file. I should note that I am using PulseAudio, and the default configuration was set to use ALSA, so changing those settings in addition to disabling MPRIS seemed to fix it. I'm using cmus v2.9.1

The file is located:
~/.config/cmus/autosave
I changed the following settings to:
set mpris=false
set dsp.alsa.device=
set mixer.alsa.channel=
set mixer.alsa.device=
set output_plugin=pulse
After changing these settings, cmus began to work as usual. Hope this helps!

@flg
Copy link
Author

flg commented Nov 1, 2021

@Koshkov Disabling mpris via the autosave file does indeed make the error disappear. It does not solve the original issue that MPRIS is not working whereas it should.

@tidux
Copy link

tidux commented Jan 9, 2022

Seeing this on the Flathub package.

@MikHulk
Copy link

MikHulk commented Oct 23, 2022

Same issue on FreeBSD current.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mpris dbus media player interface
Projects
None yet
Development

No branches or pull requests

7 participants