Millisecond Forums

Inquisit crashes when programatically drawing from a counter with only 1 item

https://forums.millisecond.com/Topic13319.aspx

By Blackadder - 5/18/2014

Just a quick bug report. When a counter is defined as

<counter SOMENAME>
/ items = (0)
/ select = replace
/ selectionrate = always
</counter>

and invoked via

counter.SOMENAME.selectedvalue

Inquisit 4.0.5.0 will crash.

By Dave - 5/18/2014

Thanks for the report. However, I cannot seem to easily reproduce this in Inquisit 4.0.5.0. Doing e.g.

 <values>
/ myvalue = "?"
</values>

<counter SOMENAME>
/ items = (0)
/ select = replace
/ selectionrate = always
</counter>

<trial mytrial>
/ ontrialbegin = [values.myvalue=counter.somename.selectedvalue]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%values.myvalue%>")
</text>

<block myblock>
/ trials = [1-4=mytrial]
</block>

does not cause a crash on my system. So I suppose there must be some other, additional factor at play in terms of how the counter is used. Can you elaborate?

Thanks!
By Blackadder - 5/18/2014

I'll post the script here - without pictures so I need to convert pics into texts first.