{"action":"created","issue":{"url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/170","labels_url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/170/comments","events_url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/170/events","html_url":"https://github.com/playgameservices/android-basic-samples/issues/170","id":109346337,"number":170,"title":"Repeated exception causing high battery drain by Google Play Services","user":{"login":"scoof","id":1122139,"avatar_url":"https://avatars.githubusercontent.com/u/1122139?v=3","gravatar_id":"","url":"https://api.github.com/users/scoof","html_url":"https://github.com/scoof","followers_url":"https://api.github.com/users/scoof/followers","following_url":"https://api.github.com/users/scoof/following{/other_user}","gists_url":"https://api.github.com/users/scoof/gists{/gist_id}","starred_url":"https://api.github.com/users/scoof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoof/subscriptions","organizations_url":"https://api.github.com/users/scoof/orgs","repos_url":"https://api.github.com/users/scoof/repos","events_url":"https://api.github.com/users/scoof/events{/privacy}","received_events_url":"https://api.github.com/users/scoof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-01T17:30:00Z","updated_at":"2016-01-17T15:28:12Z","closed_at":"2016-01-12T17:42:10Z","body":"PID 3250, com.google.android.gms.persistent logs this almost once per second. Uninstalling/reinstalling updates of Google Play Services seems to have fixed it for the time being.\r\n\r\nE/SQLiteLog( 3250): (2067) abort at 35 in [INSERT INTO context(context_name,end_time,context_family,module_id,version,sync_state_mod_time_millis,start_time,sync_state,context_id,time_type,proto_blob) VALUES (?,?,?,?,?,?,?,?,?,?,?)]: UNI\r\nI/Babel   ( 5969): RTCS will handle all server updates.\r\nE/SQLiteDatabase( 3250): Error inserting context_name=6 end_time=1443720116002 context_family=1 module_id=com.google.android.contextmanager.module.DetectedActivityProducer version=1 sync_state_mod_time_millis=1443720116026 start_time=1443720109438 sync_state=0 context_id=12459098-4795-453e-b26b-e89b270f2fd6 time_type=3 proto_blob=[B@3a0a1697\r\nE/SQLiteDatabase( 3250): android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: context.context_id (code 2067)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)\r\nE/SQLiteDatabase( 3250):        at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.q.al.a(SourceFile:408)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.q.al.b(SourceFile:383)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.q.al.a(SourceFile:349)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.q.al.b(SourceFile:376)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.g.a.j.a(SourceFile:58)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.g.a.a.run(SourceFile:52)\r\nE/SQLiteDatabase( 3250):        at com.google.android.contextmanager.g.i.handleMessage(SourceFile:215)\r\nE/SQLiteDatabase( 3250):        at android.os.Handler.dispatchMessage(Handler.java:102)\r\nE/SQLiteDatabase( 3250):        at android.os.Looper.loop(Looper.java:135)\r\nE/SQLiteDatabase( 3250):        at android.os.HandlerThread.run(HandlerThread.java:61)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/comments/172340354","html_url":"https://github.com/playgameservices/android-basic-samples/issues/170#issuecomment-172340354","issue_url":"https://api.github.com/repos/playgameservices/android-basic-samples/issues/170","id":172340354,"user":{"login":"micheljung","id":1864183,"avatar_url":"https://avatars.githubusercontent.com/u/1864183?v=3","gravatar_id":"","url":"https://api.github.com/users/micheljung","html_url":"https://github.com/micheljung","followers_url":"https://api.github.com/users/micheljung/followers","following_url":"https://api.github.com/users/micheljung/following{/other_user}","gists_url":"https://api.github.com/users/micheljung/gists{/gist_id}","starred_url":"https://api.github.com/users/micheljung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheljung/subscriptions","organizations_url":"https://api.github.com/users/micheljung/orgs","repos_url":"https://api.github.com/users/micheljung/repos","events_url":"https://api.github.com/users/micheljung/events{/privacy}","received_events_url":"https://api.github.com/users/micheljung/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T15:28:12Z","updated_at":"2016-01-17T15:28:12Z","body":"I'm getting this error since weeks\r\n\r\n```\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: Error inserting context_name=6 end_time=1453043684182 context_family=1 module_id=com.google.android.contextmanager.module.DetectedActivityProducer version=1 sync_state_mod_time_millis=1453044243088 start_time=1453043630271 sync_state=0 context_id=92912b06-0031-4443-9eb1-aa3e05d47a42 time_type=3 proto_blob=[B@cd542d9\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: context.context_id (code 2067)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:780)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.q.ak.a(SourceFile:445)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.q.ak.b(SourceFile:420)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.q.ak.a(SourceFile:370)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.q.ak.b(SourceFile:400)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.q.r.a(SourceFile:381)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.g.a.j.a(SourceFile:58)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.g.a.a.run(SourceFile:52)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.g.i.a(SourceFile:263)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat com.google.android.contextmanager.g.i.handleMessage(SourceFile:254)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.os.Looper.loop(Looper.java:148)\r\n01-17 16:24:03.091  2137  3519 E SQLiteDatabase: \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n```"}}