One certain occasions, when presenting an MPMediaPickerController on my iOS device, I get no results displayed and logged in the console I find many SQLite errors along with the error "unable to open database file". I've worked in SQLite before and I I know this error usually means the DB file is currently being used in another thread and/or process.
The problem is, the problem is intermittent at best. It doesn't happen all the time, and I'm not sure there's a common theme to whether this will end up happening or not. I'm familiar enough will SQLite to understand the problem, but the actual database query is "blackboxed" so I have little control over it, and I am new to CoreMedia and the MediaPlayer framework. Has anyone seen this happen before, and if so, did they manage to find a solution to the problem?
Edit: The code I use to instantiate the controller is this:
MPMediaPickerController* pickCont = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeAnyAudio];
pickCont.allowsPickingMultipleItems = YES;
pickCont.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
pickCont.modalPresentationStyle = UIModalPresentationFullScreen;
pickCont.delegate = self;
[self presentModalViewController:pickCont animated:YES];