Stack overflow error

Everything about the SmartFoxBits UI Components for SmartFoxServer 1.x. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

wylkyn
Posts: 18
Joined: 26 May 2010, 16:19

Stack overflow error

Postby wylkyn » 26 May 2010, 16:28

I am trying out the bits with the possibility that we will be purchasing them, but lately I have been getting a strange stack overflow error:

Error: Error #1023: Stack overflow occurred.
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()...etc.

I have ChatBox, UserList, Connector, and LoginBox on the screen. When I remove either ChatBox or UserList, it seems to stop this error. Otherwise, it happens intermittently. I don't have any recursive code that I can tell, so I'm not sure why this is happening - I'm sure it must be something I'm doing wrong, but it seems to have something to do with the drawing of one of these bits or a conflict between chat and user boxes.

Any thoughts? I've been looking for a solution for hours and I'm not getting anywhere. My next option is to just forget about bits and make my own MovieClips and code, but I would rather save that time if I can. I'd appreciate any help you can give.

Thanks!
wylkyn
Posts: 18
Joined: 26 May 2010, 16:19

Postby wylkyn » 26 May 2010, 18:49

It seems to be related to the Userlist bit because I deleted that bit from the stage, and was able to run it 10 times in a row without getting that error. I tried the same when deleting the Chatbox, but got the error right away. So any clue as to why the Userlist would be causing a stack overflow error would really help.

I'm working with Flash CS4, AS3, the latest versions of your software if that info helps at all.

Thanks!
User avatar
cksachdev
Posts: 55
Joined: 28 Aug 2007, 10:13
Location: Bangalore, India
Contact:

Postby cksachdev » 27 May 2010, 07:40

@wylkyn:
Could you please share the following:
1. Version of SmartFoxServer, I think it should be 1.x.
2. full stack trace of the error
3. can you share a sample example, which I can use to reproduce the error. You can drop me an example at my email address: cksachdev [at] gmail [dot] com.

Thanks
--
Chetan Sachdev
Site: http://www.chetansachdev.com
wylkyn
Posts: 18
Joined: 26 May 2010, 16:19

Postby wylkyn » 27 May 2010, 16:06

We are using version 1.6.6

The trace I get of the error is rather long and repetitive, which is why I didn't include the whole thing. I will paste it below.

As for an example, I will e-mail you a zip of my Flash file and actionscript. Thanks for your interest in my problem. Like I said, I'm just starting to learn this, so I'm sure it's some stupid mistake of my own.

Error message to follow...
*******
Error: Error #1023: Stack overflow occurred.
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
Error: Error #1023: Stack overflow occurred.
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.containers::BaseScrollPane/get verticalPageScrollSize()
at fl.containers::BaseScrollPane/drawLayout()
at fl.controls::SelectableList/drawLayout()
at fl.controls::List/draw()
User avatar
cksachdev
Posts: 55
Joined: 28 Aug 2007, 10:13
Location: Bangalore, India
Contact:

Postby cksachdev » 28 May 2010, 07:33

@wylkyn
Thanks for sending out the files. I will take a look at them and reply back to you soon.
--

Chetan Sachdev

Site: http://www.chetansachdev.com
gaborv
Posts: 1
Joined: 14 Aug 2010, 18:48

Postby gaborv » 14 Aug 2010, 19:01

Hi,

I am a Flash (AS3) developer. I faced to the same "stack overflow" issue in Flash. I absolutely don't know what SmartFoxServer is but I resgistered now to write down the solution, for the future readers.

The List component in Flash CS4 is buggy a bit and it gives this "Stack overflow" error if you try to set its width to a NaN (not-a-number) value.

To reproduce the error:

var myList:List = new List();
var listWidth:Number = NaN;
myList.width = listWidth;

You must check yourself is the value is a number, like this:


if (isNan(listWidth)){
listWidth = 0;
}
myList.width = listWidth;


Good luck!

Return to “SmartFoxBits for SFS 1.x”

Who is online

Users browsing this forum: No registered users and 3 guests