Skip to content

Error on the Samsung Device: java.lang.IllegalArgumentException: Invalid column flags #809

@bhupendrapatel

Description

@bhupendrapatel

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

I have read and understood the license (link below).

  • I have read and understood the license.

Minimal reproducible example

https://github.com/react-native-documents/document-picker/

What platform(s) does this occur on?

Android

Did you reproduce on a real device or emulator / simulator?

real device

Steps to reproduce

Clone the repository.
Go to packages/example
Run npm install
Once installation of dependencies is done.
Run the Application on real device running Samsung One UI version 6.1

Once the example application run in debug mode, go to importing examples and select first option and select any file and then done.

get following error:

Error: java.lang.IllegalArgumentException: Invalid column flags

If the issue is related to specific file(s), I have linked the files so that others can reproduce exactly what I see.

  • I have attached files necessary to reproduce the problem (if applicable).

Stacktrace of the crash (if applicable)

Image

2025-04-01 16:37:59.744 24205-24434 ReactNativeJS life.posturefit E 'Error selecting file:', { [java.lang.IllegalArgumentException: Invalid column flags]
nativeStackAndroid:
[ { lineNumber: 172,
file: 'DatabaseUtils.java',
methodName: 'readExceptionFromParcel',
class: 'android.database.DatabaseUtils' },
{ lineNumber: 142,
file: 'DatabaseUtils.java',
methodName: 'readExceptionFromParcel',
class: 'android.database.DatabaseUtils' },
{ lineNumber: 495,
file: 'ContentProviderNative.java',
methodName: 'query',
class: 'android.content.ContentProviderProxy' },
{ lineNumber: 1229,
file: 'ContentResolver.java',
methodName: 'query',
class: 'android.content.ContentResolver' },
{ lineNumber: 1161,
file: 'ContentResolver.java',
methodName: 'query',
class: 'android.content.ContentResolver' },
{ lineNumber: 1117,
file: 'ContentResolver.java',
methodName: 'query',
class: 'android.content.ContentResolver' },
{ lineNumber: 80,
file: 'MetadataGetter.kt',
methodName: 'queryContentResolverMetadata',
class: 'com.reactnativedocumentpicker.MetadataGetter' },
{ lineNumber: 68,
file: 'MetadataGetter.kt',
methodName: 'invokeSuspend',
class: 'com.reactnativedocumentpicker.MetadataGetter$getMetadataForUri$2' },
{ lineNumber: 8,
file: null,
methodName: 'invoke',
class: 'com.reactnativedocumentpicker.MetadataGetter$getMetadataForUri$2' },
{ lineNumber: 4,
file: null,
methodName: 'invoke',
class: 'com.reactnativedocumentpicker.MetadataGetter$getMetadataForUri$2' },
{ lineNumber: 78,
file: 'Undispatched.kt',
methodName: 'startUndispatchedOrReturn',
class: 'kotlinx.coroutines.intrinsics.UndispatchedKt' },
{ lineNumber: 167,
file: 'Builders.common.kt',
methodName: 'withContext',
class: 'kotlinx.coroutines.BuildersKt__Builders_commonKt' },
{ lineNumber: 1,
file: null,
methodName: 'withContext',
class: 'kotlinx.coroutines.BuildersKt' },
{ lineNumber: 39,
file: 'MetadataGetter.kt',
methodName: 'getMetadataForUri',
class: 'com.reactnativedocumentpicker.MetadataGetter' },
{ lineNumber: 17,
file: 'MetadataGetter.kt',
methodName: 'access$getMetadataForUri',
class: 'com.reactnativedocumentpicker.MetadataGetter' },
{ lineNumber: 27,
file: 'MetadataGetter.kt',
methodName: 'invokeSuspend',
class: 'com.reactnativedocumentpicker.MetadataGetter$processPickedFileUris$2' },
{ lineNumber: 8,
file: null,
methodName: 'invoke',
class: 'com.reactnativedocumentpicker.MetadataGetter$processPickedFileUris$2' },
{ lineNumber: 4,
file: null,
methodName: 'invoke',
class: 'com.reactnativedocumentpicker.MetadataGetter$processPickedFileUris$2' },
{ lineNumber: 78,
file: 'Undispatched.kt',
methodName: 'startUndispatchedOrReturn',
class: 'kotlinx.coroutines.intrinsics.UndispatchedKt' },
{ lineNumber: 167,
file: 'Builders.common.kt',
methodName: 'withContext',
class: 'kotlinx.coroutines.BuildersKt__Builders_commonKt' },
{ lineNumber: 1,
file: null,
methodName: 'withContext',
class: 'kotlinx.coroutines.BuildersKt' },
{ lineNumber: 24,
file: 'MetadataGetter.kt',
methodName: 'processPickedFileUris',
class: 'com.reactnativedocumentpicker.MetadataGetter' },
{ lineNumber: 322,
file: 'RNDocumentPickerModule.kt',
methodName: 'invokeSuspend',
class: 'com.reactnativedocumentpicker.RNDocumentPickerModule$processFilePickerResult$1' },
{ lineNumber: 33,
file: 'ContinuationImpl.kt',
methodName: 'resumeWith',
class: 'kotlin.coroutines.jvm.internal.BaseContinuationImpl' },
{ lineNumber: 106,
file: 'DispatchedTask.kt',
methodName: 'run',

Your computer environment

System:
  OS: macOS 15.3.2
  CPU: (10) arm64 Apple M1 Pro
  Memory: 58.33 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.5
    path: ~/.nvm/versions/node/v18.20.5/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v18.20.5/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v18.20.5/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "30"
      - "32"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google APIs Intel x86_64 Atom
      - android-35 | Google Play ARM 64 v8a
      - android-35 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 23.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: ^15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.1
    wanted: ^0.78.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.78.2 is now available (your project is running on v0.78.1).

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