Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 SDK - MediaPlayer Framework - Rolling back transaction

The following block of code results in the error message:

2013-09-13 15:27:08.449 Mobile[746:5603] {MediaLibrary} Rolling back transaction.

MPMediaQuery *mediaQuery = [MPMediaQuery songsQuery];
NSArray *collections = [mediaQuery collections];

This is in the console as of iOS 7 GM.

This worked without issue in iOS 6.

Does anyone have any idea what this relates to in iOS 7? I have searched all over, and can find nothing about it.

In addition the message is logged on every iteration of this for loop:

for (MPMediaItemCollection *collection in collections) {

    for (MPMediaItem *item in collection.items) {
        //message is written to log here as well

    }
}
like image 899
JADurham909 Avatar asked Sep 13 '13 19:09

JADurham909


2 Answers

I'm seeing the same issue, though it doesn't seem to cause any problems. I think this is some internal logging that they mistakenly left turned on.

like image 189
cdemiris99 Avatar answered Oct 19 '22 22:10

cdemiris99


In some cases when the MPMediaQuery is loaded the first time you can have

2013-09-19 00:28:10.636 musiXmatch[4498:1303] {MediaLibrary} Database validation succeeded 2013-09-19 00:28:11.240 musiXmatch[4498:7a0b] {MediaLibrary} Rolling back transaction.

Other strange logs on iOS7 GM are the following

2013-09-19 00:28:13.643 musiXmatch[4498:7b0f] CLTilesManagerClient: initialize, sSharedTilesManagerClient 2013-09-19 00:28:13.647 musiXmatch[4498:7b0f] CLTilesManagerClient: init 2013-09-19 00:28:13.649 musiXmatch[4498:7b0f] CLTilesManagerClient: reconnecting, 0x19504c90 2013-09-19 00:28:13.651 musiXmatch[4498:7d03] CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!

Specifically the last messagge XPC_ERROR_CONNECTION_INVALID is a value of the xpc event type when doing something like

xpc_connection_set_event_handler(serviceConnection, ^(xpc_object_t event) {
    xpc_type_t type = xpc_get_type(event);

[EDIT]

New interesting CLTilesManagerClient logs.

2013-12-04 15:37:25.695 musiXmatch[274:1303] CLTilesManagerClient: initialize, sSharedTilesManagerClient 2013-12-04 15:37:25.697 musiXmatch[274:1303] CLTilesManagerClient: init 2013-12-04 15:37:25.698 musiXmatch[274:1303] CLTilesManagerClient: reconnecting, 0x1d942d50 2013-12-04 15:37:25.700 musiXmatch[274:7b03] CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!

like image 22
loretoparisi Avatar answered Oct 20 '22 00:10

loretoparisi