Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8454

App Crash when take a new photo with Camera Plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 3.6.0
    • None
    • cordova-plugin-camera

    Description

      In my app everything is working fine when taking photo except on Iphone 4s with Ios 8.1.3
      When I take a picture and click on "use it" , the app crash and close without warning.
      It works well when I use the rear camera (cause the image is smaller I think).

      When I use Apple Instruments to monitor the crash the last records are :

      1. Address Category Timestamp Live Size Responsible Library Responsible Caller
        0 0x17aef200 Malloc 1,50 KB 01:22.726.362 • 1,50 KB IOSurface IOSurfaceClientWrapClientImage
        1 0x12772000 ImageIO_JPEG_Data 01:22.725.028 • 30,48 MB ImageIO ImageIO_Malloc
        2 0x16e6f560 CFBasicHash (key-store) 01:22.723.374 • 32 Bytes ImageIO createOptionsForFigHardwareDecode
        3 0x18764b70 CFBasicHash (value-store) 01:22.723.357 • 32 Bytes ImageIO createOptionsForFigHardwareDecode
        4 0x187f7260 CFNumber 01:22.723.326 • 16 Bytes ImageIO createOptionsForFigHardwareDecode

      And here is the Crash Log :

      Incident Identifier: 8D84B1B7-E3A9-433B-B2E6-520E260B9D43
      CrashReporter Key: 77ab8f6e58967bd6f50317baeee5414bc2cd6960
      Hardware Model: iPhone4,1
      OS Version: iPhone OS 8.1.3 (12B466)
      Kernel Version: Darwin Kernel Version 14.0.0: Mon Jan 12 21:30:11 PST 2015; root:xnu-2783.3.26~3/RELEASE_ARM_S5L8940X
      Date: 2015-02-10 17:42:59 +0100
      Time since snapshot: 51 ms

      Free pages: 617
      Active pages: 3173
      Inactive pages: 3069
      Speculative pages: 489
      Throttled pages: 62399
      Purgeable pages: 0
      Wired pages: 54876
      File-backed pages: 6277
      Anonymous pages: 454
      Compressions: 328838
      Decompressions: 63177
      Compressor Size: 57
      Uncompressed Pages in Compressor: 0
      Page Size: 4096
      Largest process: mediaserverd

      Processes
      Name | <UUID> | CPU Time| rpages| purgeable| recent_max| lifetime_max| fds | [reason] | (state)

      nsurlstoraged <bc4fa1986b1a3f26b2b5402be3e898f6> 0.094 166 0 - 556 50 [vm-thrashing] (daemon) (idle)
      nsurlsessiond <d04dc25e93283de3b7ee8db12bd33953> 0.894 394 0 - 1142 50 [vm-thrashing] (daemon)
      swcd <e22b9809b0b83a3d822cdd499e630b44> 0.061 140 0 - 476 50 [vm-thrashing] (daemon)
      debugserver <ef1b24f73ea43149b0666ea20e5f7dda> 1.967 159 0 - 588 50 [vm-thrashing] (daemon)
      MobileMail <4948076c1dd03325b5f295ec8fdd0817> 8.606 1576 0 - 4079 100 [vm-thrashing] (resume) (continuous)
      mstreamd <6d27ff198c3034f09b44038fac473781> 0.342 412 0 - 1559 50 [vm-thrashing] (daemon)
      tccd <1c3b7672d405345a9599a9165b4e9672> 0.133 207 0 - 652 50 [vm-thrashing] (daemon)
      lsd <18a22fa1c3ba3aa0871ad1843aa4c847> 4.634 298 0 - 940 50 [vm-thrashing] (daemon)
      kitArtisan <8d0d5eb9da63320caec1d0b98d82a0d3> 13.057 26819 0 - 18521 50 (frontmost) (resume)
      ptpd <899195f7d556391998a2cacb7371751c> 2.077 730 0 - 1577 50 (daemon)
      BTServer <24daf6f44d893f6daf5a680c92b63fc7> 11.007 395 0 - 1382 50 (daemon)
      imagent <2db1206e12ef30fe833d30a6857badf9> 76.930 1105 0 - 2562 50 (daemon)
      lockdownd <2da4a7e0dd1a35b9ae05f52e8d5aad3a> 31.945 398 0 - 934 50 (daemon)
      identityservices <235ad60b31753ba39ca43729cbac31fd> 171.120 748 0 - 1636 50 (daemon)
      discoveryd <7b61a3893f0f3f2ca2227304d7fc0a05> 399.390 1053 0 - 1807 100 (daemon)
      locationd <0017f8e9b9803dc7b82ab6c21acb6487> 1245.654 1651 0 - 3633 50 (daemon)
      wifid <b9f927d2166a35ddbcddfc792aa06a88> 328.404 531 0 - 1329 50 (daemon)
      iaptransportd <8ee55cf028c0311b939e0113712a1344> 27.335 302 0 - 671 50 (daemon)
      mediaserverd <951ab0492a0c3a119805c38697cf67e7> 450.383 29982 0 +86 7922 50 (daemon)
      cfprefsd <77e3ddae064b3007a4f5d13522c29767> 275.343 455 0 - 1796 50 (daemon)
      syslogd <21614327a5913635bf8bc2272aab94ae> 232.260 954 0 - 1117 50 (daemon)
      powerd <496f3f6fd0173e5d8ca1dfceadc76dd1> 181.653 499 0 - 808 50 (daemon)
      apsd <8da1c66348543d4ebd72e810fc2f36e0> 166.051 767 0 - 1647 100 (daemon)
      networkd <385c01062c27379d883f244a17aaf235> 396.649 672 0 - 1569 50 (daemon)
      dataaccessd <a7a7f65633c03d5985c23a80b0db4c97> 318.344 1681 0 - 2882 100 (daemon)
      vmd <337271cae21b34da8926d01f2c694a7e> 86.338 880 0 - 2346 50 (daemon)
      iapd <03badd6a166c3daf934c29ce1d86e128> 43.488 425 0 - 1429 50 (daemon)
      SCHelper <55466fb9f18939ed90e9a5888d8fd9a8> 17.913 104 0 - 366 50 (daemon)
      medialibraryd <e987eeee455134b6b151980d289f4aca> 11.914 583 0 - 1568 50 (daemon)
      itunesstored <6de0f124a9ff374ca1304f97b9998df8> 117.850 1995 0 - 4174 100 (daemon)
      searchd <9d6bf30189a23d6d959aaf2c08c19607> 7.585 829 0 - 2516 50 (daemon)
      syslog_relay <8435a0e3436c35658b6ebf42b8d8afdd> 2.334 100 0 - 298 50 (daemon)
      webinspectord <e9249547a80138799a99e455423505aa> 0.436 212 0 - 774 50 (daemon)
      voiced <32da6746ba32332698075ff2f6118b7e> 0.253 221 0 - 669 50 (daemon)
      SpringBoard <a09599dad0b73d488762bbf4df172b0a> 4360.301 10115 0 - 20412 100
      backboardd <119c485cefcd3127a318d4fc1636dbeb> 14168.876 6269 0 +529 4349 50 (daemon)
      UserEventAgent <736bfc71654a3e1284af9976c16a00a5> 954.884 876 0 - 2165 200 (daemon)
      configd <8df7332b99003995862643fdbb1c8b00> 199.595 450 0 - 1116 50 (daemon)
      fseventsd <a366dd315e273afc96084abc8f6f1c3e> 61.506 433 0 - 948 50 (daemon)
      fairplayd.H1 <c3856f0573fb3f9887721a239507f28b> 85.406 159 0 - 1341 50 (daemon)
      wirelessproxd <12837422636a381e8119e1740556de24> 3.183 184 0 - 785 50 (daemon)
      assertiond <b5cb3ee93d6a32b1a08fbf075ae23191> 104.304 338 0 - 805 50 (daemon)
      distnoted <42234e3ec6563c7dac4d510e301f6946> 20.489 183 0 - 369 50 (daemon)
      discoveryd_helpe <09b3407bfeff330299a6a84dd8673ac3> 0.866 125 0 - 563 50 (daemon)
      filecoordination <4450909aaf823fd1a96a4c94813c9da0> 4.659 264 0 - 699 50 (daemon)
      aggregated <6747e33da38f39688022fe05295a7fad> 1596.485 1347 0 - 2213 50 (daemon)
      DTMobileIS <96811bdfb87837499227af222f3d8471> 105.284 926 0 - 11515 50 (daemon)
      ubd <44b27d08a6823a859e0ec08131f20be9> 0.088 184 0 - 644 50 (daemon)
      CommCenter <6dadaf6b771c3cf1aaf2bb57dc0bc832> 1122.957 1759 0 - 5344 50 (daemon)

      Hope someone can help.
      Thks

      Attachments

        Activity

          People

            Unassigned Unassigned
            KaipiYann Yann D
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: