 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Wed Jun 16, 2010 7:08 am
[3.19e] BUG: #DELITEM causing access violation, crash. |
#DELITEM causing access violation and crash the following script:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<var name="afflictions" type="StringList" sorted="true" usedef="true" copy="yes">
<value>confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion|confusion</value>
<json>["confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion","confusion"]</json>
</var>
<alias name="test" copy="yes">
<value>#DELITEM afflictions confusion</value>
</alias>
</cmud> |
|
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Jun 16, 2010 8:09 am |
Confirmed on my end. Access violation.
However...
Code: |
#17 {afflictions=%additem("confusion",@afflictions)} |
then running 'test' alias does not produce the crash.
GeneralStonewall, is this a variable newly created in 3.19e, or is it a carryover from earlier versions? Also, the way you add it might be the problem, as well (not saying faulty scripting on your part, but it might be a command adding the afflictions incorrectly or something).
Charneus |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jun 16, 2010 4:36 pm |
Confirmed here too, and am creating the variable by just pasting the XML above into the settings editor. So either the XML import is messing it up, or something else is wrong.
It's also one of those crashes that bypasses the crash dump, which points to an infinite loop. Almost like #DELITEM can't tell that there are not any more matching items to delete and just keeps going. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jun 16, 2010 10:05 pm |
The key to this bug was the "sorted=true" flag. There was some serious problems with the code for deleting duplicate items from sorted lists.
|
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|