Multiple Intermittent Null Value Exceptions

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

whornak
Posts: 86
Joined: 22 Sep 2009, 11:05

Multiple Intermittent Null Value Exceptions

Postby whornak » 20 Oct 2010, 10:46

Win XP, FlashPayer 9.0.283.0 debugger, SFS 1.6.9, Opens Space 2.0.2, IE 8

I can manuever from map to map without issue but on occasion and to this point without consistancy, will continue to look for that, experience the following errors. They don't seem to have an effect on functionality once continue is hit in the notification. Wanted to post to see if either of these had an obvious cause of some direction could be provided as to the cause.

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/contains()
at com.smartfoxserver.openspace.engine.control.avatar::AvatarAnimator/moveAvatarToNextTile()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/avatar/AvatarAnimator.as:120]
at <anonymous>()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/IsoEngineController.as:1678]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at com.lowke.utils::DoLater/trigger()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/lowke/utils/DoLater.as:122]
at com.lowke.utils::DoLater/enterFrameEvt()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/lowke/utils/DoLater.as:105]


TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace.engine.control.avatar::AvatarAnimator/moveAvatarToNextTile()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/avatar/AvatarAnimator.as:128]
at com.smartfoxserver.openspace.engine.control.avatar::AvatarAnimator/onAvatarAnimationCompleted()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/avatar/AvatarAnimator.as:473]
at com.smartfoxserver.openspace.engine.control.avatar::AvatarAnimator/onAvatarAnimationStep()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/avatar/AvatarAnimator.as:450]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at com.greensock::TweenMax/renderTime()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/greensock/TweenMax.as:749]
at com.greensock.core::SimpleTimeline/renderTime()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/greensock/core/SimpleTimeline.as:74]
at com.greensock::TweenLite$/updateAll()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/greensock/TweenLite.as:616]
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 26 Oct 2010, 06:28

Thanks for posting. We will look into it as soon as possible.
Paolo Bax
The SmartFoxServer Team
jaredy
Posts: 11
Joined: 26 Oct 2010, 04:51

Postby jaredy » 29 Oct 2010, 02:37

getting these errors too when i aggressively click around tiles closer to the borders, and the avatar will get stuck in a loop.

SF 1.6.9, OS 2.0.2, Any browser, FP10
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 30 Oct 2010, 13:02

This has been reported by other users too, even if it it seems we are not able to reproduce it. Are you able to record a video showing the behavior? Having the tiles grid displayed would be useful too.

Also, are you able to provide more details on the issue? Do you see it happening in special conditions? For example if the avatar is causing a scrolling, when other avatars are moving around too, or when the avatar is alone, etc? What if you have 2 clients showing the same map? Does the error happens on the client of the user who is clicking around? What happens on the other client in this case?
We are looking for a "pattern" to make this issue more reproducible, because in our test maps we can keep clicking around as long and fast as we like, but it never happens.
Is the issue occurring in the live environment only, or in you dev environment too (maybe it is related with lag)? Is your map design peculiar? I mean, a lot of non walkable tiles among the walkable ones?
What are your avatar settings? For example, do you set the Avatar.controlAreaWidth property? Thank you.
Paolo Bax
The SmartFoxServer Team
jaredy
Posts: 11
Joined: 26 Oct 2010, 04:51

Postby jaredy » 01 Nov 2010, 01:27

It appears to only occur on my live server, not on localhost. Quite easy to replicate but am unable to provide a screen cap of it..

The error occurs when I click multiple times on the same border tile while the avatar is walking toward it.

No scrolling involved, just a small map.
Occurs to any avatar, regardless of number of avatars in the room.

Avatar.controlAreaWidth = 0

Not sure how else I could provide more info..
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 01 Nov 2010, 16:26

Thank you for the additional informations.
It would be really useful for us to actually see the avatar behavior during the movement. Is it possible to access your live environment and see this on our screens?
Paolo Bax
The SmartFoxServer Team
jaredy
Posts: 11
Joined: 26 Oct 2010, 04:51

Postby jaredy » 02 Nov 2010, 04:16

unfortunately i cant provide any further detail.

is there a temp workaround that I can do, like disabling tile clicks while the avatar is walking, to prevent a change of coordinates?
Marc
Posts: 7
Joined: 22 Oct 2009, 00:13

Postby Marc » 02 Nov 2010, 21:42

I just sent an email to support with some creds, it's pretty easy to duplicate...basically you just need to click around the map quickly and either the debug window will pop or the screen will lock.
whornak
Posts: 86
Joined: 22 Sep 2009, 11:05

Postby whornak » 02 Nov 2010, 21:53

While performing the test w/Marc, I was not able to cause the error but did experience an 1009 issue noted in the beginning of this thread. What I did was simply log in and nothing else, no movement at all. Watching Marc moving around and changing directions until I get the flash player exception window. Once that happened I hit continue or dismiss and his avatar is walking in place until it disappears. Each time I experience the error I can continue as if nothing happened.
whornak
Posts: 86
Joined: 22 Sep 2009, 11:05

Postby whornak » 04 Nov 2010, 22:40

Found an error in the console log after changing the logging to FINEST and at end of the following you will see an error with _os_path.

2010/11/04 19:40:09.470 - [ FINE ] [id: 43] (SmartFoxServer.canLogin): User [ MarcButton ] logged in
2010/11/04 19:40:09.751 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Map load request received from user MarcButton [2]
2010/11/04 19:40:09.761 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Joining user MarcButton [2] to Room 'E3' [41]
2010/11/04 19:40:09.761 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_pz] deleted for user: MarcButton
2010/11/04 19:40:09.761 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_px] deleted for user: MarcButton
2010/11/04 19:40:09.761 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_py] deleted for user: MarcButton
2010/11/04 19:40:09.761 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Room 'E3' [41] joined; now loading associated map 'bpb_E3#E3_Map
2010/11/04 19:40:09.761 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Loading assets library for map 'bpb_E3#E3_Map'
2010/11/04 19:40:09.811 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] 'openSpace/data/bpb_E3.lib' library file loaded
2010/11/04 19:40:09.851 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] 'openSpace/data/bpb_E3#E3_Map.map' map file loaded
2010/11/04 19:40:10.191 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Map 'bpb_E3#E3_Map' sent to user MarcButton [2]
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_py] = 14 (n), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_pz] = 0 (n), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_dir] = 4 (n), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_aTime] = 300 (n), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.deleteVariable): User variable [_os_edit] deleted for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_px] = 16 (n), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_type] = example (s), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (User.setVariable): User variable [_os_skin] = {"sex":"m","race":"european","bust":"shirt1","legs":"jeans1","hair":"hair1"} (s), created for user: MarcButton
2010/11/04 19:40:10.292 - [ FINE ] [id: 43] (SystemHandler.handleSetUserVariables): User MarcButton updates variables: <vars><var n='_os_py' t='n'><![CDATA[14]]></var><var n='_os_pz' t='n'><![CDATA[0]]></var><var n='_os_dir' t='n'><![CDATA[4]]></var><var n='_os_aTime' t='n'><![CDATA[300]]></var><var n='_os_edit' t='x' /><var n='_os_px' t='n'><![CDATA[16]]></var><var n='_os_type' t='s'><![CDATA[example]]></var><var n='_os_skin' t='s'><![CDATA[{"sex":"m","race":"european","bust":"shirt1","legs":"jeans1","hair":"hair1"}]]></var></vars>
2010/11/04 19:40:13.807 - [ FINE ] [id: 44] (AbstractBuddyPersister.saveAll): Buddy Lists Autosave done in 0ms.
2010/11/04 19:40:13.807 - [ FINE ] [id: 44] (AbstractBuddyPersister.saveAll): Buddy Lists Autosave done in 0ms.
2010/11/04 19:40:13.807 - [ FINE ] [id: 44] (AbstractBuddyPersister.saveAll): Buddy Lists Autosave done in 0ms.
2010/11/04 19:40:13.807 - [ FINE ] [id: 44] (AbstractBuddyPersister.saveAll): Buddy Lists Autosave done in 0ms.
2010/11/04 19:40:13.807 - [ FINE ] [id: 44] (AbstractBuddyPersister.saveAll): Buddy Lists Autosave done in 0ms.
2010/11/04 19:40:22.760 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (16, 14, 0) to (23, 20, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:22.760 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_px] = 23 (n), modified for user: MarcButton
2010/11/04 19:40:22.760 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_py] = 20 (n), modified for user: MarcButton
2010/11/04 19:40:22.760 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_dir] = 5 (n), modified for user: MarcButton
2010/11/04 19:40:22.770 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Path to (23,20,0) target coordinates found and sent to all users in the same room
2010/11/04 19:40:23.211 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (17, 14, 0) to (24, 18, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:23.211 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_px] = 24 (n), modified for user: MarcButton
2010/11/04 19:40:23.221 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_py] = 18 (n), modified for user: MarcButton
2010/11/04 19:40:23.221 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Path to (24,18,0) target coordinates found and sent to all users in the same room
2010/11/04 19:40:28.008 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (24, 18, 0) to (20, 19, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:28.018 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_px] = 20 (n), modified for user: MarcButton
2010/11/04 19:40:28.018 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_py] = 19 (n), modified for user: MarcButton
2010/11/04 19:40:28.018 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_dir] = 6 (n), modified for user: MarcButton
2010/11/04 19:40:28.018 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Path to (20,19,0) target coordinates found and sent to all users in the same room
2010/11/04 19:40:31.063 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (20, 19, 0) to (19, 19, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:31.063 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_px] = 19 (n), modified for user: MarcButton
2010/11/04 19:40:31.063 - [ FINE ] [id: 46] (User.setVariable): User variable [_os_dir] = 0 (n), modified for user: MarcButton
2010/11/04 19:40:31.073 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Path to (19,19,0) target coordinates found and sent to all users in the same room
2010/11/04 19:40:31.503 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Map load request received from user MarcButton [2]
2010/11/04 19:40:31.503 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Joining user MarcButton [2] to Room 'E2' [40]
2010/11/04 19:40:31.503 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_pz] deleted for user: MarcButton
2010/11/04 19:40:31.503 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_px] deleted for user: MarcButton
2010/11/04 19:40:31.503 - [ FINE ] [id: 46] (User.deleteVariable): User variable [_os_py] deleted for user: MarcButton
2010/11/04 19:40:31.503 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Room 'E2' [40] joined; now loading associated map 'bpb_E2#E2_Map
2010/11/04 19:40:31.503 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Loading assets library for map 'bpb_E2#E2_Map'
2010/11/04 19:40:31.533 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] 'openSpace/data/bpb_E2.lib' library file loaded
2010/11/04 19:40:31.533 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Maps' cache cleared due to library reloading
2010/11/04 19:40:31.573 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] 'openSpace/data/bpb_E2#E2_Map.map' map file loaded
2010/11/04 19:40:31.794 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] Map 'bpb_E2#E2_Map' sent to user MarcButton [2]
2010/11/04 19:40:32.244 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (19, 19, 0) to (22, 21, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:32.244 - [ SEVERE ] [id: 46] (Logger.logError): [OpenSpace] An exception occurred while executing command _os_path
2010/11/04 19:40:33.496 - [ INFO ] [id: 46] (Logger.logInfo): [OpenSpace] User MarcButton [2] requested path from (19, 19, 0) to (23, 19, 0) on map 'bpb_E3#E3_Map'
2010/11/04 19:40:33.496 - [ SEVERE ] [id: 46] (Logger.logError): [OpenSpace] An exception occurred while executing command _os_path
jaredy
Posts: 11
Joined: 26 Oct 2010, 04:51

Postby jaredy » 08 Nov 2010, 07:42

jaredy wrote:is there a temp workaround that I can do, like disabling tile clicks while the avatar is walking, to prevent a change of coordinates?


bump?
Marc
Posts: 7
Joined: 22 Oct 2009, 00:13

Postby Marc » 08 Nov 2010, 11:31

hopefully some good news as well for this...this has been killing our testing for a couple weeks now.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 11 Nov 2010, 08:33

We are investigating the issue. We are still not able to reproduce it in our environment, but we are receiving the help of a number of customers, so hopefully we should be able to fix it soon.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 11 Nov 2010, 08:37

jaredy wrote:
jaredy wrote:is there a temp workaround that I can do, like disabling tile clicks while the avatar is walking, to prevent a change of coordinates?


bump?


You could use the IOpenSpace.userInteractionEnabled property, but then setting it to true again when the avatar stops moving would require having a proper trigger added to each tile. Not a good solution. We suggest to wait for the bug fix.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 17 Nov 2010, 08:00

We think we have found the problem, and possibly solved it.

All those who experienced the issue should please contact us by email, so we can send a pre-release version for some testing in their environments.
If you are OpenSpace customers, please attach the invoice to the email, so we can send you the retail version.

Customers who are not able to reproduce the issue, please wait the official release, thanks.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 10 guests