Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from mediasession.cc after accepted MP invite. #21

Open
stolk opened this issue Sep 13, 2015 · 2 comments
Open

Error from mediasession.cc after accepted MP invite. #21

stolk opened this issue Sep 13, 2015 · 2 comments

Comments

@stolk
Copy link

stolk commented Sep 13, 2015

Occasionally after inviting a friend, a MP match starts and immediately aborts.
In the logs I get a libjingle error from mediasession.cc:529 about cricket?

I/RoomServiceStateMachine(20236): Attempting to reconnect to: p_CJHH0rGIsLz-EhAC
I/libjingle(20236): worker_thread:0x7980fc18 initialized=1
I/libjingle(20236): Channel disabled
I/libjingle(20236): Changing data state, recv=0 send=0
I/libjingle(20236): Destroyed channel
I/libjingle(20236): Attempting to create a session, with data only.
I/libjingle(20236): CompleteInitiateCall_w:[email protected]/games_andr240E7819
I/libjingle(20236): void gtalk::LibjingleClient::OnCallCreate(cricket::Call*): Connecting to OnAddSession
E/libjingle(20236): Error(mediasession.cc:529): cricket::SessionDescription* cricket::MediaSessionDescriptionFactory::CreateOffer(const cricket::MediaSessionOptions&, const cricket::SessionDescription*): Creating Data offer.

This is with gpg v 2.0 on ARM 32bit between two Samsung S5 devices.

@stolk
Copy link
Author

stolk commented Jun 21, 2017

This still happens with gpg v 2.3 and com.google.android.gms 11.0.1

From a HUAWEI JDN-W09 device running Android 6.0 and Play Games version 3.9.08

I/swaag   ( 6797): Succesfully showed room [ChoKCQj1jOXnmhsQAhABGAEg____________ARCcgPqJ1t6qtHA] (created by Mazaraxx): (null)
I/swaag   ( 6797): Participant named Mazaraxx(connected), id p_CJyA-onW3qq0cBAB, status joined
I/swaag   ( 6797): Participant named ChewyCombat35727(connected), id p_CPz8kqOx95WhZxAB, status joined
V/GamesNativeSDK( 6797): Received Activity Resume Event.
E/GamesNativeSDK( 6797): Sending reliable message
E/GamesNativeSDK( 6797): Sending reliable message SUCCEEDED
W/GamesServiceBroker( 1768): Client connected with SDK 8487000, Services 11055446, and Games 39080046
I/libjingle( 3678): IbbDataTask::ProcessStart() called:
I/libjingle( 3678): Got Xmpp data back: <ibb:data ibb:seq="1" ibb:sid="0" xmlns:ibb="http://jabber.org/protocol/ibb"/>
I/libjingle( 3678): static void gtalk::LibjingleJniHelper::DispatchIbbSendResult(jobject, const string&, const string&, bool): Dispatch ID:1
I/libjingle( 3678): IbbDataTask::ProcessStart() called:
W/libjingle( 3678): Warning(callregistry.cpp:27): void games_rtmp::CallRegistry::UnregisterCall(const string&, const string&): Attempting to erase non-existent session:3202538182
I/libjingle( 3678): worker_thread:0x00000055b0bc7f60 initialized=1
I/libjingle( 3678): Channel disabled
I/libjingle( 3678): Changing data state, recv=0 send=0
I/libjingle( 3678): Destroyed channel
I/swaag   ( 6797): The Connected Set Changed for room id ChoKCQj1jOXnmhsQAhABGAEg____________ARCcgPqJ1t6qtHA, status ACTI�. Currently connected: 0

The earliest sign of trouble being:
I/libjingle( 3678): Channel disabled

What is the reason for libjingle to disable the channel?

@stolk
Copy link
Author

stolk commented Jun 23, 2017

Comparing the logs of a working match versus a disconnected match, I see that the first sign of trouble is actually:

I/RoomServiceStateMachine( 8563): Attempting to reconnect to: p_CL2Ww9b4x7XqKxAB

Is it common for connections to get lost, after the room has been fully connected earlier?
Is there any guidance on how to treat this situation?
What triggers the reconnecting by RoomServiceStateMachine?
Is the source code available for RoomServiceStateMachine?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant