It looks like you're new here. If you want to get involved, click one of these buttons!
The title says it all.
Most of us here know that
size() must be the first call in
setup(). @PhiLho also says
... the rule saying that the size() call must be the first one in setup(). For some reason, code before it tends to be run twice, which is annoying when loading a possibly large file.
But why does that occur? Is it because
size() internally calls
setup() again after setting the size of the sketch, and subsequent calls to
size() just skip right through to end?