Thanks! This works for me.
For reference, I used:
#sudo apt install transmission-gtk/trixie-backports
#transmission-gtk # reproduce crash by toggling alternate speeds while a
torrent active & downloading
#sudo vim /etc/apt/sources.list.d/debian.sources # add deb-src
trixie-backports
#sudo apt update
VERSION=$(dpkg -l transmission-gtk | awk '/ii/{print $3}')+jan1
cd src/
apt-get source transmission-gtk/trixie-backports
cd transmission-*/
cat > debian/patches/fix-alt-speed-enabled.patch << 'EOF'
--- a/gtk/Application.cc
+++ b/gtk/Application.cc
@@ -1270,7 +1270,7 @@ void Application::Impl::on_prefs_changed(tr_quark
const key)
{
bool const b = gtr_pref_flag_get(key);
tr_sessionUseAltSpeed(tr, b);
-
gtr_action_set_toggled(std::string(tr_quark_get_string_view(key)), b);
+ gtr_action_set_toggled("alt-speed-enabled", b);
break;
}
EOF
sed -i '1s/^/fix-alt-speed-enabled.patch\n/' debian/patches/series
#cat debian/source/format
#sudo apt install quilt
quilt pop -a
quilt push -a
grep "alt-speed-enabled\|tr_quark_get_string_view" gtk/Application.cc
#sudo apt install devscripts
dch -v "${VERSION}" "Fix crash when toggling scheduled speed limits
(alt-speed-enabled quark/action name mismatch)"
sudo apt-get build-dep transmission-gtk
dpkg-buildpackage -us -uc -b 2>&1 | tee ../build.log
sudo dpkg -i ../transmission-gtk_*+jan1_amd64.deb
../transmission-common_*+jan1_amd64.deb
#transmission-gtk # bug not reproducible
I then reinstalled trixie-backports, without the patch. This time, again
while a torrent was actively downloading, I could NOT reproduce the bug
within two minutes. It usually crashes within 30 seconds of rapidly
enabling and disabling alternate speeds. In any case, it looks like a fix
from my perspective. I am running the self-built deb with the patch again
now.
Regards,
Jan
On Thu, 19 Mar 2026 at 21:00, Alexandre Rossi <[email protected]> wrote:
> Control: tag -1 patch
>
> Hi,
>
> > I'm afraid I'm not a C++ developer so cannot comment on the code
> internals
> > or the proposed patch. I am however familiar with deb packaging and can
> > apt-get source and rebuild a patched package myself if that would help.
>
> upstream has proposed the following fix, it seems you had nailed down the
> problem..
>
> --- a/gtk/Application.cc
> +++ b/gtk/Application.cc
> @@ -1270,7 +1270,7 @@ void Application::Impl::on_prefs_changed(tr_quark
> const key)
> {
> bool const b = gtr_pref_flag_get(key);
> tr_sessionUseAltSpeed(tr, b);
> -
> gtr_action_set_toggled(std::string(tr_quark_get_string_view(key)), b);
> + gtr_action_set_toggled("alt-speed-enabled", b);
> break;
> }
>
> It would be great if you can confirm it fixes this issue.
>
> Thanks,
>
> Alex
>