react-native-palette icon indicating copy to clipboard operation
react-native-palette copied to clipboard

Bitmap is not valid

Open SkyzohKey opened this issue 7 years ago • 9 comments

Thrown by the react native packager.

<init>
Palette.java:616

from
Palette.java:100

getAllSwatches
RNPaletteModule.java:83

invoke
Method.java

invoke
JavaMethodWrapper.java:363

invoke
JavaModuleWrapper.java:162

run
NativeRunnable.java

handleCallback
Handler.java:836

dispatchMessage
Handler.java:103

dispatchMessage
MessageQueueThreadHandler.java:31

loop
Looper.java:203

run
MessageQueueThreadHandler.java:194

run
Thread.java:761

OS: Android 7.0 Nougat

SkyzohKey avatar Sep 18 '17 09:09 SkyzohKey

Hi, could you please provide more information about where you're seeing this? I tried running the example in this repo on a simulator running Android 7.0 and I don't see any errors. Are you sure you passing the correct type of image to the component? Can you modify the example to reproduce the error?

chetstone avatar Sep 19 '17 01:09 chetstone

This happens to me if I use react-native-image-crop-picker instead of react-native-image-picker. Could you please say more about the required image type? react-native-image-crop-picker returns urls in the form file:///data/user/0/com.aperture/cache/react-native-image-crop-picker/42bd7e0c-ef6d-4f84-aae2-4f931a6ec86d.jpg

wassgha avatar Oct 06 '17 06:10 wassgha

Nevermind, I solved the issue by removing the file:/// from the image URL.

wassgha avatar Oct 06 '17 06:10 wassgha

Great! Glad you solved it, and thanks for the follow up report.

On Oct 6, 2017, 00:48 -0600, Wassim Gharbi [email protected], wrote:

Nevermind, I solved the issue by removing the file:/// from the image URL. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

chetstone avatar Oct 06 '17 17:10 chetstone

I got same error when trying to load image from online, how can this be solved?

coolprobn avatar Mar 14 '18 18:03 coolprobn

试图从网上加载图像时出现同样的错误,这怎么解决?

zc-Mukden avatar Mar 23 '18 02:03 zc-Mukden

试图从网上加载图像时出现同样的错误,这怎么解决?

zc-Mukden avatar Mar 23 '18 07:03 zc-Mukden

@chetstone this shouldn't crash the app, it should just error. This should be reopened. I will create PR to catch this and return an error soon.

evanjmg avatar Aug 08 '18 08:08 evanjmg

Error still persist anyone solved this? i also tried removing file:/// but error still persist

castalonirenz avatar Aug 17 '20 04:08 castalonirenz