New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defer Image Decode unavailable on OPPO A57 when scroll fast #58762
Comments
Hi @fredlee12345678 |
hi @iapicca Thanks for your response, but I can't agree with you it's not a issue. According to #49389. When I scrolling very fast, the velocity of gridview should be very large not zero. So I don't know why you mean this is not a issue. If you need me give more details like code, please tell me ,Thanks very much |
Hi @fredlee12345678 |
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Auto Scroll'),
actions: <Widget>[
// NEW
IconButton(
// NEW
icon: Icon(Icons.arrow_downward),
onPressed: showImage) // NEW
], // NEW
),
body: GridView.builder(
itemCount: 500,
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
mainAxisSpacing: 20.0,
crossAxisSpacing: 10.0,
childAspectRatio: 1.0),
itemBuilder: (context, index) {
final int imageindex = index % 74;
final String imageurl =
'https://picsum.photos/250?image=$imageindex';
String imagename = 'assets/' + imageindex.toString();
return Container(
color: Color.fromARGB(255, 255, 0, 0),
child: Image.network(imageurl),
);
}),
floatingActionButton: FloatingActionButton(
onPressed: () {
},
tooltip: 'push',
child: Icon(Icons.add),
),
);
} @iapicca , And I print velocity at scroll_physics.dart:
Here is Log: 06-08 14:21:17.676 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6962.726182351891
06-08 14:21:17.676 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6962.726182351891
06-08 14:21:17.676 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6962.726182351891
06-08 14:21:17.729 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.729 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.729 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.729 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.729 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.730 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6541.947152248591
06-08 14:21:17.744 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.745 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
06-08 14:21:17.746 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6438.872011182599
**06-08 14:21:17.763 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.763 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.763 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.763 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.763 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.764 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.765 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.765 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.765 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.796 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.796 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.797 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.810 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.811 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.811 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0**
06-08 14:21:17.844 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7298.204568270825
06-08 14:21:17.844 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7298.204568270825
06-08 14:21:17.844 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7298.204568270825
06-08 14:21:17.860 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.860 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.860 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.860 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.861 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.861 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7190.79740037913
06-08 14:21:17.876 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.877 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.877 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.877 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.877 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.877 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 7084.206071311112
06-08 14:21:17.903 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.904 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
06-08 14:21:17.905 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 6978.443368701475
**06-08 14:21:17.965 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.965 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.965 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.965 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.966 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.966 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.966 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.966 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0
06-08 14:21:17.966 22665-22679/kuaishou.com.testimagedemo1171 I/flutter: velocity : 0.0** To reproduce this case, I think you need to find a low performance mobile. this case not reproduced on Pixel 3XL. |
/cc @dnfield |
This seems like it is probably a bug on that specific phone for pointer data/touch input stuff. I'm removing the images label based on that. @fredlee12345678 - are you able to instrument
|
Flutter Version
Target OS version/browser:
6.0.1
Devices:
OPPO A57
Logs
I create a gridview to load image from asset, when I scroll very fast I notice the velocity of gridview is 0, so Image.dart will decode all image.
The text was updated successfully, but these errors were encountered: