Skip to content

[System] A resource failed to call CursorWindow.close. | Warning spamming while using FilePicker on Android #27716

@bhavanesh2001

Description

@bhavanesh2001

Description

When using the File Picker API in .NET MAUI (Android), system logs get spammed with warnings:

Image

This suggests that ContentResolver.Query() is not closing cursors properly

Steps to Reproduce

  1. Open a .NET MAUI Android app.
  2. Use the File Picker API (FilePicker.PickAsync()) to select a file.

Link to public reproduction project repository

https://github.com/bhavanesh2001/FilpickerBug

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No response

Relevant log output

[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.
[System] A resource failed to call CursorWindow.close.
[System] A resource failed to call CursorWrapperInner.close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-essentials-filepickert/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions