Skip to content

memory leak: widgets/app.dart/defaultActions holds disposed objects from being GCed #130354

@polina-c

Description

@polina-c

Fragment of retaining path:

package:flutter/src/widgets/app.dart/defaultActions
                    dart.collection/_Map:[InstanceRef id: classes/4623/types/0, kind: Type,
identityHashCode: 530049589, classRef: [ClassRef id: classes/48, name: _Type, library: [LibraryRef
id: libraries/@0150898, name: dart.core, uri: dart:core]]]
                    package:flutter/src/widgets/actions.dart/VoidCallbackAction:_listeners@816441002
                    package:flutter/src/foundation/observer_list.dart/ObserverList:_list@441023516

Full retaining path:

To repro, remove leakTrackingTestConfig from packages/flutter/test/material/about_test.dart and see the modified tests failing.

To see retaining path, set:

leakTrackingTestConfig: LeakTrackingTestConfig.retainingPath(),

and then click 'Debug' for the test in VSCode

PR that marks the issue: #130470

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: leak trackingIssues and PRs related to memory leaks detected by leak_trackerf: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions