Skip to content

Animated webps with n loops actually runs n+1 loops #46289

@KevinTheGray

Description

@KevinTheGray

Animated webps with a specified number of loops will actually run n+1 loops. This is 100% reproducible with the version of Flutter I am on.

Steps to Reproduce

  1. Clone this repo https://github.com/KevinTheGray/aweb_bug
  2. Run the app on any device
  3. Observe the top webp loops infinitely as expected (loop count of 0 specified), the second webp incorrectly loops twice (loop count of 1 specified), the third webp incorrectly loops three times (loop count of 2 specified).

Target Platform: Android/iOS/macOS
Target OS version/browser: macOS 10.14.5 (18F132)
Devices: Happens on desktop as well as any simulator/emulator and physical device

[✓] Flutter (Channel master, v1.12.16-pre.35, on Mac OS X 10.14.5 18F132, locale en-US)
    • Flutter version 1.12.16-pre.35 at /Users/KG/Developer/Flutter/flutter
    • Framework revision b9a56b9f48 (7 days ago), 2019-11-29 20:40:44 -0500
    • Engine revision 8672e79af8
    • Dart version 2.7.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/KG/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/KG/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.7.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.0.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4892.25

[!] VS Code (version 1.35.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • iPhone 5s  • 9288B215-C389-4B17-B00A-8C9303B53F4D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)
    • macOS      • macOS                                • darwin-x64     • Mac OS X 10.14.5 18F132
    • Chrome     • chrome                               • web-javascript • Google Chrome 78.0.3904.108

Metadata

Metadata

Assignees

Labels

c: renderingUI glitches reported at the engine/skia or impeller rendering levelcustomer: productdependency: skiaSkia team may need to help usengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions