Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] open failed: EPERM (Operation not permitted) #264

Open
ChanHaoHao opened this issue Jun 21, 2023 · 0 comments
Open

[BUG] open failed: EPERM (Operation not permitted) #264

ChanHaoHao opened this issue Jun 21, 2023 · 0 comments
Assignees
Labels

Comments

@ChanHaoHao
Copy link

Description

I used FishBun 0.11.4 before, using GlidAdapter() as the imageAdapter, but some of the image doesn't show, so I change to FishBun 1.1.1 and used CoilAdapter(), now It displays all the photo, but when I select the photo, it shows open failed: EPERM (Operation not permitted).

How to repeat issue and example

  • use implementation 'io.github.sangcomz:fishbun:1.1.1', implementation 'io.coil-kt:coil:0.11.0' in build.gradle
  • Setup FishBun as the tutorial
FishBun.with(this)
                .setImageAdapter(new CoilAdapter())
                .setMaxCount(50)
                .setMinCount(1)
                .setPickerSpanCount(5)
                .setActionBarColor(Color.parseColor(getString(R.color.shade_1)), Color.parseColor(getString(R.color.shade_2)))
                .setIsUseDetailView(false)
                .exceptMimeType(mimeTypes)
                .isStartInAllView(true)
                .setAllViewTitle(getString(R.string.select_photos))
                .setSelectCircleStrokeColor(Color.parseColor(getString(R.color.shade_1)))
                .setCamera(true)
                .startAlbumWithOnActivityResult(PHOTO_FILE_INTENT);
  • Get the Image in onActivityResult
if (requestCode==PHOTO_FILE_INTENT $$ requestCode==RESULT_OK) {
    List<Uri> uris=data.getParcelableArrayListExtra(FishBun.INTENT);
}

This is the error Log:

FATAL EXCEPTION: main
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=253052549, result=-1, data=Intent {  }} to 
activity {ntu.airobo.reminiscence/ntu.airobo.reminiscence.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke
 interface method 'int java.util.List.size()' on a null object reference 
                                                                                               
/storage/emulated/0/Logs/2023-06-20_18:07:14.txt: open failed: EPERM (Operation not permitted)

Additional Information

  • Image Picker version: 1.1.1
  • Platform: Android
  • Development Operating System: Windows
  • Dev tools: Android Studio 2022.2.1 Patch 1
  • targetSdkVersion 31
@ChanHaoHao ChanHaoHao added the bug label Jun 21, 2023
@sangcomz sangcomz self-assigned this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants