Skip to content

[pigeon] Kotlin InstanceManager doesn't properly remove callbacks from handler #166780

Closed
flutter/packages
#9034

Description

@bparrishMines

What package does this bug report belong to?

pigeon

Affected Plugins that use pigeon: webview_flutter_android, interactive_media_ads

What target platforms are you seeing this bug on?

Android/Kotlin

Steps to reproduce

This is generated by using @proxyapi feature from pigeon.

Expected results

The InstanceManager contains:

fun stopFinalizationListener() {
    handler.removeCallbacks { this.releaseAllFinalizedInstances() }
    hasFinalizationListenerStopped = true
}

Instead of passing the Runnable that should be removed to handler.removeCallbacks, this is creating a new Runnable and not removing anything.

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    p: pigeonrelated to pigeon messaging codegen tool
    P1High-priority issues at the top of the work list
    on Apr 8, 2025
  2. self-assigned this
    on Apr 9, 2025
  3. github-actions commented on May 1, 2025

    @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.

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

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions