Cross-Platform Errors?


Cross-Platform Errors?

Author
Message
NocteCorvus
NocteCorvus
Associate Member
Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)Associate Member (254 reputation)

Group: Forum Members
Posts: 8, Visits: 15
I'm currently working with some collaborators across Windows and Mac platforms, and we seem to be having some issues getting the script to run in Windows environments, as they're not generating errors on the Mac side, but only the Windows side. My current Windows device has been using Inquisit for a while, and is the most up to date version. Previously when I initially coded scripts on Windows devices and migrated over to Mac devices, we never had any issues. It's only been this script that has generated errors such as this one. 

We're generating a few errors that are pretty atypical: 

1. We're generating error lines like this:
WIC Error: 0x80070057 The parameter is incorrect. Line 1762, File win\Direct2DGraphics.cpp

2. We're generating errors for items that seem to be missing, but the files are definitely in the folder and have the correct spelling and extensions.

Unable to open file 'C:/Users/Corvus/Desktop/Science Gender IAT/reading.wav'. No such file or directory (Error code: 5)
Unable to load the picture 'C:/Users/Corvus/Desktop/Science Gender IAT/apple.jpg'.


Any suggestions to see if there's some way to fix these errors? 

Thanks! 


Attachments
Science-Gender IAT v2.iqx (7 views, 88.00 KB)
Dave
Dave
Supreme Being
Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)Supreme Being (749K reputation)

Group: Administrators
Posts: 9.9K, Visits: 49K
NocteCorvus - 11/22/2019
I'm currently working with some collaborators across Windows and Mac platforms, and we seem to be having some issues getting the script to run in Windows environments, as they're not generating errors on the Mac side, but only the Windows side. My current Windows device has been using Inquisit for a while, and is the most up to date version. Previously when I initially coded scripts on Windows devices and migrated over to Mac devices, we never had any issues. It's only been this script that has generated errors such as this one. 

We're generating a few errors that are pretty atypical: 

1. We're generating error lines like this:
WIC Error: 0x80070057 The parameter is incorrect. Line 1762, File win\Direct2DGraphics.cpp

2. We're generating errors for items that seem to be missing, but the files are definitely in the folder and have the correct spelling and extensions.

Unable to open file 'C:/Users/Corvus/Desktop/Science Gender IAT/reading.wav'. No such file or directory (Error code: 5)
Unable to load the picture 'C:/Users/Corvus/Desktop/Science Gender IAT/apple.jpg'.


Any suggestions to see if there's some way to fix these errors? 

Thanks! 


1) The "WIC" in "WIC Error: 0x80070057..." stands for "Windows Imaging Component" ( https://en.wikipedia.org/wiki/Windows_Imaging_Component ), a standard Windows operating system component that applications, including Inquisit, use to render images on-screen.
First off, make sure all systems in question have the latest WIC installed. WIC updates come via the normal Windows Updates, so make sure all machines are up to date.
Different Windows versions use different WIC versions, i.e. Windows XP will use an older version than, say, Windows 7, and not every newer release is available for older Windows versions. Now, especially older versions of WIC react really badly to certain issues with image files, particularly invalid metadata embedded in the image files. Other encoding issues with the image can also cause trouble (e.g. using CMYK instead of RGB colorspace). Something along those lines is likely what's ultimately causing the problem. If you remove all the metadata from the image files used in your study, it should run fine. You can use a program like IrfanView to do this in bulk for all image files or you can open them with a simple Windows image editor (MS Paint will do) and simply re-save them.

2) For WAV files to be cross-platform compatible, make sure they're encoded as 16-bit PCM WAV files. The Windows API the <sound> element maps to does not accept 32-bit WAV files. Alternatively, you can try using the <video> element instread of <sound> to play your audio files.

What the specific issues with your files are, I cannot say since you didn't provide them along with the script.

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search