Photoshop: Contact sheet II not working anymore? (Nik plugins issue)

  • 4
  • Problem
  • Updated 5 years ago
  • (Edited)
Can't use Contact sheet II anymore on CS6 ( mac mavericks) This is the message the mac said: Invalid numeric value for Resolution. Last good value inserted.
detail error: File: /Applications/Adobe Photoshop CS6/Presets/Scripts/ContactSheetII.jsx
Line: 9572
Error Name: TypeError
Error Number: 21
Line: (9563) un.value = 1;
Line: (9564) } else {
Line: (9565) un.value = Math.round(un.value);
Line: (9566) }
Line: (9567) }
Line: (9568)
Line: (9569) return un;
Line: (9570)
Line: (9571) } else {
Line: (9572) >> return Number(f.toFixed(3));
Line: (9573) }
Line: (9574) };
Line: (9575)
Line: (9576) //
Line: (9577) // Function: updateUnitWidget
Line: (9578) // Description: Set the value of a numeric UI field
Line: (9579) // Input: obj - UI widget
Line: (9580) // type - UnitValue type
Line: (9581) // base - the resolution base (opt)
Line: (9582) // Return: number or UnitValue

[ContactSheetII.jsx]
main()
_main()
execCSII_UI([Object:[object Object]])
exceptionMessage([Error:TypeError: undefined is not an object])
Photo of Guido Benschop

Guido Benschop

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 4
Photo of Sebastien Christine Crete Proulx

Sebastien Christine Crete Proulx

  • 1 Post
  • 0 Reply Likes
i have same problem ... have a idea ?
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Exactly the same is happening here. When looking at ~/Library/Application Support/Contact Sheet II.xml I see a lot of strange NaN (not a number) entries.

It looks like the script, after one succesfull run, is corrupting it's own settings xml file and will not run again. When changing the NaN's for real values I get the dialog back, after some errors and am able to run the script once again. Then the whole story starts over again...

Kees
Photo of TinaC

TinaC, Tier 3 support engineer

  • 133 Posts
  • 11 Reply Likes
Are you running any sort of disk cleaning utilities? If so, you'll want to update/disable/turn off/uninstall them, then reinstall Photoshop.

Have you reset preferences? http://blogs.adobe.com/crawlspace/201...
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Hi Tina,
No I'm not using any disk utilities, apart from apple's own Disk Utility to run a permissions repair from time to time. Why could these app's harm Contact SheetII script or xml file?

For your information: By editing the xml file I am able to get the Contact SheetII dialog back. When I reset it by clicking the reset button en saving the xml to ~/Library/Application Support/ it is impossible to change the values in the thumbnail (vertical/horizontal) fields. They jump back to NaN! See attachment.

I did trash the photoshop prefs file (Adobe Photoshop CS6 Prefs.psp), but that did not help. I'm rather not going through all the hassle of reinstalling Photoshop if I don't know what is causing these errors and find out reinstalling doesn't not help.

Kees

Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
And this is the content of the corrupted xlm after 'resetting' from the dialog.


<?xml version="1.0" encoding="utf-8"?>
<ContactSheetIISettings>
<source imageSource="Folder" path="/Users/..../Desktop" includeSubfolders="false" groupImages="false"/>
<document units="inches" width="8" height="10" resolution="300" resUnits="pixels/inch" mode="RGB Color" bitDepth="8-bit" colorProfile="sRGB IEC61966-2.1" flattenLayers="true"/>
<thumbnail place="across first" cols="5" rows="6" bestFit="false" useAutospacing="true" horz="NaN in" vert="NaN in"/>
<caption enabled="false">
<font name="MinionPro-Regular" size="12"/>
</caption>
<date>2014-02-07T11:43:59</date>
<version>2.2.10</version>
<locale>en_GB</locale>
</ContactSheetIISettings>


The NaN's are in the xml! When starting up the script, now I get other error messages and have to edit the xml (remove the NaN's) to get back to the dialog.





Photo of TinaC

TinaC, Tier 3 support engineer

  • 133 Posts
  • 11 Reply Likes
Do any of your other Automate or Script features work, or is it limited to Contact Sheet II?
I'll see if I can get some assistance on this.
Photo of TinaC

TinaC, Tier 3 support engineer

  • 133 Posts
  • 11 Reply Likes
Which version of the OS?
Photo of PECourtejoie

PECourtejoie, Champion

  • 792 Posts
  • 283 Reply Likes
Hi, Tina. from the first post, I see "Mavericks" OSX 10.9
Photo of PECourtejoie

PECourtejoie, Champion

  • 792 Posts
  • 285 Reply Likes
Hello, Kees, I've heard some permissions issue on Mavericks, can you check that everything is correct on user>library>Application Support>Adobe ?
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Hi Tina and PECourtejoi,

My OS is 10.9.1
Photoshop CS6 13.0.6 x64
All other automate/scripts are working: adobe ànd third party scripts. Only this Contact SheetII is corrupting it's xml file. As said: when I edit the values in the xml I am able to reset and run the script just once! The next time I get the error again. My temporary work around is editing the xml each time I need the script.

I ran a permissions check on my system and did not find any problems. @PECourtejoi: what do you mean by 'everything correct'? Ther are quiet some subfolders in user>library>Application Support>Adobe

kees
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 13920 Posts
  • 1650 Reply Likes
Have you tried completely tossing the XML and letting Contact Sheet generate a new default xml file? Then try creating a new preset with your settings.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 13920 Posts
  • 1650 Reply Likes
Also note, running Disk Utility doesn't always suss out permissions issues in my experience. Running Photoshop from a new admin user account it the one way to start with correct permissions.

http://blogs.adobe.com/crawlspace/201...
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Hi Jeffrey,

When tossing the xml I get the same errors:
1. => Invalid numeric value for Resolution. Last good value inserted.
2. => There was an error. See details?
3. => Message: undefined is not an object, followed by the error details (Line: 9572) allready copied above

As the script quits after that no new xml is written, so this is a dead end. Only editing the old xml by removing the NaN's helps (once) and I can use the script to generate a Contact Sheet just once.

This is the content of line 9572 from the script:

return Number(f.toFixed(3));

It is part of the approximate function:


// Function: _approximate
// Description: Approximates a number for the UI
// Input: f - number
// Return: number or UnitValue
//
function _approximate(f) {
var p = 3;

if (f instanceof UnitValue) {
var un = UnitValue(f.toString());
f = un.value;
var v = Number(f.toFixed(3));
un = UnitValue(v, un.type);

if (un.type == "px") {
if (un.value == 0) {
un.value = 1;
} else {
un.value = Math.round(un.value);
}
}

return un;

} else {
return Number(f.toFixed(3));
}
};


So the script ìs functional, but the preferences written and read not.
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Some new findings!

I have set up a test account and was able to run the Contact SheetII script repeatedly whithout any problems! Photoshop and the script are the same as in my main account, so there must indeed be some read/write permission problem for the xml file, or containing folder. Can anyone tell me what should be the correct read/write permissions for the Contact Sheet II.xml file and/or the surrounding Application Support folder?

Whe checking the current settings in the Terminal I do find one difference:

In the new testaccount the folder has:
drwx------+ newusername staff

While the 'old' folder has:
drwx------ username staff

The last one without the + suffix. I found out here that "The + suffix means the file has an access control list"

The .xml and .log files in both useraccounts have the same rights:

In the new testaccount
-rw-r--r--@ 1 newusername staff 702 Feb 10 12:55 Contact Sheet II.xml
-rw-r--r--@ 1 newusername staff 9212 Feb 10 12:56 ContactSheetII.log

Main account
-rw-r--r--@ 1 username staff 685 10 feb 13:37 Contact Sheet II.xml
-rw-r--r--@ 1 username staff 8640 10 feb 13:37 ContactSheetII.log

The @ suffix is unique to Mac OS and means the file has extended attributes. See link above. So there might be some differences too...

kees
Photo of PECourtejoie

PECourtejoie, Champion

  • 792 Posts
  • 285 Reply Likes
Some of the folders with permissions problems in Mavericks are user>library>preferences>adobe ...preferences>Adobe>plug ins and ...preferences>photoshop cc settings.
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Also did a Home Directory Permissions and ACLs reset by doing this:

1. Boot into the Recovery HD using ⌘R.
2. Run resetpassword in Terminal (available from Utilities → Terminal).
3. Select your account from the drop-down list.
4. Click the Reset button for Reset Home Directory Permissions and ACLs.

Same errors persist.
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
Hello Kees,

did you solve this problem? I'm running in the same...
Thanks for a short response!

Greetigs
Jürgen
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Hi Jürgen,

No, unfortunately not. I keep editing the xml each time before I need the script...

Kees
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
Hi,

I will search more intensively for the problem, unfortunately it's only a remote machine of a customer, so it's a little bit more complicated.

I'll keep you informed.

Greetings
Jürgen
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
...seems to be the Nik Collection of Google - if I remove the whole Folder "Google" from the plugins-folder in PS-Applikation folder, Contact Sheet II is working properly!
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
...more detailed: It is the PlugIn "Selective Tool" from Google's Nik Collection - see screenshot. If I remove the folder "Selective Tool" Contact Sheet II ist working like a charme.
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Hi Georg,

Excellent find! And confirmed here too. I also have the NIK collection and removed the selective tool folder and Contact Sheet II is working again!

Do you send a bug report to NIK/Google?
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
No, not yet - installed NIK on another machine (with PS CS6 13.1.x from Creative Cloud), no incidents there... - the machine with the problem was 10.7.5, the other 10.9.2
Will try it on a third machine to reproduce...
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
Third machine, PS CS6 with no updates (13.0.0), but also a 10.9.2 OS X, running without a problem...
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
I do have 10.9.2 and CS6 13.0.6, I'll try to reinstall the NIK plugins and see what happens. The Contact Sheet II script and the other NIK plugins are functioning fine without the selective tool installed.
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Installed the latest (February 26) version of the NIK collection (1.111) on top of the one (1.110) I had installed and all is back to normal! Contact Sheet II is functioning as it should as do all the NIK collection tools. Thanks Jürgen for pointing me to this!

Kees
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
YES - this is interesting...

The update is dated 26.2.2014 at google. All my tests where done on 28.2. - no update was on the machine with the problem until this time, stayed 1.1.1.0.

Simultaneously I made my test on the other machine - this was already the new version - without an update, with the same download link... :eek:

Today the problem machine was also on 1.1.1.1 - contact sheets II works now.

My conclusion: The automatic update distribution of nik collection is not very reliable. The update was released 26.02.2014, on 28.2. it wasn't installed automatically.

Unfortunately, I don't find a way to update manually - do you know one? New download and reinstall?

I even can't see, which version is installed, the versions of the components of nik are totally different from the version named in the support page.

Greetings
Jürgen
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Same happened here, with some extra strange thing. When I added a new test-user to my macbook pro the contact sheet II script worked without an error even with the complete 'old' nik collection installed. I also needed an admin password to remove the NIK selection tool folder from the Photoshop folder. This makes me think that google fiddles with user priviliges at installation and things went wrong somewhere. Maybe through a macos update.

When I bought the nik collection I got a personal download link. This link leads allways to the latest version. So upgrading is easy.

Kees
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
The personal download link with link to latest version was the problem: So all test installs worked... ;-)

Glad that the problems are solved. For this time... :-o
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14549 Posts
  • 1893 Reply Likes
Nik did an update to version 1.111 on February 26th:

https://support.google.com/nikcollect...

Please update your plugins and let me know if this update solves your issue.

After you update, you can confirm the version you have installed by launching Photoshop:

On Mac: Select Photoshop>About Plug-in>(Select the Plug-in name)...

On Windows: Select Help>About Plug-in>(Select the Plug-in name)...
Photo of Georg Seum

Georg Seum

  • 9 Posts
  • 0 Reply Likes
Hello Jeffrey,

as I wrote above, with the update, the problem was solved!

Greetings
Jürgen
Photo of Kees Brandenburg

Kees Brandenburg

  • 13 Posts
  • 0 Reply Likes
Same here!

regards,

Kees