playitslowly icon indicating copy to clipboard operation
playitslowly copied to clipboard

"Gtk_range_set_range: assertion 'min <= max' failed"

Open stelkork opened this issue 4 years ago • 2 comments

Hello,

I am not sure if this project is still active, but I just solved a problem in my system. When loading a new music file in Playitslowly, end position cursor used to return to 0 and the app reported the error of the title when pressing "Play" button. After a few tries it worked, but it remained an annoying issue.

Today that I had some time to look into it I found out that Gstreamer's query_position() and query_duration() returned false and -1 the first few times they were called and thus endchooser variable got a wrong value. I worked around this issue by looping the above function calls until they return True, as shown in my diff file attached.

Questions from my side:

  1. Any ideas why this problem appeared? Is it only me or other users have the same issue? Let me know if you want any info about the versions I use.
  2. I am not a Gstreamer expert, but I suspect that in the solution I have provided there may be an infinite loop under certain conditions. Any suggestions for a more elegant way to solve the issue?

Regards, Stelios

Attached: diff_changes_playitslowly.txt

stelkork avatar Dec 29 '20 00:12 stelkork

I have the same issue in my Arch linux distribution with the repo version.

nettoyoussef avatar Apr 18 '21 15:04 nettoyoussef

Hi @nettoyoussef. The above fix seems to be working fine in Ubuntu Studio. If you want you can give it a try, although I am not sure if it is a proper fix or a workaround:

  1. mkdir ~/playitslowly
  2. cd ~/playitslowly
  3. git clone https://github.com/jwagner/playitslowly.git
  4. Download the attached patch in the above folder: playitslowly_gstreamer.patch.gz
  5. gzip -d playitslowly_gstreamer.patch.gz
  6. git apply playitslowly_gstreamer.patch
  7. You can run it with python3 ~/playitslowly/playitslowly/app.py or create a shortcut or permanently install

It seems that the project is not officially supported anymore, so I doubt if I could push the fix, but you can place a comment in case it works for future reference.

stelkork avatar Apr 18 '21 15:04 stelkork