-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Description
Steps to Reproduce
The issue described below has been observed on master channel starting from at least
least 1.21.0-8.0.pre.168 to at least master 1.21.0-10.0.pre.90.
UPDATE 7.9.2020
It has later been observed that the here described issues also applies to DomCanvas release builds, but not to debug builds.
The issue has regressed all the way down to Channel dev, 1.22.0-9.0.pre but has not yet been observed on Channel beta 1.21.0-9.2.pre.
Observed issues:
- Animations that scale and push other content on the canvas animate with severe jank and delay, almost like there is no animation at all.
- Theme change animations are really janky and sometimes do not even end up completing on the right end result (frame).
- Window re-sizing is very unresponsive and re-scales content only after a significant delay. Window re-scaling has always been quite janky on all channels and any platform, but this is off the chart.
All web versions demonstrated here were built using:
flutter run -d chrome --release --dart-define=FLUTTER_WEB_USE_SKIA=true --dart-define=FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT=true
Expected results
As temporary finding of expected results, these Tweet videos are representative of what it should look like:
I just remade the Web build shown here with Channel beta, 1.20.0:
It still looks and runs as expected (OK) and the same as in the demo here:
Using green theme https://twitter.com/RydMike/status/1293392861816410112?s=20
I also remade the Windows build shown here with Channel master, 1.21.0-10.0.pre.9
Using orange theme https://twitter.com/RydMike/status/1293392864790155264?s=20
It also still look and runs as expected and as in the tweeted video, so all OK here too.
This version is built with latest stable and running on an Android emulator.
Using blue theme https://twitter.com/RydMike/status/1293393473312301057?s=20
It is fine too and shows expected behavior. (OK)
Actual failed results
When building the same app for Web with Channel master, 1.21.0-10.0.pre.9
We still get the same janky (FAIL) version as the one shown in this Tweet video
Using red theme https://twitter.com/RydMike/status/1293392860260204544?s=20
that was made with a bit older master revision 1.21.0-8.0.pre.175 but the newer build with Channel master, 1.21.0-10.0.pre.9 looks and behaves the same.
The differences from the above shown expected behavior is very obvious and significant.
- It is like there is no animation at all for when the menus animate in/out and move other content around.
- Same result can be observed when resizing the browser window. It shows more extreme resize delay and jank than ever before. Resizing windows has never been good on any device or platform, but this version is on a new level.
- Theme change animation are also extremely janky and some the last few frames in the themes are not repainted, so the new theme is not fully reached. Shown on the right sidebar in the demo. I have more examples of this to be added later if needed.
NOTE: The links to the tweet videos unfortunately did not open the desired post in enlarged/focused mode when I tried, even if the links were copied in that mode and from the exact post in question. But based on the comments and the different colored themes used in the demo on each video, it should be clear which one is which.
More info to be added
This is just a pre-report of the issue. I will be complementing and updating it with more info if so required. Unfortunately the videos and GIF recordings I have now are to large to post directly directly in the issue and the app used to demo it in the above Tweet videos is a bit too long and involved to be a good issue sample. (Although I do plan to release the code for the tech demo app shown in the video and a few packages that it is using later, so in principle I could use it too, as soon as it is bit more complete)
To be added
- Shorter Gif screen recordings showing the exact differences clearly.
- Produce a short code sample that shows the issues and is available as a repo with live demo versions built with beta and master.
Flutter Doctor
flutter doctor -v
[√] Flutter (Channel master, 1.21.0-10.0.pre.90, on Microsoft Windows [Version 10.0.18363.900], locale en-US)
• Flutter version 1.21.0-10.0.pre.90 at c:\src\flutter
• Framework revision 88118bcbd1 (2 hours ago), 2020-08-14 00:17:43 +0200
• Engine revision 7571e7c380
• Dart version 2.10.0 (build 2.10.0-11.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\mryds\AppData\Local\Android\sdk
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.5)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.6.30320.27
• Windows 10 SDK version 10.0.18362.0
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Community Edition (version 2019.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.1
• Flutter plugin version 35.3.3
• Dart plugin version 192.7402
[√] VS Code (version 1.48.0)
• VS Code at C:\Users\mryds\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.13.2
[√] Connected device (5 available)
• Nexus 7 (mobile) • 0a99f5e8 • android-arm • Android 6.0.1 (API 23)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.18363.900]
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome 84.0.4147.105
• Edge (web) • edge • web-javascript • Microsoft Edge 84.0.522.52
• No issues found!