AIMP Forum

AIMP for PC => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: Shebaaa on October 26, 2021, 04:18:01

Title: [x] [2338] New scheduler isnt working correctly
Post by: Shebaaa on October 26, 2021, 04:18:01
Aimp 5.00 build 2338 

New scheduler isnt working correctly. The first time set up a task it works for the first instance then the time goes off for the next run.  It does it if set up for repeat for every day or for every week (and choose all the days).  Example is I have one set up pause play back and put computer to sleep at 2:04 AM (name is "1am sleep" this is due to playing with it trying to get it working). It ran correctly the first time and now it says next run time is 12:58:52 PM and other number says -3:43:43 PM and is counting down.  I go into the task and shows the time still set to run at 2:04 AM. The next change time changes each time it does fire.

Also when it does fire when I go to play something it pops up saying its about to put the computer to sleep.

Below is the info from the aimp_scheduler.xml


<?xml version="1.0" encoding="utf-8"?>
<scheduler mode="0">
   <tasks>
      <task id="{B0E70580-A36F-45D8-87C7-45312A269E03}" name="1am sleep" enabled="1">
         <event type="0" value="2021-10-23T06:02:43.000Z" lastActionTime="2021-10-26T16:58:52.978Z" wttf="1" wakeUp="0"/>
         <recurrenceThroughoutDay enabled="0" mode="0" startTime="0" finishTime="0" value="1"/>
         <recurrence type="1" every="1" dayOfmonth="23" weekDays="127" enabled="1"/>
         <actions>
            <action class="TSchedulerPausePlaybackAction"/>
            <action class="TSchedulerSleepAction"/>
         </actions>
      </task>
      <task id="{1AEC12A6-38C4-447B-A4BC-E3DD606E26CA}" name="pause " enabled="1">
         <event type="0" value="2021-10-23T05:04:45.000Z" lastActionTime="2021-10-26T05:04:45.000Z" wttf="1" wakeUp="0"/>
         <recurrenceThroughoutDay enabled="0" mode="0" startTime="0" finishTime="0" value="1"/>
         <recurrence type="1" every="1" dayOfmonth="23" weekDays="127" enabled="1"/>
         <actions>
            <action class="TSchedulerPausePlaybackAction"/>
         </actions>
      </task>
   </tasks>
</scheduler>


Title: Re: [2338] New scheduler isnt working correctly.
Post by: Artem on October 26, 2021, 10:13:04
1. Countdown label has a wrong format string (it should not display AM/PM). Fixed.
2. Timer calculates a next time based on last action time. Seems the "wait for playing track to finish" option made a trick. It shift last action time, so timer uses incorrect base value for calculation. I will try to fix it soon.
Title: Re: [2338] New scheduler isnt working correctly.
Post by: Artem on October 26, 2021, 11:04:03
Here is a nightly build that includes a fix:
https://disk.yandex.ru/d/LBuiI8x2pAuDfQ

Note you need to re-save all tasks after install the update.
Title: Re: [x] [2338] New scheduler isnt working correctly
Post by: Shebaaa on October 26, 2021, 21:36:20
Thank you.  Downloaded and installed and test I have made are working correctly.