[Bug 1705704]

0 views
Skip to first unread message

Bug-janitor

unread,
May 8, 2024, 1:45:27 AM5/8/24
to amarok-ub...@googlegroups.com
A possibly relevant merge request was started @
https://invent.kde.org/multimedia/amarok/-/merge_requests/94

--
You received this bug notification because you are a member of Amarok
Wolf Brigade, which is subscribed to amarok in Ubuntu.
https://bugs.launchpad.net/bugs/1705704

Title:
Amarok APG: crashes if checkpoint is unassigned in
CheckpointConstraint

To manage notifications about this bug go to:
https://bugs.launchpad.net/amarok/+bug/1705704/+subscriptions

Tuomas-1

unread,
May 8, 2024, 1:45:29 AM5/8/24
to amarok-ub...@googlegroups.com
Git commit 25b763728031b9737f8dce80653086fb0a05e3fc by Tuomas Nurmi.
Committed on 06/05/2024 at 15:14.
Pushed by nurmi into branch 'master'.

Prevent crash in APG when constraint is missing data

I'm not familliar enough with APG to properly assess if the fact noted on the
bug report, that amarok allows to generate an incomplete constraint, should be
fixed or not, but at least it shouldn't crash. So let's fix that.

M +2 -2 ChangeLog
M +2 -0 src/playlistgenerator/constraints/Checkpoint.cpp

https://invent.kde.org/multimedia/amarok/-/commit/25b763728031b9737f8dce80653086fb0a05e3fc

Stharward-x

unread,
May 18, 2024, 11:00:33 AM5/18/24
to amarok-ub...@googlegroups.com
(In reply to Tuomas Nurmi from comment #3)
> Git commit 25b763728031b9737f8dce80653086fb0a05e3fc by Tuomas Nurmi.
> Committed on 06/05/2024 at 15:14.
> Pushed by nurmi into branch 'master'.
>
> Prevent crash in APG when constraint is missing data
>
> I'm not familliar enough with APG to properly assess if the fact noted on the
> bug report, that amarok allows to generate an incomplete constraint, should
> be
> fixed or not, but at least it shouldn't crash. So let's fix that.
>
> M +2 -2 ChangeLog
> M +2 -0 src/playlistgenerator/constraints/Checkpoint.cpp
>
> https://invent.kde.org/multimedia/amarok/-/commit/
> 25b763728031b9737f8dce80653086fb0a05e3fc

Return 1.0 as the value in line 212.

If the user hasn't specified a track for the checkpoint, then the
logical behavior is that any track will satisfy the constraint. So the
APG solver will work better if the constraint always reports that it's
100% satisfied when the track is unspecified.

Tuomas-1

unread,
May 18, 2024, 11:00:38 AM5/18/24
to amarok-ub...@googlegroups.com
Sounds good, makes sense. Change committed in
https://invent.kde.org/multimedia/amarok/-/commit/aad011a2ab722fd363870e7aa502e1663bee33bc
- thank you for the comment!
Reply all
Reply to author
Forward
0 new messages