playitslowly
playitslowly copied to clipboard
"Gtk_range_set_range: assertion 'min <= max' failed"
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:
- 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.
- 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
I have the same issue in my Arch linux distribution with the repo version.
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:
-
mkdir ~/playitslowly
-
cd ~/playitslowly
-
git clone https://github.com/jwagner/playitslowly.git
- Download the attached patch in the above folder: playitslowly_gstreamer.patch.gz
-
gzip -d playitslowly_gstreamer.patch.gz
-
git apply playitslowly_gstreamer.patch
- 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.