mikehend / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Randon error when parse big tables #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create in somfile.lua table with field's count more then 100 and with 
embeded tables.
2. Create new lua class in C#, then DoFile("somfile.lua") and try to parse 
the table.
3. In random place we got some exceptions - place amd exeptions every time 
is defferent.
4. Some intrecting - in Debug mode of VS, we can run application after 
exeptions is raised just to run "Continie" command in debuger. After raise 
eror and continie table parsed correct.
5. Small tables parsed without errors.

Exceptions example:
1:
unprotected error in call to Lua API (arg_value3570index3568 value)
   in LuaInterface.Lua.PanicCallback(IntPtr luaState)
   in LuaInterface.LuaDLL.lua_gettable(IntPtr luaState, Int32 index)
   in LuaInterface.Lua.getObject(String[] remainingPath)
   in LuaInterface.Lua.getObject(Int32 reference, String field)
   in LuaInterface.LuaTable.get_Item(String field)

2:
AccessViolationExeption
   in LuaInterface.LuaDLL.luaL_ref(IntPtr luaState, Int32 registryIndex)
   in LuaInterface.LuaDLL.lua_ref(IntPtr luaState, Int32 lockRef)
   in LuaInterface.ObjectTranslator.getTable(IntPtr luaState, Int32 index)
   in LuaInterface.ObjectTranslator.getObject(IntPtr luaState, Int32 index)
   in LuaInterface.Lua.getObject(String[] remainingPath)
   in LuaInterface.Lua.getObject(Int32 reference, String field)
   in LuaInterface.LuaTable.get_Item(String field)

3:
NullReferenceExeption

Original issue reported on code.google.com by freema...@gmail.com on 23 Dec 2008 at 11:30

GoogleCodeExporter commented 9 years ago
This error also occurs to me. Also to process large tables. This error occurs 
on two
machines:

Apparently the error does not occur in a single core machines.

PC1: Athlon 64 X2 4000+ com Windows XP 64 bits
PC2: Intel Core 2 Duo 6000 com Windows XP 32 bits

Attach the exit of TestLua.exe

Original comment by carlosed...@gmail.com on 21 Jan 2009 at 12:37

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, Craig, Carlos Eduardo above came to me a few days ago with this issue, but 
the 
code in the SVN HEAD seems to have solved it (I can reproduce it with the dlls 
they 
sent me, dated 07/20/2008, but not with the freshy compiled dlls I am attaching 
to 
this note). Without having the change history prior to the Google Code checking 
it's 
hard to know what actually solved it. :-)

Original comment by mascaren...@gmail.com on 27 Jan 2009 at 1:50

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks all, I'd guess it to be the dispose fixes in the LuaFunction, LuaTable, 
LuaUserData that made the difference. Is someone able to verify the fix on the 
new 
2.0.3 release?

Original comment by capre...@gmail.com on 8 Mar 2009 at 10:56

GoogleCodeExporter commented 9 years ago
I'm closing this since the issue appears to be fixed and no further issues have 
been reported.

Original comment by eonstorm@gmail.com on 7 Jul 2010 at 1:59