Anonymous | Login | Signup for a new account | 2021-01-23 11:23 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0006920 | opensim | [REGION] Scripting Engine | public | 2014-01-08 14:59 | 2014-01-08 14:59 | |||||
Reporter | kcozens | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | master (dev code) | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0006920: .NET error thrown when a list variable is passed in [ ] to llParticleSystem(). | |||||||||
Description | If 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 = []; default { touch_start(integer num_detected) { llParticleSystem([ rules ]); } } | |||||||||
Additional Information | This 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. | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | 32e9c1695780199d34f62b06ce9ba8652f64467b | |||||||||
Run Mode | Standalone (1 Region) | |||||||||
Physics Engine | BulletSim | |||||||||
Script Engine | ||||||||||
Environment | Mono / Linux32 | |||||||||
Mono Version | 2.10 | |||||||||
Viewer | ||||||||||
Attached Files | ||||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2014-01-08 14:59 | kcozens | New Issue |
Copyright © 2000 - 2012 MantisBT Group |