GKTurnBasedMatch with no current participant returned

After requesting a match with findMatchForRequest: I am getting a match with no current participant, no participant array, nothing seems to be set. No error is returned. This is what I see:


<GKTurnBasedMatch 0x170248b50 - matchID:ac0128a4-bd62-4f1b-a322-c70c936c18f6 bundleID:<nil> status:GKTurnBasedMatchStatusUnknown message:(null) creationDate:(null) currentParticipant:(null) participants:(null) matchData.length:0 matchDataMaximumSize:65536 exchanges:(null)>

Trying to update the initial state, results in this:


Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo=0x174675780 {GKServerStatusCode=5003, NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server., NSUnderlyingError=0x17465ad90 "The operation couldn’t be completed. status = 5003, No such session: ac0128a4-bd62-4f1b-a322-c70c936c18f6"}

I occasionally encountered the same problem when sending a turn-based invite to a specific player. The match has no participants, and the invited player doesn't receive the invite. This didn't happen all the time, only once in rare while, and I could never figure out exactly what caused it to happen. I ended up putting in a check for matches with no participants and deleting them. A player can also delete these bugged matches using the Game Center app.

Thanks for the reply, helps to know I'm not going crazy. I thought it was a server issue since it happened intermitently, most games work fine. I have this and another end turn bug that I am simply coding around. Can you link to your issue thread?

I'm not sure what you mean by "issue thread". I haven't posted about this before except for here. Just wanted to let you know that you weren't alone.

This sounds a lot like a bug I wrote up. The bug number is 22507018. It would be good for you to write a bug too though. I will update here when we get 22507018 resolved just so that if you do see this again after that you will know it is a separate issue.

Thanks, I'll test more after your bug is fixed to see if it still happens for me. This one isn't the easiest to reproduce, but I could usually get it to happen if I just invite enough times in a row.


Admittedly, I didn't write a bug for this, but there are so many little things that it's hard to find motivation to write bugs for all of them. So I prod on, workaround smaller issues, hope others will file bugs if they're affected more, and file bugs myself for things that are showstoppers. But it really does help to read feedback from you on this forum about various things. Thank you! 🙂

I have exactly the same problem:


Match data looks like:

<GKTurnBasedMatch 0x15295dc30 - matchID:665248e2-7be7-47cc-8888-043eeeb47b48 bundleID:<anonymized> status:GKTurnBasedMatchStatusOpen message:(null) creationDate:2015-12-19 13:37:48 +0000 currentParticipant:(null) participants:(null) matchData.length:0 matchDataMaximumSize:65536 exchanges:(null)>


but I am not able to delete such matches:

1. by API call removeWithCompletionHandler I get:

Error deleting match from server Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo={GKServerStatusCode=5001, NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server., NSUnderlyingError=0x126ea0f10 {Error Domain=GKServerErrorDomain Code=5001 "status = 5001, No slot for playerId: <anonymized> in session: 665248e2-7be7-47cc-8888-043eeeb47b48" UserInfo={GKServerStatusCode=5001, NSLocalizedFailureReason=status = 5001, No slot for playerId: <anonymized> in session: 665248e2-7be7-47cc-8888-043eeeb47b48}}}


2. if I try to delete this match in th Game center application, I can click on "Remove", but the game stay there with corrupted data: "Playing with Auto-Match Play-er and -1 others"


I've opened a bug 23966830 for this issue - currently my 4th bug in Apple Bug Reporter, but until now, no reaction on any of the open bugs. Sometimes I am asking myself if it makes even sence to open them up....

Still I got this issue first time of creating turn based match for fresh build


<GKTurnBasedMatch 0x14b15b840 - matchID:d1d82ec7-4481-41e3-8636-8cd0c507fd4c bundleID:<my bundle id> status:GKTurnBasedMatchStatusOpen message:(null) creationDate:2016-01-04 12:18:11 +0000 currentParticipant:(null) participants:(null) matchData.length:0 matchDataMaximumSize:65536 exchanges:(null)>


is there any solution for this issues.

we knew this can be removed from game center app but this is not good for user point of view.


Apple kindly fix game center issues for developing turn based match


Thanks and Regards

Rhytha

iOS App Development

https://rhytha.com/

Amanda,


I had the same issue now on iOS 9.2.1. Has that bug report been resolved in 9.2.1?

Thanks!

I'm getting the same issue as well: I use GKTurnBasedMatch findMatchForRequest and get back a match with nil in the Participants property and nil as CurrentParticipant. Happens relatively frequently. iOS 9.2.1. I've gotten it on various iPhones. Very unclear what is the right way to handle this...

GKTurnBasedMatch with no current participant returned
 
 
Q