Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

App often hangs for aprox. 1 min.

Hinne
Level 3
Level 3

Sporadicly but quiet often my App hangs after doing a collectionNode.publishItem().

after 1 min. I receive a onSessionSyncChange event with a completly new UserID.

Backward debug trace:

10:40:45 AM - onSessionStatusChange
10:40:38 AM - onUserNameChange
10:40:37 AM - onSyncChange
10:40:37 AM - onSessionSyncChange _cSession is Synchronized (new UserID)
10:40:33 AM - onSessionStatusChange
10:40:33 AM - onSyncChange CollectionNodeEvent
10:40:33 AM - onSessionSyncChange _cSession not Synchronized (ignored)
...app hangs aprox 1 min.
10:38:39 AM - sendMsg - collectionNode.publishItem(mi)

this is really bad since both users need to reinitiate a handshake to exchange their UserIDs again.

in other words my app does a reset.


        private function sendMsg(p_MsgID:int, p_PID:int=0, p_Value:int=0):void
        {
            if ( !collectionNode.isSynchronized ) {
                return;
            }
            var myUserMsg:UserMsg = new UserMsg(_chatUI.nicknameTextArea.text.toString(), p_MsgID, p_PID, p_Value);
            var mi = new MessageItem(SHARED_NODE_NAME, myUserMsg);
           
            mi.associatedUserID = _cSession.userManager.myUserID;
            mi.recipientID = _budyUserID;
           
            collectionNode.publishItem(mi);
        }

8 Replies
Raff_
Employee
Employee

This sound very strange. Can you supply more info about your application ?

- are you using p2p messaging or regular hub&spoke ?

- what type of items are you publishing ? (basic objects, complex object, large blob of data)

The best thing would be to send us your room URL and an exact time (date/time/timezone) of when you are experiencing the problem so that we can look at the server logs on our side.

Nigel_Pegg
Level 10
Level 10

I'd encourage you to include all debug console info. It looks like your session is restarting completely.

Hinne
Level 3
Level 3

I sync a complex object packing a string and 4 int. and a SimpleChatModel.

no audio or video streaming.

I will look at this a bit more and let u know...

Hinne
Level 3
Level 3

my app hangs actualy for 3 minutes. and it will happen any time, just need to be logged in. and it happends only on Friday & Saturday eve and Sundays.

Nigel_Pegg
Level 10
Level 10

Hi Hinne,

Not sure what you want us to say =)... Define “hang”? Is it 1 minute or 3 minutes? Why would Friday, Sat, or Sunday have anything to do with it?

nigel

Hinne
Level 3
Level 3

hang = zero events for 3min, following a onSessionSyncChange event with a completly new UserID

I guess there is more traffic on weekends?

Hinne
Level 3
Level 3

but I receive the SessionEvent.PING event.

Nigel_Pegg
Level 10
Level 10

Hi Hinne,

I’m pretty sure there isn’t an issue with the service at these times – we’d be hearing from a lot more folks than yourself if that were the case. I’d suggest that there’s likely something in your application code making it hang. Without more detail, that’s about as much help as I can offer.

nigel