When using a looped mng animation in a splash-theme, e.g. a rotating logo, the animation stops sometimes when the clock is set in the clock init-script. This is because the animation timing uses the system clocks. The applied patch resolves this issue by adding a thread used to detect clock skews and resetting the animations. In addition, the timing of the animation was changed, resulting in smoother animations when a lot of service refreshs or progress updates occur. Reproducible: Always Steps to Reproduce: 1. Use a theme with a looped mng animation. 2. When displaying the theme, change the current time. The animation will stop.
Created attachment 146244 [details, diff] Patch to detect clockskews This patch introduces an additional thread for clock skew detection and changes the timing for animations slightly.
Created attachment 146246 [details] Slightly modified ebuild to apply the patch. Ebuild that applies the patch.
Thanks for the nicely written bug description and the patch :) I've found a simpler solution to the problem (switching from CLOCK_REALTIME to CLOCK_MONOTONIC), see http://repo.or.cz/w/fbsplash.git?a=commitdiff;h=e5baeebf73bc3fc86df9ee781793037a78a9461e The fix is included in 1.5.4.1.