enumerateAssetsUsingBlock crash with SQLite error code 14

111 views Asked by At

SQLite error code 14 is SQLITE_CANTOPEN.

The crash happens only in iOS8.1 of our app.

The process is like below.

Main->Album Select View(Select Camera Roll)->Photo Select View->Back to Main-> Album Select View (Select Camera Roll)->Photo Select View(Crash)

We reload the assetGroup objects in init of Album Select View.(ALAssetsLibrary is also initialized)

I hope someone could give me some hint about this issue.

1

There are 1 answers

0
Steven Jiang On

It's really a weird problem.

The reason is this piece of code.

[assetsGroup setAssetsFilter:[ALAssetsFilter allPhotos]]

After I delete it, it turns all right. And the crash only occurs in iOS8.1 iPhone version.