inactive 'History' tab text always updates after PP, but not always with correct text, when UI refresh is 1 second

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
OneCD
Hero Member
Hero Member
Posts: 610
Joined: March 4th, 2017, 3:47 pm

inactive 'History' tab text always updates after PP, but not always with correct text, when UI refresh is 1 second

Post by OneCD »

Hi guys, I've been seeing this for a while and thought I should do some investigation today so I can report it. 🤓
  • SABnzbd 4.4.0 from source on Debian 12.10
  • Accessing the UI via Firefox 136.0.3 (although, this bug has been around for multiple Debian, Firefox and SABnzbd versions). Also checked this in Chromium 134.0.6998.35
  • UI access is via HTTP-only on a separate LAN PC.
  • UI theme is glitter-night.
  • UI is using tabbed layout.
  • Python 3.11.2
  • 1GbE LAN.
  • SABnzbd web interface refresh is set to 1 second (note: bug does not occur when this is set to 2 seconds).
I have a UI session open in Firefox, and have the 'Queue' (or 'Warnings') tab active. A job completes downloading and passes into the 'History' tab. The history tab text updates and shows "1 1" (as-expected) while post-processing occurs.

Post-processing completes, but the 'History' tab text doesn't always update correctly. Sometimes it will show "1" (which I think is correct), sometimes it shows "1 2" (incorrect). This happens regardless of the exit status of post-processing. The 'History' tab text will stay like this until I refresh/reload the web page (but I assume if another job is processed, it will update itself). After refresh, the ‘History’ tab text is “1”.

This occurs at-random (but only when the tab text should be updated).

With 2 different browsers open (Firefox and Chromium), it can occur in one browser window and not the other, and appears to be random as-to which browser it is displayed incorrectly. Sometimes it works fine in both, sometimes it fails in both.
  • If I switch the SABnzbd web interface refresh to 2 seconds, it appears to be 100% reliable. 'History' tab text updates correctly to "1" on next item processing if the history has been cleared.
  • If I have the 'History' tab active when post-processing is complete, it also appears to be 100% reliable.
In short: the inactive 'History' tab text always updates after post-processing, but not always with the correct text, when the UI refresh is 1 second.

Thoughts?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5580
Joined: April 30th, 2015, 7:35 am
Contact:

Re: inactive 'History' tab text always updates after PP, but not always with correct text, when UI refresh is 1 second

Post by safihre »

Interesting! If you make a bug report for it on Github I won't forget to check it out and see if I can fix it!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 610
Joined: March 4th, 2017, 3:47 pm

Re: inactive 'History' tab text always updates after PP, but not always with correct text, when UI refresh is 1 second

Post by OneCD »

... and done: https://github.com/sabnzbd/sabnzbd/issues/3055

Thanks @safihre. 🤓
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
Post Reply