-
-
Notifications
You must be signed in to change notification settings - Fork 173
Memory leak. #77
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
Comments
it is debug mode. Flutter: 1.20.0, flutter-pi: master. i use ffi + proxy_gpiod |
Can you give me more details about your application? I think I experience memory leaks too, but maybe about 10MB with flutter_gallery and some usage. That's bad too and I'll fix it, but I'll probably be able to fix your specific issue faster if I knew what makes your app special / why your specific case leaks memory so much. |
https://github.com/DisDis/dslideshow
|
last master fixes it |
I'm facing a similar problem, how did you solve this? |
I checked the latest master and the problem is fixed. (Process memory is stable) |
Can you make sure this is flutter-pi related by checking the process memory stats in the dart observatory? |
I built myself an app with a My code: import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> with SingleTickerProviderStateMixin {
AnimationController _controller;
@override
void initState() {
_controller = AnimationController(
vsync: this,
lowerBound: 0.0,
upperBound: 1.0,
duration: Duration(days: 1)
);
_controller.forward();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: AnimatedBuilder(
animation: _controller,
builder: (context, child) {
return Text("animation value: ${_controller.value}");
}
)
),
);
}
}
|
I do updated to last engine version and the problem vanish. |
the problem exists. the memory leak is very slow. |
Start: 329mb @ardera the problem exists. |
@DisDis Is it still the same app you mentioned before? Btw I wanted to use valgrind to debug the memleaks, but it seems valgrind doesn't work that well on ARM32. Reports a few undefined behaviour problems (which all stem from ld-linux.so loading the binary) and then freezes completely |
@ardera yes( https://github.com/DisDis/dslideshow ) |
Sorry, I closed it accidentally. I can't really reproduce it though. I have 10 example images in my I don't have gpiod enabled though. (I didn't want to build the library, and it works without it too.) Are you sure it's not a problem in your app? It's very easy to create memleaks in dart. Also, the observatory is the dart observatory. I'm not sure it tracks all flutter resources and |
Ok, i'm going to try to check GPIOD. |
Application eat all memory and crash.

I look at Observatory.
It has 3 isolate and consume 70+40+45 = 155mb
The consumption of isolates is always stable and does not grow, but the memory of consumption of the entire process increases.
But the process consume 428Mb. And step by step eat memory.
Any idea how to understand what's going on?
Before 1.20 and the flutter-pi update it was ok. :(
The text was updated successfully, but these errors were encountered: