||unity-dev|| Instantiating roomViews throws exceptions

Discussion list for Unity developers. unity-dev at moock.org
Mon Dec 3 08:13:23 CST 2007


Could someone please shed some light on this problem?

Instantiating additional room views throws undefined values only in top
class methods like onMouseDown() and onMouseMove(). The problem does not
happen with one room view, for every additional room view object created
additional objects in that class are created (I suspect) throwing undefined
values, again this only happens in top class methods.

Please see log below, specifically the last few line where a trace output
shows: avatars[client.getClientID()] undefined. 

Need help!

----------------------------------------------------------------------------
-----

INFO: Flash Player Version: WIN 8,0,22,0 (debug version)
INFO: UClient for Macromedia Flash Version: 2.0.2
INFO: Loading config from uAvatarChatConfig.xml.
INFO: uAvatarChat Version: 1.0.1
INFO: Config file loaded.
INFO: Server set to: localhost, on port: 9100
INFO: No policy port set. Connections to ports under 1024 now prohibited. If
required, policy file will load from: http://localhost/crossdomain.xml
INFO: Log level set to: DEBUG
INFO: UClient started...OK.
INFO: Connecting to Unity...
INFO: Initial connection to 'localhost' on port '9100' succeeded. Awaiting
server response.
INFO: Connection to 'localhost' on port '9100' established.
DEBUG: UClient caught connect success.
DEBUG: Set clientID to: 89
DEBUG: RemoteClientManager added a new RemoteClient, id: 89
DEBUG: Setting client89 attribute: null._IP=127.0.0.1. Old value: undefined
DEBUG: Setting client89 attribute: null._CONNECTTIME=1196689287531. Old
value: undefined
DEBUG: UClient notified of namespace creation results for namespace
'avatarchat': NAMESPACE_EXISTS
DEBUG: RoomManager now adding NameSpace: avatarchat
DEBUG: UClient notified of new NameSpace object: 'avatarchat'.
DEBUG: NameSpace 'avatarchat' added listener: A NamespaceView instance
DEBUG: Room factory for NameSpace 'avatarchat' set to: AvatarRoomFactory
DEBUG: NameSpace 'avatarchat' notifying observers of new room: 'w001_r001'.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.pos=315.25,307. Old
value: undefined
DEBUG: Setting client89 attribute:
avatarchat.w001_r001.avatarIcon=L_Canary_Green_mc. Old value:
L_Canary_Green_mc
DEBUG: New attribute value matches old value. Not changed.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.typingState=2. Old
value: undefined
DEBUG: NameSpace 'avatarchat' notifying observers of new room: 'w001_r002'.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.pos=294.25,291. Old
value: 315.25,307
DEBUG: Setting client89 attribute:
avatarchat.w001_r001.avatarIcon=L_Canary_Green_mc. Old value:
L_Canary_Green_mc
DEBUG: New attribute value matches old value. Not changed.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.typingState=2. Old
value: 2
DEBUG: New attribute value matches old value. Not changed.
DEBUG: UClient notified of room creation results for room
'avatarchat.w001_r001': ROOM_EXISTS
DEBUG: UClient notified of room creation results for room
'avatarchat.w001_r002': ROOM_EXISTS
DEBUG: upcOnJoinRoom received. status: ROOM_JOINED. room:
avatarchat.w001_r001
DEBUG: Room 'avatarchat.w001_r001' notifying observers that it was joined.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.activityState=0. Old
value: undefined
DEBUG: RemoteClientManager added roomID: avatarchat.w001_r001 to client: 89
DEBUG: Setting client89 attribute: avatarchat.w001_r001.pos=315.25,307. Old
value: 294.25,291
DEBUG: Setting client89 attribute:
avatarchat.w001_r001.avatarIcon=L_Canary_Green_mc. Old value:
L_Canary_Green_mc
DEBUG: New attribute value matches old value. Not changed.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.typingState=2. Old
value: 2
DEBUG: New attribute value matches old value. Not changed.
DEBUG: Room 'w001_r001' notifying observers of new client count: 1
DEBUG: Room 'avatarchat.w001_r001' notifying observers that client '89'
joined.
avatars[client.getClientID()] [object Object]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Object is defined OK, dir attributes are good.

DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=-58. Old value:
undefined
avatars[client.getClientID()] undefined
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Object is undefined not OK, dir attributes are
NaN.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=NaN. Old value:
-58
avatars[client.getClientID()] [object Object]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Object is OK again.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=-61. Old value:
NaN
avatars[client.getClientID()] undefined
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>only happens in onMouseMove() method.
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=NaN. Old value:
-61
avatars[client.getClientID()] [object Object]
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=-69. Old value:
NaN
avatars[client.getClientID()] undefined
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=NaN. Old value:
-69
avatars[client.getClientID()] [object Object]
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=-74. Old value:
NaN
avatars[client.getClientID()] undefined
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=NaN. Old value:
-74
avatars[client.getClientID()] [object Object]
DEBUG: Setting client89 attribute: avatarchat.w001_r001.dir=50. Old value:
NaN










More information about the unity-dev mailing list