Millisecond Forums

Script cant load images sometimes, can load them others

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

By mlleng13 - 3/16/2017

Hi, 

I have a script that sometimes produces an error saying that one, some, or all of my .pngs cant be opened. However, if I imediately re-run the script with the same subject number it will work. Does anyone have any thoughts? 

Thanks,
Mike
By seandr - 3/16/2017

mlleng13 - Friday, March 17, 2017
Hi, 

I have a script that sometimes produces an error saying that one, some, or all of my .pngs cant be opened. However, if I imediately re-run the script with the same subject number it will work. Does anyone have any thoughts? 

Thanks,
Mike

Hi Mike,
Does this happen with Inquisit Web or Lab? 

-Sean
By mlleng13 - 3/17/2017

seandr - Friday, March 17, 2017
mlleng13 - Friday, March 17, 2017
Hi, 

I have a script that sometimes produces an error saying that one, some, or all of my .pngs cant be opened. However, if I imediately re-run the script with the same subject number it will work. Does anyone have any thoughts? 

Thanks,
Mike

Hi Mike,
Does this happen with Inquisit Web or Lab? 

-Sean

I started re-evaluating my code because there were a few reported issues with the web script. However, it occurs with my Lab version of the script.
By seandr - 3/17/2017

Interesting. The first thing to check is that you're running 5.0.6, the latest version. Also, is it possible the images are opened or being used by another app? Depending on your configuration, even the Windows preview program can sometimes lock files, so close any instance of Windows Explorer and other apps that might use the files. Are you loading directly from disk or network share. If access to the network share is spotty, that might explain this.

Otherwise, if none of those suggestions works,. would it be possible to zip up the experiment and all the media files it uses and send to our support email? We can then investigate and see what's happening. 

Thanks,
Sean
By mlleng13 - 3/17/2017

seandr - Friday, March 17, 2017
Interesting. The first thing to check is that you're running 5.0.6, the latest version. Also, is it possible the images are opened or being used by another app? Depending on your configuration, even the Windows preview program can sometimes lock files, so close any instance of Windows Explorer and other apps that might use the files. Are you loading directly from disk or network share. If access to the network share is spotty, that might explain this.

Otherwise, if none of those suggestions works,. would it be possible to zip up the experiment and all the media files it uses and send to our support email? We can then investigate and see what's happening. 

Thanks,
Sean

I will try your suggestions and get back to you.