ERROR: Index p_idx out of size (Items.size)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stubbsy345
:warning: Old Version Published before Godot 3 was released.

I am using option buttons to gather some information from the user. If they fail to fill in one of the options i add a texture frame containing a translucent red texture to indicate that they must select an option for that option button. When the scene loads I connect the option buttons to a function with their item_selected signal. This works fine on initial selection. However, if they fail to fill in a field and a texture frame is added as a child of the option button. If they click on the button i get the following error:

Index p_idx out of size (Items.size)

I tried changing the signal to the “pressed” signal and the same thing happens. Anybody know what is going on?

Thanks

You should probably share your code. Otherwise it’s impossible to guess what’s going on.

kidscancode | 2017-08-26 15:27

I am having the same problem.

boston2029 | 2022-02-12 18:28