ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.14k stars 1.56k forks source link

App hanging after clicking on an image from ImagePicker #2076

Open Dvik opened 4 months ago

Dvik commented 4 months ago

Version

Tell us which versions you are using:

Platform

Expected behavior

Image should be selected when i click on an image.

Actual behavior

Image is not selected when i click on an image. The app stops responding after i select an image. https://github.com/user-attachments/assets/cd06f545-e51b-4e85-809e-bf2c8c740f2b

Code initialization:

const openGalleryQR = useCallback(() => {
    ImagePicker.openPicker({
      width: 500,
      height: 500,
      cropping: true,
      includeBase64: true,
      cropperToolbarTitle: language.GENERIC_MOVE_AND_SCALE,
      mediaType: 'photo',
      cropperActiveWidgetColor: theme.white,
      cropperStatusBarColor: theme.black,
      cropperToolbarColor: theme.black,
      cropperToolbarWidgetColor: theme.white,
      useFrontCamera: true,
      showCropGuidelines: false,
      cropperCancelText: language.GENERIC_CANCEL,
      cropperChooseText: language.GENERIC_CHOOSE,
    }).then((res) => {
      //Logic based on path and data
    });
  }, [decodeQRISGallery]);

Stacktrace from Firebase (not sure it's related to this issue or not but i see it crashing in UCropActivity):

          Crashed: Thread: SIGSEGV  0x000000757dbd8820
#00 pc 0x10d4c8 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#01 pc 0x39ddf0 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#02 pc 0x10c47c libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#03 pc 0x10c3a8 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#04 pc 0x10c4f8 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#05 pc 0xd455c libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#06 pc 0x3cc33 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#07 pc 0xd09a0 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#08 pc 0x3cc33 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#09 pc 0xd3a94 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#10 pc 0xc16ffc libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#11 pc 0xc9b08 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#12 pc 0x339e8 libdexfile.so (BuildId: 485c1549ec04b5673ac0dcd1a92f5bb7)
#13 pc 0x2d0844 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#14 pc 0xc16ffc libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#15 pc 0x76a13a47c0
#16 pc 0x76a1369010
#17 pc 0x76a142ce2a
#18 pc 0x76a13d9ba0
#19 pc 0x76a1369010
#20 pc 0x76a19b7237
#21 pc 0x2d0844 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#22 pc 0xc16ffc libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#23 pc 0x76a13f79f0
#24 pc 0x236d20 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#25 pc 0xc15ffc libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#26 pc 0x2d04f4 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#27 pc 0x5af47c libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#28 pc 0x76a158d24c
#29 pc 0x5aee54 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#30 pc 0x5bddf0 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#31 pc 0x5aee54 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#32 pc 0x258494 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#33 pc 0x2ec16 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#34 pc 0x2ec15 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#35 pc 0x76a158216a
#36 pc 0x5af47c libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#37 pc 0x394358 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#38 pc 0x2d03d libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#39 pc 0x2c523 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#40 pc 0x76a13946f0
#41 pc 0x2c523 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#42 pc 0x2d03d libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#43 pc 0xca4f0 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#44 pc 0x2c523 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#45 pc 0x2d03d libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#46 pc 0xc94e4 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#47 pc 0xc9768 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#48 pc 0xc8aa4 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#49 pc 0x4167a4 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#50 pc 0x43ab6c libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#51 pc 0x43ab6c libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#52 pc 0x416014 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#53 pc 0xc8b44 libbarhopper_v3.so (BuildId: cf64ac3d5cfd71b04d3bc4112d678e48)
#54 pc 0x76a161f7da
#55 pc 0x76a0554340
#56 pc 0x76a161f7da
#57 pc 0x76a190f1e4
#58 pc 0x5af47c libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#59 pc 0x5b9c2c libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#60 pc 0x76a161f7da
#61 pc 0x76a167edb4
#62 pc 0x5af47c libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
#63 pc 0x5b8e54 libart.so (BuildId: 5b1e3dce5abfbdc410d71d256d308227)
hamzasaleem3 commented 1 month ago

any update on this issue?