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

Unmute after add not working #47

Closed
nicolito opened this issue Jul 8, 2015 · 5 comments
Closed

Unmute after add not working #47

nicolito opened this issue Jul 8, 2015 · 5 comments

Comments

@nicolito
Copy link

nicolito commented Jul 8, 2015

Blockify detects and blocks adds (mutes program mixer) but does not unmute it after add finishes.
I have to manually enter sound controls and unmute the spotify mixer after each add.

When using a playlist it furthermore does not resume playing on spotify after the playlist song finishes. I have to restart spotify to make it posible to play the next song. Seems like signals only go one way:
spotify->blockify
not
blockify->spotify
Here is the version number and logfile of the last try.
blockify --version 1.8.7

2015-07-08 15:09:04 DEBUG    util     Added logging file handler: /home/niceri/logfile.
2015-07-08 15:09:04 INFO     util     Loading configuration.
2015-07-08 15:09:04 INFO     util     Configuration file loaded from /home/niceri/.config/blockify/blockify.ini.
2015-07-08 15:09:04 INFO     list     Blocklist loaded from /home/niceri/.config/blockify/blocklist.txt.
2015-07-08 15:09:04 INFO     player   InterludePlayer initialized.
2015-07-08 15:09:04 DEBUG    player   Loading playlist.
2015-07-08 15:09:04 DEBUG    player   Stop: State is (<enum GST_STATE_CHANGE_SUCCESS of type GstStateChangeReturn>, <enum GST_STATE_NU$
2015-07-08 15:09:04 DEBUG    player   Setting interlude to: /home/niceri/Music/Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a
2015-07-08 15:09:04 INFO     player   Playlist loaded (Length: 1263).
2015-07-08 15:09:04 INFO     player   Playlist: ['Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a', 'rebuild.pdf', 'tuning.pdf',$
2015-07-08 15:09:04 DEBUG    main     Mute method is pulse sink.
2015-07-08 15:09:04 INFO     main     Blockify initialized.
2015-07-08 15:09:04 INFO     main     Blockify started.
2015-07-08 15:15:27 INFO     main     Muting Amason – Ålen.

And here is some output copied from the console when using a personal playlist and blockify -vvv (unecessary info removed)

2015-07-08 14:54:10 INFO     main     Blockify started.
2015-07-08 15:05:34 INFO     main     Muting Absolute Dance – Absolute Dance.
2015-07-08 15:05:35 INFO     player   Playing interlude: /home/niceri/Music/Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a
2015-07-08 15:05:35 DEBUG    player   Play: State is (<enum GST_STATE_CHANGE_FAILURE of type GstStateChangeReturn>, <enum GST_STATE_READY of type GstState>, <enum GST_STATE_PLAYING of type GstState>).
2015-07-08 15:05:38 DEBUG    player   Setting index to: 1.
2015-07-08 15:05:38 DEBUG    player   Setting interlude to: file:///home/niceri/Music/Fields of Africa.flac
2015-07-08 15:05:38 DEBUG    player   Setting index to: 0.
2015-07-08 15:05:38 INFO     player   Playing interlude: file:///home/niceri/Music/Fields of Africa.flac
2015-07-08 15:05:38 DEBUG    player   Play: State is (<enum GST_STATE_CHANGE_SUCCESS of type GstStateChangeReturn>, <enum GST_STATE_PLAYING of type GstState>, <enum GST_STATE_VOID_PENDING of type GstState>).
2015-07-08 15:05:38 INFO     main     Muting Absolute Dance – Absolute Dance.

2015-07-08 15:06:35 INFO     main     Muting Topsify – FRESH.
2015-07-08 15:06:35 DEBUG    player   Setting index to: 1.
2015-07-08 15:06:35 DEBUG    player   Setting interlude to: file:///home/niceri/Music/Fields of Africa.mp3
2015-07-08 15:06:35 DEBUG    player   Interlude song finished. Queued: file:///home/niceri/Music/Fields of Africa.mp3.
2015-07-08 15:06:35 INFO     main     Muting Topsify – FRESH.
^C2015-07-08 15:08:26 DEBUG    main     2 received. Exiting safely.
2015-07-08 15:08:26 INFO     main     Exiting safely. Bye.

(blockify:30236): GStreamer-CRITICAL **: Failed to deactivate pad mpegaudioparse0:sink, very bad
2015-07-08 15:08:26 DEBUG    player   Stop: State is (<enum GST_STATE_CHANGE_SUCCESS of type GstStateChangeReturn>, <enum GST_STATE_NULL of type GstState>, <enum GST_STATE_VOID_PENDING of type GstState>).
Traceback (most recent call last):
  File "/usr/bin/blockify", line 9, in <module>
    load_entry_point('blockify==1.8.7', 'console_scripts', 'blockify')()
  File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 453, in main
    blockify.start()
  File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 122, in start
    gtk.main()
KeyboardInterrupt

I am furthermore using spotify on Arch linux, installed from the AUR.

Any idea on how to debug this would be appreciated.

@gmdfalk
Copy link
Owner

gmdfalk commented Jul 8, 2015

Thanks I'll Look into it

On Wednesday, 8 July 2015, nicolito notifications@github.com wrote:

Blockify detects and blocks adds (mutes program mixer) but does not unmute
it after add finishes.
I have to manually enter sound controls and unmute the spotify mixer after
each add.

When using a playlist it furthermore does not resume playing on spotify
after the playlist song finishes. I have to restart spotify to make it
posible to play the next song. Seems like signals only go one way:
spotify->blockify
not
blockify->spotify
Here is the version number and logfile of the last try.
blockify --version
1.8.7

2015-07-08 15:09:04 DEBUG util Added logging file handler: /home/niceri/logfile.
2015-07-08 15:09:04 INFO util Loading configuration.
2015-07-08 15:09:04 INFO util Configuration file loaded from /home/niceri/.config/blockify/blockify.ini.
2015-07-08 15:09:04 INFO list Blocklist loaded from /home/niceri/.config/blockify/blocklist.txt.
2015-07-08 15:09:04 INFO player InterludePlayer initialized.
2015-07-08 15:09:04 DEBUG player Loading playlist.
2015-07-08 15:09:04 DEBUG player Stop: State is (, <enum GST_STATE_NU$
2015-07-08 15:09:04 DEBUG player Setting interlude to: /home/niceri/Music/Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a
2015-07-08 15:09:04 INFO player Playlist loaded (Length: 1263).
2015-07-08 15:09:04 INFO player Playlist: ['Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a', 'rebuild.pdf', 'tuning.pdf',$
2015-07-08 15:09:04 DEBUG main Mute method is pulse sink.
2015-07-08 15:09:04 INFO main Blockify initialized.
2015-07-08 15:09:04 INFO main Blockify started.
2015-07-08 15:15:27 INFO main Muting Amason – Ålen.

And here is some output copied from the console when using a personal
playlist and blockify -vvv (unecessary info removed)

2015-07-08 14:54:10 INFO main Blockify started.
2015-07-08 15:05:34 INFO main Muting Absolute Dance – Absolute Dance.
2015-07-08 15:05:35 INFO player Playing interlude: /home/niceri/Music/Ricardo Arjona - Vida (Video Oficial)-Jzn3yVu1XsE.m4a
2015-07-08 15:05:35 DEBUG player Play: State is (, , ).
2015-07-08 15:05:38 DEBUG player Setting index to: 1.
2015-07-08 15:05:38 DEBUG player Setting interlude to: file:///home/niceri/Music/Fields of Africa.flac
2015-07-08 15:05:38 DEBUG player Setting index to: 0.
2015-07-08 15:05:38 INFO player Playing interlude: file:///home/niceri/Music/Fields of Africa.flac
2015-07-08 15:05:38 DEBUG player Play: State is (, , ).
2015-07-08 15:05:38 INFO main Muting Absolute Dance – Absolute Dance.

2015-07-08 15:06:35 INFO main Muting Topsify – FRESH.
2015-07-08 15:06:35 DEBUG player Setting index to: 1.
2015-07-08 15:06:35 DEBUG player Setting interlude to: file:///home/niceri/Music/Fields of Africa.mp3
2015-07-08 15:06:35 DEBUG player Interlude song finished. Queued: file:///home/niceri/Music/Fields of Africa.mp3.
2015-07-08 15:06:35 INFO main Muting Topsify – FRESH.
^C2015-07-08 15:08:26 DEBUG main 2 received. Exiting safely.
2015-07-08 15:08:26 INFO main Exiting safely. Bye.

(blockify:30236): GStreamer-CRITICAL **: Failed to deactivate pad mpegaudioparse0:sink, very bad
2015-07-08 15:08:26 DEBUG player Stop: State is (, , ).
Traceback (most recent call last):
File "/usr/bin/blockify", line 9, in
load_entry_point('blockify==1.8.7', 'console_scripts', 'blockify')()
File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 453, in main
blockify.start()
File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 122, in start
gtk.main()
KeyboardInterrupt

I am furthermore using spotify on Arch linux, installed from the AUR.

Any idea on how to debug this would be appreciated.


Reply to this email directly or view it on GitHub
#47.

@gmdfalk
Copy link
Owner

gmdfalk commented Jul 8, 2015

I cannot reproduce this with ArchLinux.
Did you do a system update today and/or haven't rebooted in a while? If so, please do a reboot and try to reproduce the error again.
On the other hand, if you haven't updated in a while, it might help, too.

As far as debugging this error, this seems to be an error specific to your configuration. Try deleting all files/folders in ~/.config/blockify except for the playlist (if you want to keep it). Make sure your audio/pulseaudio configuration isn't faulty. Are notifications working on your system? Any dbus misconfiguration? Your guess is as good as mine right now ;)
The one thing i could look at is your pulse sink info. See the troubleshooting section of the blockify readme on how to get that info.

Regards

@nicolito
Copy link
Author

nicolito commented Jul 9, 2015

Thanks for confirming that the error is with my configuration.
I regularly update the system and did remove the files configuration files in blcokify before submitting the issue. It must be something else than blockify. I will try to understand how my dbus works. Notifications work however.
This is my pulse sink info:

pacmd list-sink-inputs | curl -F c=@- https://ptpb.pw
long: AGIEsoAOYHTBPoXJw-EPguOCbHef
sha1: 6204b2800e6074c13e85c9c3e10f82e3826c779f
short: bHef
status: created
url: https://ptpb.pw/bHef
uuid: df566db7-2f62-49c8-abd9-3de97b6a9c33

I hope it makes sense to you. I do not understand what it says.

I tried playing with a playlist once more with the same result. Music didn't resume and couldn't be started after add stopped. The block was however released somehow after killing blockify with ctrl-c. I could start the music, but the mixer was still muted.
I don't know if this tells you what happens, but here is the last ouptut from the console when stopping blockify with ctrl-c:

2015-07-09 09:27:27 INFO     main     Muting Travie McCoy – Golden.
2015-07-09 09:27:27 DEBUG    player   Setting index to: 1.
2015-07-09 09:27:27 DEBUG    player   Setting interlude to: file:///home/niceri/Music/Fields of Africa.mp3
2015-07-09 09:27:27 DEBUG    player   Interlude song finished. Queued: file:///home/niceri/Music/Fields of Africa.mp3.
2015-07-09 09:27:27 INFO     main     Muting Travie McCoy – Golden.
2015-07-09 09:27:27 INFO     main     Muting Travie McCoy – Golden.
2015-07-09 09:27:28 INFO     main     Muting Travie McCoy – Golden.
2015-07-09 09:27:28 INFO     main     Muting Travie McCoy – Golden.
^C2015-07-09 09:28:12 DEBUG    main     2 received. Exiting safely.
2015-07-09 09:28:12 INFO     main     Exiting safely. Bye.

(blockify:10647): GStreamer-CRITICAL **: Failed to deactivate pad mpegaudioparse0:sink, very bad
2015-07-09 09:28:12 DEBUG    player   Stop: State is (<enum GST_STATE_CHANGE_SUCCESS of type GstStateChangeReturn>, <enum GST_STATE_NULL of type GstState>, <enum GST_STATE_VOID_PENDING of type GstState>).
Traceback (most recent call last):
  File "/usr/bin/blockify", line 9, in <module>
    load_entry_point('blockify==1.8.7', 'console_scripts', 'blockify')()
  File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 453, in main
    blockify.start()
  File "/usr/lib/python2.7/site-packages/blockify/blockify.py", line 122, in start
    gtk.main()
KeyboardInterrupt

I will read up on dbus now

Thanks for taking the time

@gmdfalk
Copy link
Owner

gmdfalk commented Jul 10, 2015

In the blockify.ini, change
pacmd_muted_value = yes
to
pacmd_muted_value = ja

I really have to implement a language agnostic solution instead of this configuration switch. Will come with the next version.

@nicolito
Copy link
Author

Thankyou,
That solved all issues.
A language agnostic version would certainly be a good idea. In the meanwhile you could just add a comment about it in the "Troubleshooting" section of your instructions.

Your help, as well as your software, has been very much appreciated

@gmdfalk gmdfalk closed this as completed Jul 11, 2015
gmdfalk pushed a commit that referenced this issue Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants