Crash attempting to evaluate 'self'
Using the latest build, 1.10 (1028) I often get a crash. It happens when I hit a breakpoint then point the mouse at a part of a line containing 'self' such as:
function panel:Update()
if self._someValue then
-- do something
end
end
Pointing the cursor at the 'self' seemingly kicks off some iterator causing a hang. If I manually kill the app that I'm debugging, Decoda comes back to life with an error message along the lines of:
An exception has been caught:
invalid key to 'next'
function panel:Update()
if self._someValue then
-- do something
end
end
Pointing the cursor at the 'self' seemingly kicks off some iterator causing a hang. If I manually kill the app that I'm debugging, Decoda comes back to life with an error message along the lines of:
An exception has been caught:
invalid key to 'next'
Comments
I haven't been able to reproduce this problem yet. I'm still working on it though.
I would like to know more about how Decoda uses these structures, since I need to have extra fields in both lua_Debug, and Proto for my own tools.
Would it be possible for UnknownWorlds to add some setting where I can override the size of these structures, so that Decoda can ignore my custom data?
Thanks
Brian
I would like to know more about how Decoda uses these structures, since I need to have extra fields in both lua_Debug, and Proto for my own tools.
Would it be possible for UnknownWorlds to add some setting where I can override the size of these structures, so that Decoda can ignore my custom data?<!--QuoteEnd--></div><!--QuoteEEnd-->
Yes, Decoda will have issues if lua_Debug does not match the vanilla definition.
Generally when something like this has come up with a modification of Lua, my recommendation has been to preserve the existing Lua interface and add new functions to handle the additional data. For example, creating a lua_Debug_ex structure with the additional fields and lua_getinfo_ex that accepts the modified structure.
Allowing the application to override the expected size of the lua_Debug structure would work, but let me look into some other ways of handling this.
My crash is now gone.
Thanks.
Brian
Any news yet? It's been a while <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
I haven't used Decode much since buying it, mainly due to this issue, but each time I have a niggly little bug I want to sort out I end up running into this. I'm more than happy to try and help fix this issue as it's driving me potty. You can contact me off-list if you want me to help out in any way.