4

While using a UITableView to display MPMediaItems my log gets spammed with the following message:

BEGIN IMMEDIATE could unexpectedly not be stepped after 0: 8/attempt to write a readonly database

But I haven't any idea what this means. Can you give me a hint?

miho
  • 11,765
  • 7
  • 42
  • 85

1 Answers1

2

Probably means you are using iTunes Match, and there is probably nothing you can do about these log messages.

EDIT: Further logging on my machine suggests that this message is generated by some collections when you call representativeItem. So if you're calling that method, perhaps you can avoid these log messages by avoiding that call (e.g. call items[0] instead).

The conclusion remains, though, that you are probably not doing anything wrong.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • OK, see my further edit. My testing on my own app shows that this console message is due to calling `representativeItem` on a collection. – matt Nov 19 '12 at 17:06
  • That may be the problem, but since this isn't a real issue, I'll stay using `representativeItem` which looks cleaner to me. – miho Nov 19 '12 at 17:15
  • 1
    Well, I agree to some extent, but one must ask oneself, what does `representativeItem` do? It chooses an item. But that's something you can do just as well. So if `representativeItem` is going to barf these messages, making your app look bad, it seems to me that there's no harm in just specifying an item yourself. - I have submitted a bug report to Apple, and I suggest you do the same. – matt Nov 19 '12 at 17:25
  • Maybe not iTunes Match, but maybe using iCloud for sharing your music across your devices? – samvermette Nov 29 '12 at 09:23