Skip to content

Calling PlatformView.NotifyDestroyed still leaks IOSurfaces #38736

@xster

Description

@xster

Traces
https://drive.google.com/file/d/1gFj_fxjHZ_rmvhC7UNGklHScb7ilTBbE/view?usp=sharing
https://drive.google.com/drive/folders/1ZQpyw8bZw1pdCiKduZRil8_Y3Bcx-myt?usp=sharing

Repro
Clone https://github.com/xster/flutter-test/tree/master/t132_performance_test_ios and https://github.com/xster/flutter-test/tree/master/t132_performance_test_flutter.

flutter build ios --debug --no-codesign or wtv in t132_performance_test_flutter
pod install in t132_performance_test_ios run in instruments.

Press 'load engine', 'show vc' and 'pop'.
PlatformView.NotifyDestroyed is called through FlutterViewController.viewDidDisappear. But looking at the VM: IOSurface allocation, they're still not freed.

1
Screen Shot 2019-08-17 at 12 06 33 AM

2
Screen Shot 2019-08-17 at 12 06 20 AM

3
Screen Shot 2019-08-17 at 12 06 11 AM

@chinmaygarde can you take a look?

Metadata

Metadata

Labels

a: existing-appsIntegration with existing apps via the add-to-app flowc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions