Skip to content

BottomSheetController not releasing memory after dismiss #2106

@mohit5189

Description

@mohit5189

Environment Information

  • Platform:
    • iOS
  • Package version(s): Using latest master pull from Fluent library. Running sample app from fluent only
  • Xcode and OS versions: Xcode 16 and iOS 18

Please provide a reproduction of the bug:

Actual behavior:

We are using BottomSheetController class for our original app, where once we present our view in BottomSheetController, and after we dismiss, we found memory graph not going down. After investigating I found that it seems related to BottomSheetController where after dismissing this is not making memory free.

As next step, I tried sample app from Fluent Library itself where I can see similar problem. View in sample app is light weight hence low memory spike but continuous. If we use some big view with more component, this spike is even higher. Please refer attached video of Instrument from Xcode which I used for sample app from Fluent only.

Expected behavior:

After BottomSheetController is closed, it should free memory. Memory graph should come down.

Priorities and help requested:

Are you willing to submit a PR to fix? No

Requested priority: High

Products/applications affected: We have multiple apps using Paywall SDK which is affected due to it.

Please refer attached video and screenshot from Xcode instrument.

Image

demo.1.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions