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

Widget is empty #35

Open
KOT040188 opened this issue Oct 15, 2017 · 69 comments · May be fixed by #53
Open

Widget is empty #35

KOT040188 opened this issue Oct 15, 2017 · 69 comments · May be fixed by #53
Labels

Comments

@KOT040188
Copy link

http://itmages.ru/image/view/6173594/3799b749
This picture shows that the widget is empty. This behavior of the widget is observed in kubuntu 16.04 and mint 18. At the same time its settings open normally.

@ghost
Copy link

ghost commented Oct 16, 2017

Same here, openSUSE 42.3.
Using DE: KDE 5.32.0 / Plasma 5.8.7
MP: Clementine 1.3.1
Just work the button Pause and not resume again.

@KOT040188
Copy link
Author

What am I supposed to do?

@ghost
Copy link

ghost commented Oct 22, 2017

we need to wait support.

Sent from my Mi A1 using FastHub

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

I will fix, give me a hours.

What is your media player? @KOT040188

@jsmitar jsmitar added the bug label Nov 5, 2017
@KOT040188
Copy link
Author

I updated kubuntu before 17.10 and the widget began to show its interface. But he works strange. It does not support lollypop and cantata. I do not have other audio players. The widget supports only kradio. Immediately after starting and pressing the pause button, the widget sets the sound in the system to zero. The following presses on this button work fine.
Strange widget ...

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

Only occur with KRadio?

Immediately after starting and pressing the pause button, the widget sets the sound in the system to zero.

Do you have enable Mpris support in Cantata?

it does not support lollypop and cantata.

@KOT040188
Copy link
Author

KOT040188 commented Nov 5, 2017

Only occur with KRadio?

I have no other applications.

Do you have enable Mpris support in Cantata?

The regular audio player management widget works well with lollypop and cantata. Why can not PlayBar2 do this?

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

Then it must be an bug from my widget.

The regular audio player management widget works well with lollypop and cantata. Why can not PlayBar2 do this?

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

I'm downloading cantata and lollypop to test my widget.

If I find the error, I will notify you.

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

I try to start Lollipop but it does not start.

With respect to cantata, my widget works normally, I can use play/pause, stop and seek slider.
what exactly the problem?

@KOT040188
Copy link
Author

KOT040188 commented Nov 5, 2017

Kubuntu 17.10 + backports. The playbar2 2.5 widget does not work with lollypop and cantata.

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

Please follow this steps:

  1. go to Cantata configure...
  2. Interface > click on tab: External
  3. check MPRIS D-Bus interface
  4. check show icon in notification area

play any song, close cantata from the titlebar and paste a screenshot.

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

show me a screenshot of cantanta and playbar

@KOT040188
Copy link
Author

I can make it easier. I'll write a video tomorrow.

@jsmitar
Copy link
Owner

jsmitar commented Nov 5, 2017

ok, dont worry

@KOT040188
Copy link
Author

https://youtu.be/qV6zJld4dRY But I managed to get the PlayBar2 widget to work with lollypop and cantata. The problem is that PlayBar2 does not know how to switch between applications on the fly. The standard widget kde knows how to do this. Kradio starts with the system and hangs in the tray. Therefore, if you click on the play button in PlayBar2, it will turn on Kradio. If you close Kradio, then PlayBar2 will be able to switch to the next running player and become attached to it (eg lollypop). On the other players, he will not react until I turn off the lollypop.

@KOT040188
Copy link
Author

KOT040188 commented Nov 6, 2017

https://youtu.be/VCYEiqHZ-Hc This video shows that the sound level in the system is set to zero when the pause button is first pressed.

@KOT040188
Copy link
Author

I really liked PlayBar2. I want to use it. But these bugs interfere with me ...

@jsmitar
Copy link
Owner

jsmitar commented Nov 6, 2017

@KOT040188 Hello again. Give me a few minutes I will try to understand what happens.

@jsmitar
Copy link
Owner

jsmitar commented Nov 6, 2017

It is possible that it is an error of KRadio4, I was only able to reproduce the bug once, however I will continue testing with KRadio.

This video shows that the sound level in the system is set to zero when the pause button is first pressed.

I suppose it is an error in how PlayBar selects the source automatically.

The problem is that PlayBar2 does not know how to switch between applications on the fly.

Can you try to run playbar from the terminal and paste the output of the terminal?
plasmoidviewer -a audoban.applet.playbar

remember install plasma-sdk to use plasmoidviewer

@KOT040188
Copy link
Author

It is possible that it is an error of KRadio4, I was only able to reproduce the bug once, however I will continue testing with KRadio.

No. If I do not run kradio, then the behavior of playbar2 with other players will be exactly the same.

I suppose it is an error in how PlayBar selects the source automatically.

Playbar2 does not know how to automatically select a active player. He is attached to the first running player. This is the problem. Standard widget can automatically select the active player.

Can you try to run playbar from the terminal and paste the output of the terminal?

I can do it tomorrow. It's night ...

jsmitar added a commit that referenced this issue Nov 7, 2017
@jsmitar
Copy link
Owner

jsmitar commented Nov 7, 2017

Please test with this version, now you can select the prefered source.
https://github.com/audoban/PlayBar2/tree/newfeatures

spectacle ns2699

@KOT040188
Copy link
Author

Sorry, but I can not compile

@KOT040188
Copy link
Author

KOT040188 commented Nov 7, 2017

kot@kot-MS-7930:~$ plasmoidviewer -a audoban.applet.playbar QML debugging is enabled. Only use this in a safe environment. Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/16@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/22/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/24/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/24@2x/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/16@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/22/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/24/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/24@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/24@2x/panel/" Invalid Context= "Notifications" line for icon theme: "/usr/share/icons/Numix/48/notifications/" Invalid Context= "Notifications" line for icon theme: "/home/kot/.local/share/icons/Numix/48@2x/notifications/" Invalid Context= "Notifications" line for icon theme: "/usr/share/icons/Numix/48@2x/notifications/" Icon theme "gnome" not found. Toolbox not loading, toolbox package is either invalid or disabled. Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion <Unknown File>: QML Plasmoid: Binding loop detected for property "preferredRepresentation" file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML QQuickItem: Binding loop detected for property "implicitWidth" file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML QQuickItem: Binding loop detected for property "implicitWidth"

@KOT040188
Copy link
Author

How do I get the finished compiled widget?

@jsmitar
Copy link
Owner

jsmitar commented Nov 7, 2017

Download the version of the branch newfeatures and install the dependences for build Playbar.
and for install the widget:

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make && sudo make install

Playbar newfeatures

@KOT040188
Copy link
Author

Why can not you give me a finished package? I do not understand what to do.

@KOT040188
Copy link
Author

This occurs regardless of the player.

@KOT040188
Copy link
Author

After switching to a new player, first press the pause button decreases the volume level to zero. Above I gave a link to the video.

@jsmitar
Copy link
Owner

jsmitar commented Nov 9, 2017

I still can not find the origin. Since this does not happen on my desktop

@KOT040188
Copy link
Author

The video shows how it happens. I can record videos again in the evening.

@KOT040188
Copy link
Author

Thank you for your patience. In the process of recording the video, I found out that I was mistaken. A bug with loudness only occurs in kradio. playbar2 has nothing to do with this bug. This bug probably appeared on 17.10. At 16.04 I did not notice it. The widget works fine. All is well.

@KOT040188
Copy link
Author

KOT040188 commented Nov 9, 2017

Not all is well. I noticed that the playbar2 works very strange if the composition in the player is long. For example, about one hour. In this case, playbar2 very oddly displays the scroll bar https://youtu.be/xBwFMy6AAKo

@jsmitar
Copy link
Owner

jsmitar commented Nov 10, 2017

Not all is well. I noticed that the playbar2 works very strange if the composition in the player is long. For example, about one hour. In this case, playbar2 very oddly displays the scroll bar

Thanks a lot by your feedback, I will fix this bug soon 👍

@jsmitar
Copy link
Owner

jsmitar commented Nov 10, 2017

I have made many improvements to the widget.

  • nextSource is now more predictable
  • the track position was improved, now can show the position with the format H:MM:SS
  • now the widget can remember more identities, icons and sources
  • The indefinite behavior when a source is added has been eliminated mostly

Not all is well. I noticed that the playbar2 works very strange if the composition in the player is long. For example, about one hour. In this case, playbar2 very oddly displays the scroll bar

Regarding this bug. I can confirm that it is not my widget fault
For the current position of the song to be displayed correctly, the widget needs 3 things. The total size of the song (the property xesam:length from mpris interface), the position, and the last update of the position on UTC format. But Cantata has a problem is that when the song is too long, it does not give me the property xesam length, without that I can not calculate the time remaining.

I'm still investigating about the problem of the action Pause

@jsmitar
Copy link
Owner

jsmitar commented Nov 10, 2017

You can check my last updates from my branch newfeatures

@jsmitar
Copy link
Owner

jsmitar commented Nov 10, 2017

The bug was reported to Cantata team: CDrummond/cantata#1119

@KOT040188
Copy link
Author

KOT040188 commented Nov 10, 2017

Thank you! This bug is also evident in the standard widget.

@KOT040188
Copy link
Author

I compiled the new version. There is one incomprehensible moment. I included playbar2 in the tray settings so that the widget would appear automatically when playing music. But the widget appears immediately when the system starts. This is because when I start the system, I run kradio.
But kradio at startup is in stopped mode and does not play music. Playbar2 should not appear when running kradio. I do not understand this ...

@KOT040188
Copy link
Author

Is it possible to exclude kradio from the playbar2 list? Is it possible to configure playbar2 so that it does not see kradio.

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

This is a normal behavior, Playbar appears automatically whenever there is a source available.

There is one incomprehensible moment. I included playbar2 in the tray settings so that the widget would appear automatically when playing music. But the widget appears immediately when the system starts.

There is no such list, only this line, this line is what allows playbar to be displayed automatically

Is it possible to exclude kradio from the playbar2 list? Is it possible to configure playbar2 so that it does not see kradio.

Technically PlayBar2 appears when KRadio creates the interface in DBUS

Playbar2 should not appear when running kradio.

my suggestion is: remove the Mpris2 plugin from Radio, if you consider that it is not necessary

@KOT040188
Copy link
Author

This is a normal behavior, Playbar appears automatically whenever there is a source available.

There is no source! Kradio does not play anything! When I run cantata or lollypop, playbar2 does not appear automatically.

There is no such list, only this line, this line is what allows playbar to be displayed automatically

Can add an exception list to the widget?

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

That is not true, playbar is activated when there is a source in Dbus.
spectacle ti7845
Cantata is stopped

When I run cantata or lollypop, playbar2 does not appear automatically.

I'm going to try to exclude Radio from the expression

Can add an exception list to the widget?

@KOT040188
Copy link
Author

KOT040188 commented Nov 11, 2017

That is not true, playbar is activated when there is a source in Dbus.

Yes you are right. I made a mistake. I'm sorry. I remembered the behavior of the standard widget. After running lollypop, playbar2 appears and it does not work until I start playing in lollypop. This is strange…

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

The overflow of the property mpris:length was fixed in the master.
CDrummond/cantata#1119

spectacle kn1120

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

I tried to use a glob expression but it did not work for me. I do not think it's easy to achieve it.

Can add an exception list to the widget?

@KOT040188
Copy link
Author

The automatic selection of the active player is often changed to kradio. I could not understand the reason.

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

When a source is added for the first time, playbar makes the connection to that source, and the "automatic source (@multiplex)" has the the lowest priority.

However I have thought that it may be more convenient to give the highest priority to @multiplex, because the @multiplex source is automatically connected to any source that is playing a track.

Do you think it is more convenient to give higher priority to @multiplex?

@KOT040188
Copy link
Author

To be honest I did not understand you. I need to automatic selection of the player has not changed for a specific player without my participation.

@jsmitar
Copy link
Owner

jsmitar commented Nov 11, 2017

I'm sorry for not making me explain well, but I understand what you said
Please update your branch newfeatures, I have uploaded some commits I hope to solve your problem

@KOT040188
Copy link
Author

KOT040188 commented Sep 19, 2018

@audoban, hi. I have not been here for a long time. I see that all the changes that you made for me were gone. I compiled the widget and it is an older version. How is the development going? The project is abandoned? what happened?

I have one more small request. Every time I restart the system in the source selection menu, the checkmark is on kradio. But I need to check always on automatic source selection. How can I do that? Thank you.

@KOT040188
Copy link
Author

@audoban, what happened?

@dkadioglu
Copy link
Contributor

For me it is the same: the widget is empty (https://pasteboard.co/HZzNHdv.png)
I'm using Arch Linux:

OS: Arch Linux
KDE Plasma version: 5.14.5
Qt version: 5.12.1
KDE Frameworks version: 5.54.0
Kernel version: 4.20.6-arch1-1-ARCH

@KOT040188
Copy link
Author

The developer has not responded for a long time. This is odd.

@dkadioglu dkadioglu linked a pull request Feb 14, 2019 that will close this issue
@StarrKiss
Copy link

Same error here:
bug

@dvivanov00
Copy link

I have the same issue. I am on Manjaro KDE 20.0.2:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants