View Issue Details

IDProjectCategoryView StatusLast Update
0002533Multi Theft Auto : San AndreasScriptingpublic2007-11-11 20:19
ReporterjbetaAssigned ToeAi 
PrioritylowSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformAMD Athlon(tm) 64 X2 ~2.2GHzOSWindows XP Professional x64 SP1OS Version5.2, Build 3790
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0002533: Returning Lua functions or coroutines from a http exported function crashes the server
Description

Exported Lua functions called from the http interface that return Lua function or thread values (or tables containing any of these values) cause the server to crash.

Trying to return MTA light userdata raises an error, as expected:
[2007-09-22 16:29:07] ERROR: Couldn't convert argument list to JSON, only valid elements can be sent.

Steps To Reproduce

Visit one of these to make the server crash:
http://play.mtabeta.com:33013/runcode/call/testLuaFunctionToJS
http://play.mtabeta.com:33013/runcode/call/testLuaCoroutineToJS

The second one actually returns an array of a single item (a coroutine), but it crashes without the table as well.

TagsNo tags attached.

Relationships

related to 0002562 resolvedJax Server lockup when passing tables with function values in them through call() 

Activities

eAi

2007-11-11 20:19

administrator   ~~0006219

Fixed, will produce a friendly error.

Issue History

Date Modified Username Field Change