Git Product home page Git Product logo

Comments (17)

Kjuly avatar Kjuly commented on June 3, 2024

Thx for ur report, will try to fix it when i've got time :)

from alassetslibrary-customphotoalbum.

jasoncox avatar jasoncox commented on June 3, 2024

Looks like this happens when previously an album with the specified name has been deleted.

from alassetslibrary-customphotoalbum.

sarperdag avatar sarperdag commented on June 3, 2024

that's right

from alassetslibrary-customphotoalbum.

jasoncox avatar jasoncox commented on June 3, 2024

I'll have some time to check it out on Sunday.

from alassetslibrary-customphotoalbum.

Kjuly avatar Kjuly commented on June 3, 2024

"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.

jasoncox avatar jasoncox commented on June 3, 2024

@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.

Kjuly avatar Kjuly commented on June 3, 2024

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.

Kjuly avatar Kjuly commented on June 3, 2024

Issue was fixed by PR #19

from alassetslibrary-customphotoalbum.

renjithn avatar renjithn commented on June 3, 2024

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.

Kjuly avatar Kjuly commented on June 3, 2024

@renjithn interesting case, but i notice the asset u tried to add is null.

from alassetslibrary-customphotoalbum.

renjithn avatar renjithn commented on June 3, 2024

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.

johntaiii avatar johntaiii commented on June 3, 2024

u u3l9aclt8r 5s2g q

failed to add asset on iOS 8.1.2

from alassetslibrary-customphotoalbum.

Kjuly avatar Kjuly commented on June 3, 2024

@johntaiii latest version? have u imported the Photos.framework?

from alassetslibrary-customphotoalbum.

MMasterson avatar MMasterson commented on June 3, 2024

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.

Kjuly avatar Kjuly commented on June 3, 2024

@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.

mrugeshtank avatar mrugeshtank commented on June 3, 2024

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.

Kjuly avatar Kjuly commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.