Millisecond Forums

Initialization error

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

By Joel Cavallo - 9/23/2015

Hello, my inquisit license expired yesterday and was renewed today. I have a participant who is now trying to use the web script that has been working for one year and it is giving the following two errors:

#1   Direct2D Error: 0x80070000e Not enough storage is available to complete this operation. Line 605 win/Direct2DGraphics.cpp

#2   Unable to initialize item number 5. Verify the item exists and is correctly define.

The participant tried running the script on a second computer with the same error. Any insight into this issue would be most appreciated. Thanks. 
By Dave - 9/23/2015

Several issues could be at play here:

(1) Invalid metadata in the respective image file ( cf. https://www.millisecond.com/forums/Topic16265.aspx ).
(2) A broken display driver or other component on the participant's machine (cf. https://www.google.com/search?q=Direct2D+Error%3A+0x80070000e&ie=utf-8&oe=utf-8 for various examples).
(3) The specific image is too high-res for the participant's machine (the error hints at insufficient memory).

Without the link to the specific script and the respective image, I can't say more.
By Joel Cavallo - 9/23/2015

Ok here is the link. The quandary is that we've never had this issue before the license expiration. 

http://research.millisecond.com/dewitlab/EMACAll3tasksVer2.web
By Joel Cavallo - 9/23/2015

I forgot to mention that there are a total of 3 tasks, Dot probe, VAS, and Forced Choice. The participant is able to complete the dot probe and VAS, but the error occurs when he tries to complete the Forced Choice task.
By Dave - 9/23/2015

Thanks for the link, I'll see if I can pin down the problem.

I can guarantee that it has nothing to do with the license renewal whatsoever. As already stated, it's perfectly possible that the problem at least in part is with the participant's machine.
By Joel Cavallo - 9/23/2015

Just fyi, the participant has used chrome, firefox and internet explorer on both windows 7 and 10 machines. Thanks.
By Dave - 9/23/2015

Okay, I see no totally obvious problem with the script and the images, and I cannot re-produce the error either. Here's what I would suggest:

(1) Run the images through a meta-data / EXIF data removal tool. Especially older Windows systems can be terribly picky when encountering images with malformed metadata headers.
(2) The images are quite large (resolution-wise). This can theoretically lead to problems on relatively weak systems with little (dedicated) graphics memory. This becomes even more exacerbated when the respective systems' monitor is small and low-res. The more drastic down- or up-scaling Inquisit has to do, the higher the memory costs. If possible, reduce the images resolution.
(3) I'd also recommend updating your launch page to use the latest Inquisit version (4.0.8.0), which *may* help here as well.

Hopefully one or several of those measures will do the trick.
By Joel Cavallo - 9/23/2015

Thanks for looking at the script. Quick question, how do I go about updating the launch page and run an updated version of Inquisit? 
By Dave - 9/23/2015

Log in to your account, go to the web scripts section, click the edit button next to the experiment. In the wizard, select the version in the 1st step, click finish.
By Joel Cavallo - 9/23/2015

When I follow the steps you outlined, I'm only able to select version 4.0.7.0. Thoughts?
By Joel Cavallo - 9/23/2015

Ok, I unregistered the script and registered it again with all of the changes you suggested. I'll update this post once I hear back from the participant. Thanks.
By Joel Cavallo - 9/25/2015

I've tried all three of the options you listed before with no luck. The participant is still getting error messages while trying to run the script. The error keeps saying "unable to initialize item number 5" The error also occurs with item #8. 

Again, the link to the script is: 

http://research.millisecond.com/dewitlab/EMACAll3tasksVer2.web

Thank you in advance for you help.
By Dave - 9/25/2015

As far as I can determine from the web experiment's settings and the image files currently on the server, the only change has been the Inquisit Web version. The files' EXIF and other metadata appears unchanged, as does their resolution.

Looking at the error logs ( see https://www.millisecond.com/myaccount/logs/errors.aspx?webscriptid=10033&webscriptname=EMACAll3TasksVer2 in your account ) insufficient memory due to the images' resolution and the required down-scaling remains a distinct possibility.

The logs further indicate (see the version column https://www.millisecond.com/myaccount/logs/participants.aspx?webscriptid=10033&webscriptname=EMACAll3TasksVer2 ) that the participant is still using an outdated version. Have him/her download and install the latest web player version via the link on the launch page.

Hope this helps.
By Joel Cavallo - 9/25/2015

Ok, as far as the picture resolution goes, I guess I just reduced the size of the images and not the resolution. What is the most appropriate way to change the resolution for all images and what resolution setting allows the images to look good on a variety of screens (as we are having participants run the program on various computers)? Thanks.

By Dave - 9/25/2015

Most of your images have a resolution of approx. 3000 by 2250 pixels. You will probably not encounter too many machines among your participants that run displays at that resolution or higher. Additionally, in most trials a given image doesn't cover the whole screen, but less than 50% of it. I would recommend finding some middle ground, i.e., going for a resolution that still looks okay when scaled-up to extremely high-res displays, but doesn't require massive down-scaling (and waste of graphics memory) on lower-res screens. With that in mind, I'd say you can probably reduce the images' resolution by 30 to 40 percent without incurring massive loss of quality.
By Joel Cavallo - 9/25/2015

Thanks. What is the best method to alter the resolution? 
By Dave - 9/25/2015

Any image editing application has the ability to re-size images. Use the one you are most comfortable / familiar with and consult its documentation if necessary.

For example, when using Photoshop, instructions can be found here: https://helpx.adobe.com/photoshop/using/image-size-resolution.html#change_pixel_dimensions_of_an_image

The steps will generally be very similar in any other application.