Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

App often hangs for aprox. 1 min.

Avatar

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

Avatar

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.

Avatar

Former Community Member

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

Avatar

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...

Avatar

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.

Avatar

Former Community Member

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

Avatar

Level 3

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

I guess there is more traffic on weekends?

Avatar

Level 3

but I receive the SessionEvent.PING event.

Avatar

Former Community Member

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