Skip to content

Root layer is not disposed in RenderView. #146742

Description

@polina-c

To repro follow the steps: #141198 (comment)

Looks strange, because the layer seems to be accurately managed by a layer handle.

PR: #146743

Activity

  1. polina-c commented on Apr 14, 2024

    @polina-c
    ContributorAuthor
                notDisposed:
                  total: 1
                  objects:
                    TransformLayer:
                      test: Should show event indicator for pointer events with setSurfaceSize
                      identityHashCode: 193929604
                      context:
                        start: >
                          #6_______dispatchFlutterEventToLeakTracker_(package:leak_tracker_flutter_testing/src/testing.dart:74:23)
                          #7______FlutterMemoryAllocations.dispatchObjectEvent_(package:flutter/src/foundation/memory_allocations.dart:249:23)
                          #8______FlutterMemoryAllocations.dispatchObjectCreated_(package:flutter/src/foundation/memory_allocations.dart:283:5)
                          #9______new_Layer_(package:flutter/src/rendering/layer.dart:143:41)
                          #10_____new_ContainerLayer_(package:flutter/src/rendering/layer.dart)
                          #11_____new_OffsetLayer_(package:flutter/src/rendering/layer.dart)
                          #12_____new_TransformLayer_(package:flutter/src/rendering/layer.dart)
                          #13_____RenderView._updateMatricesAndCreateNewRootLayer_(package:flutter/src/rendering/view.dart:223:38)
                          #14_____RenderView.configuration=_(package:flutter/src/rendering/view.dart:156:24)
                          #15_____RendererBinding.handleMetricsChanged_(package:flutter/src/rendering/binding.dart:362:12)
                          #16_____WidgetsBinding.handleMetricsChanged_(package:flutter/src/widgets/binding.dart:726:11)
                          #17_____TestWidgetsFlutterBinding.setSurfaceSize.<anonymous_closure>_(package:flutter_test/src/binding.dart:531:7)
                          #18______rootRun_(dart:async/zone.dart:1399:13)
                          #19______CustomZone.run_(dart:async/zone.dart:1301:19)
                          #20_____TestAsyncUtils.guard_(package:flutter_test/src/test_async_utils.dart:71:41)
                          #21_____TestWidgetsFlutterBinding.setSurfaceSize_(package:flutter_test/src/binding.dart:525:27)
                          #22_____main.<anonymous_closure>_(file:///Users/polinach/_/flutter_dev/packages/flutter/test/animation/live_binding_test.dart:115:26)
                          #23_____testWidgets.<anonymous_closure>.<anonymous_closure>_(package:flutter_test/src/widget_tester.dart:183:29)
                          <asynchronous_suspension>
                          #24_____TestWidgetsFlutterBinding._runTestBody_(package:flutter_test/src/binding.dart:1017:5)
                          <asynchronous_suspension>
                          #25_____StackZoneSpecification._registerCallback.<anonymous_closure>_(package:stack_trace/src/stack_zone_specification.dart:114:42)
                          <asynchronous_suspension>
                
    
  2. added
    a: leak trackingIssues and PRs related to memory leaks detected by leak_tracker
    on Apr 14, 2024
  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Apr 15, 2024
  4. added a commit that references this issue on Apr 15, 2024
  5. added
    P2Important issues not at the top of the work list
    a: multi windowIssues related to multi window support
    on Apr 16, 2024
  6. github-actions commented on May 1, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: leak trackingIssues and PRs related to memory leaks detected by leak_trackera: multi windowIssues related to multi window supportframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-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