Comments (17)
Thx for ur report, will try to fix it when i've got time :)
from alassetslibrary-customphotoalbum.
Looks like this happens when previously an album with the specified name has been deleted.
from alassetslibrary-customphotoalbum.
that's right
from alassetslibrary-customphotoalbum.
I'll have some time to check it out on Sunday.
from alassetslibrary-customphotoalbum.
"Looks like this happens when previously an album with the specified name has been deleted"
Hm... seems not, I tried but without any crash (iPhone 5 with iOS 8.0). Just got the issue #15 "Can not create album with name similar to deleted album" (I will try to fix it).
Generally, the image token via camera is JPG type, as the error shows it's PNG type, so @sarperdag , u tried to add the image from Photo Library, right? Can u offer some related testing code? That'll be helpful to reproduce this bug. Thx :)
from alassetslibrary-customphotoalbum.
@Kjuly for me this was on a 4s, I've got some time now so I will look into it and let you know.
from alassetslibrary-customphotoalbum.
Thx @jasoncox, and for the issue related to delete custom album, it seems SDK's bug. I've left a comment below issue #15 .
from alassetslibrary-customphotoalbum.
Issue was fixed by PR #19
from alassetslibrary-customphotoalbum.
Error Domain=LIB_ALAssetsLibrary_CustomPhotoAlbum Code=0 "ALAssetsGroup failed to add asset: (null)." UserInfo=0x1638c9b0 {NSLocalizedDescription=ALAssetsGroup failed to add asset: (null).}
The same error also happens when there is not enough space in the device.
from alassetslibrary-customphotoalbum.
@renjithn interesting case, but i notice the asset u tried to add is null
.
from alassetslibrary-customphotoalbum.
Yes interesting. On debugging I see that writeVideoAtPathToSavedPhotosAlbum: completion handler is invoked with assetURL = nil and also error = nil.
As a result [self addAssetURL:assetURL toAlbum:albumName completion:completion failure:failure]; gets called with a nil assetURL and hence the error.
from alassetslibrary-customphotoalbum.
failed to add asset on iOS 8.1.2
from alassetslibrary-customphotoalbum.
@johntaiii latest version? have u imported the Photos.framework?
from alassetslibrary-customphotoalbum.
ALAssetsGroup failed to add asset: (null)." UserInfo=0x175a64e40 {NSLocalizedDescription=ALAssetsGroup failed to add asset: (null)
iOS 8.4 - I am not passing null...
from alassetslibrary-customphotoalbum.
@MMasterson when did u invoke the saving logic? I think the resource might not be prepared/generated before u try to save it. B.t.w., can u open a new issue w/ some sample code that u used? Thx :)
from alassetslibrary-customphotoalbum.
I'm getting same issue
Here is my code
[library saveVideo:self.video toAlbum:albumName completion:completion failure:failure];
here library, self.video, albumName, completion and failure are not null checked that.
Still getting error here is error log.
Error Domain=LIB_ALAssetsLibrary_CustomPhotoAlbum Code=0 "ALAssetsGroup failed to add asset: (null)." UserInfo={NSLocalizedDescription=ALAssetsGroup failed to add asset: (null).}
Here are some other info.
Lib version via CocoaPod: 1.3.4
iOS version: 11.4.1
Device: iPhone 6
from alassetslibrary-customphotoalbum.
Hi @mrugeshtank , can u provide a sample project (u can host in a temp repo) that can reproduce ur case? Thanks in advance.
And btw, i'd suggest u use Photos.framework instead, even i don't use ALAssetsLibrary now. 😅
from alassetslibrary-customphotoalbum.
Related Issues (20)
- HI~Sir, I have a problem HOT 4
- ios 8.3 recreate album HOT 7
- I have gone through its very good wrapper for ALAsset library is there a way to load video like loading images from albumb HOT 1
- *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ALAssetsLibrary saveImage:toAlbum:completion:failure:]: unrecognized selector sent to instance HOT 4
- Can't create album with same name as a deleted one HOT 4
- Add Photos.framework as one more Dependancy for iOS 8 HOT 3
- Saving bulk images fails! HOT 2
- Multithreading violation in iOS 8.3+ HOT 8
- Failure Block isn't working properly. HOT 1
- When custom album was deleted by somebody through system PhotoApp, execute -saveImage:toAlbum:completion:failure:will throw error HOT 5
- ios8.4 sometimes fail when addAssetURL to album HOT 15
- Option to check if image exists in the newly created folder in gallery? HOT 4
- Image getting saved to Camera roll as well. HOT 1
- Method to remove image from Camera Roll. HOT 1
- iOS9 cannot create new album group HOT 6
- iOS9 saving bug. HOT 11
- Not saving images in iOS 10 HOT 4
- Thanks! HOT 1
- ALAssetsGroup failed to add asset: null on iOS11 HOT 10
- not working iOS 11.3 , and 11.4 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alassetslibrary-customphotoalbum.