Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

cropview screen is black #54

Closed arash-jahani closed 8 years ago

arash-jahani commented 8 years ago

Sometimes when i choose an image , crop image viewer didnt shows anything (just a black screen) , after sometimes it workes device-2016-03-06-194855

HosseinKurd commented 8 years ago

In My Case it's Because You selected Big Image Size And It takes some Second To Load It Wait Some Seconds (10 Seconds) And Tell Me What Happeneds But Some times it shows Nothing else Black screen

shliama commented 8 years ago

I don't really know what kind of images you pick, but for me it never takes more than a second to show the image even if I pick some with 4k resolution. (I was testing on wide range of devices, including old bricks)

HosseinKurd commented 8 years ago

it happened some times my device is HTC Desire 626 G+ Android 4.4.2

I Test 'Many' Images And After Selecting Pictures From Camera Directory It Happened

is it because heap memory ? im myandroid manifest android:largeHeap="true" so you can test it with fasle

aelimill commented 8 years ago

Same here after upgrading to 1.3.+ I had a lot of messages in logcat about freeing memory (repeated messages freed a couple of megabytes). I think this is related to background thread loading, when something goes wrong and it loops again and again.

shliama commented 8 years ago

Well, it tries to load downsampled Bitmap - if it fails with OOM - library will try to load even more downsampled Bitmap and so on.

arash-jahani commented 8 years ago

It happened sometimes i launch the app in every time when i pick an image , but after relaunch the app it's never happened on this launched instance. Size of image is not the problem, because i pick images with small size

shliama commented 8 years ago

Unfortunately I cannot reproduce the issue. Can you give me stacktrace or something?

issuetree commented 8 years ago

I had same this issue. Test device is Samsung Galaxy Player 5.0 on Android 2.3.6. but other devices are working nice!

nmghelani commented 5 years ago

I have changed color of widgets any layout as my app has dark theme. I have changed every color but still bottom widget color remains black and as background is also black, they are being hidden. I've attached ss of my ucrop activity. My color.xml is: `#000000

#ab000000 #FFFFFF #FFFFFF #FFFFFF #000000 #FFFFFF #FFFFFF #FFFFFF #80ffffff #ffffff #8c000000 #FFFFFF` ![ss1](https://user-images.githubusercontent.com/43907163/54040153-b832cb00-41ea-11e9-8493-b358a9f57747.png)