# Error on accessing CameraRoll

**URL:** <https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930>\
**Category:** Bug Reports\
**Created:** [November 28, 2016, 8:59am UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930 "2016-11-28T08:59:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen\_Smeets](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jeroen_smeets/32/331_2.png) [@Jeroen\_Smeets](https://forums.fusetools.com/u/Jeroen_Smeets)\
**Post date:** [November 28, 2016, 8:59am UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930/1 "2016-11-28T08:59:39Z")

</div>

In preview on iPhone (6), I get an error when calling `cameraRoll.getImage()`. I have copied the code from the docs:

```auto
var cameraRoll = require("FuseJS/CameraRoll");
cameraRoll.getImage()
  .then(function(image) {
}, function(error) {
});

```

Execution halts on `openImagePickerWithSourceType` in `ImagePicker.m` on line 22. I get this in XCode

```auto
2016-11-28 09:56:55.659430 matodor[5599:1788487] *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.5.2/UIApplication.m:1704
2016-11-28 09:56:55.663823 matodor[5599:1788487] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread'
*** First throw call stack:
(0x18dc821c0 0x18c6bc55c 0x18dc82094 0x18e70f79c 0x193d5e450 0x193db5654 0x193b98860 0x193ae3bd4 0x193b52d64 0x193bd8b94 0x193e479c4 0x193e49328 0x193e4be5c 0x193bcfb54 0x100335c34 0x100333d30 0x10125d25c 0x10125d21c 0x10126d0c0 0x10126cbb8 0x18cd162b8 0x18cd15da4)
libc++abi.dylib: terminating with uncaught exception of type NSException

```

Fuse 0.30 (build 8529)  
working on OSX, Sierra 10.12.1

---

<div class="post-metadata">

**Author:** ![Jeroen\_Smeets](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jeroen_smeets/32/331_2.png) [@Jeroen\_Smeets](https://forums.fusetools.com/u/Jeroen_Smeets)\
**Post date:** [November 28, 2016, 9:01am UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930/2 "2016-11-28T09:01:49Z")

</div>

nb. I do have added `Fuse.CameraRoll` to the .unoproj file.

Also tried to build the app, this gives the same error.

---

<div class="post-metadata">

**Author:** ![Andreas\_Ronning](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/andreas_ronning/32/303_2.png) [@Andreas\_Ronning](https://forums.fusetools.com/u/Andreas_Ronning)\
**Post date:** [November 29, 2016, 2:47pm UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930/3 "2016-11-29T14:47:56Z")

</div>

Hey Jeroen

I’m assuming this is iOS 10?

---

<div class="post-metadata">

**Author:** ![Jeroen\_Smeets](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jeroen_smeets/32/331_2.png) [@Jeroen\_Smeets](https://forums.fusetools.com/u/Jeroen_Smeets)\
**Post date:** [November 29, 2016, 2:49pm UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930/4 "2016-11-29T14:49:38Z")

</div>

Hi Andreas,

version 10.1.1 to be exact.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Smeets](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jeroen_smeets/32/331_2.png) [@Jeroen\_Smeets](https://forums.fusetools.com/u/Jeroen_Smeets)\
**Post date:** [December 11, 2016, 11:28am UTC](https://forums.fusetools.com/t/error-on-accessing-cameraroll/6930/5 "2016-12-11T11:28:15Z")

</div>

Hi Andreas,

on 0.31 this seems to be fixed, although not in the changelog?
