Skip to content

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

@bparrishMines

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.

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