question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CropImageActivity stuck on loading after choosing image from image picker.

See original GitHub issue

I am using CropImage.activity() .setGuidelines(CropImageView.Guidelines.ON) .start(this); but it gets stuck in the crop activity after I choose the image. Is that a bug or something?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ruifcardosocommented, Oct 2, 2017

To fix this issue, edit CropImageView.java at line 958.

Where you see: mBitmapLoadingWorkerTask.get().execute(); Replace with: mBitmapLoadingWorkerTask.get().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);

Basically you need to replace every .execute() on the library with .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);

0reactions
ArthurHubcommented, Oct 7, 2017

added executor fix in 2.5.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

image_picker crashes when picking - Apple Developer
image_picker crashes when picking images on simulator running on Apple ... M1 it is not possible to select the UIImagePicker controller to select...
Read more >
Can't load an image from gallery with image_picker fails in ...
I have checked the path, the photo indeed exists in this path. I have updated the pubspec.yaml for using other images in my...
Read more >
How to Use UIImagePickerController for a Camera and Photo ...
Getting a Photo from the Library. The UIImagePickerController is a view controller that gets presented modally. When we select or cancel the ...
Read more >
How to Crop Image From Camera and Gallery in Android?
In the previous article, we discussed how to select an Image from Gallery in Android, but in this project, there is no crop...
Read more >
iOS Apprentice, Chapter 35: Image Picker | Kodeco, the new ...
UIKit comes with a built-in view controller, UIImagePickerController that lets users take new photos or select existing ones. In this chapter explore this ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found