C Stack Overflow Error

I am getting C stack overflow error (below), but I am not able to pinpoint the exact statement which is causing this. Did anyone see this before?

[code]

Runtime error
?:0: C stack overflow
stack traceback:
[C]: ?
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>

?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:993>
?: in function <?:997>
?: in function <?:1155>
?: in function <?:215>
[/code] [import]uid: 19297 topic_id: 19877 reply_id: 319877[/import]

How far have you narrowed it down so far? I haven’t had this previously but if you have some code to reproduce it someone may be able to take a look. [import]uid: 52491 topic_id: 19877 reply_id: 77211[/import]

I was able to identify the statement causing the error:

if scrollBox then scrollBox:removeSelf(); scrollBox = nil; end  

scrollBox is a scrollView widget. [import]uid: 19297 topic_id: 19877 reply_id: 77286[/import]

Fixed this with performWithDelay. [import]uid: 19297 topic_id: 19877 reply_id: 77297[/import]

Wow, so totally isolated and fixed already - nicely done!

Thanks for updating the thread, it may help others in the future.

Peach :slight_smile: [import]uid: 52491 topic_id: 19877 reply_id: 77319[/import]