Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006920opensim[REGION] Scripting Enginepublic2014-01-08 14:592014-01-08 14:59
Assigned To 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006920: .NET error thrown when a list variable is passed in [ ] to llParticleSystem().
DescriptionIf you call llParticleSystem() with a list that contains a list variable you will see a .NET error in the in-world script error dialog box while the OpenSim console window for the region where the script was running shows an unhandled .NET error.
Steps To Reproduce#Put the following script in a prim and touch the prim to see the error.

list rules = [];

    touch_start(integer num_detected)
        llParticleSystem([ rules ]);
Additional InformationThis problem exists in 0.7.6-post-fixes and in git master.

The error shown in in-world is:
    Runtime error: (6): LSLInteger expected but list given

The .NET message on the console is:
17:52:24 - [SCRIPT INSTANCE]: Runtime error in script New Script, part Linkset test object - 5 coloured prims 0e44bf17-dcee-4a1f-bb23-d99a1ac5f5cf at <217.8448, 158.781, 21.02292> in Welcome Area, displayed error Runtime error:\n(6): LSLInteger expected but list given, actual exception System.InvalidCastException: LSLInteger expected but list given
  at OpenSim.Region.ScriptEngine.Shared.LSL_Types+list.GetLSLIntegerItem (Int32 itemIndex) [0x0008f] in /home/kcozens/Projects/OpenSimulator/opensim-master/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs:650
  at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.SetParticleSystem (OpenSim.Region.Framework.Scenes.SceneObjectPart part, OpenSim.Region.ScriptEngine.Shared.list rules) [0x00041] in /home/kcozens/Projects/OpenSimulator/opensim-master/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs:6317
  at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llParticleSystem (OpenSim.Region.ScriptEngine.Shared.list rules) [0x0000c] in /home/kcozens/Projects/OpenSimulator/opensim-master/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs:6296
  at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llParticleSystem (OpenSim.Region.ScriptEngine.Shared.list rules) [0x00000] in /home/kcozens/Projects/OpenSimulator/opensim-master/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs:1209
  at SecondLife.Script.default_event_touch_start (LSLInteger num_detected) [0x00000] in /tmp/37c0f595/27638ca6.0.cs:13
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

The script shows an incorrect usage of the LSL function call and should point out the error instead of throwing a .NET exception.
TagsNo tags attached.
Git Revision or version number32e9c1695780199d34f62b06ce9ba8652f64467b
Run ModeStandalone (1 Region)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux32
Mono Version2.10
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-01-08 14:59 kcozens New Issue

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker