Skip navigation
Currently Being Moderated

error 22 window does not have a constructor

Jul 17, 2010 7:15 PM

I am using a MacBook Pro with SL - when trying to use photomerge in CS5 I keep getting this window - Error 22: Window does not have a constructor -Line 388 - var w = new Window(res);  This occurs with RAW or jpeg images.

 

On  the NAPP forums - I was informed this is a programming error and to contact Adobe.  Anybody know a workaround besides going back to CS4 on this?

 

Kenny

 
Replies
  • Currently Being Moderated
    Jul 18, 2010 5:15 AM   in reply to KennyK1955

    This is (despite much appreciated and numerous contributions by some Adobe employees) basically a user-to-user-Forum.

    So if you want to file a bug-report:

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

     

    Anyway, I can’t reproduce the error but this seems to concern »LatteUI.jsx« – maybe someone over at the Photoshop Scripting Forum has an idea how to fix it.

    Have you edited or moved some of the concerned Scripts in any way, possibly copied them from an old version or something?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2010 10:25 PM   in reply to KennyK1955

    Well, I can’t reproduce the problem.

    How exactly do you invoke the Script (from Bridge or Photoshop) and at which step does the error occur?

     

    And once again I recommend asking at the Photoshop Scripting Forum or at http://www.ps-scripts.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2010 10:57 PM   in reply to c.pfaffenbichler

    My guess would be that you moved some scripts, deleted some files, or copied scripts and related bits from a previous version of Photoshop.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2010 11:47 PM   in reply to KennyK1955

    Yes, a reinstall may be in order.

    But you also want to remove anything you may have copied from an older version.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2010 12:38 AM   in reply to KennyK1955

    It's possible, but something is weird.

    The installer should catch normal file corruption errors.

    It still sounds like you're running some sort of mismatched set of javascripts.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2010 1:18 AM   in reply to Chris Cox

    Maybe one should take a look at the »res«-string produced in this case?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2010 10:49 PM   in reply to KennyK1955

    ooooook. That's a weird one.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2010 10:57 PM   in reply to KennyK1955

    Thank you for posting this and answering it as well.  I have the same error with CS5 when invoking photomerge from bridge.  I just used this now so it is only now that I saw the problem.  (I normally use photomerge in Photoshop, not in Bridge).  So it seems to me that this is a bug in CS5 or Snow Leopard and not because we moved a script or tinkered with a scripts.  Thanks again.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2010 10:58 AM   in reply to kenilio

    I still have no idea how that error could occur without damaged scripts.

    But it is possible that some OS bug causes the script engine to generate a bogus error when trying to construct the window, and that reinstalling the OS cleans up whatever was causing the OS bug.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2010 11:28 AM   in reply to Chris Cox

    What's interesting is  - now PhotoMerge in Photoshop no longer works. It spits the same error msg as Kenny stated earlier.  I will try to re-install the OS and see if that works for me as well.

     

    Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2010 12:25 PM   in reply to KennyK1955

    I'm not sure what you would trash -- because we still have no idea what file is corrupt/broken to cause the problem.

     

     

    But a disk utility Fix Permissions run on your disk permissions sounds like a good idea.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2010 12:26 PM   in reply to Chris Cox

    Also, have you tried removing all the third party plugins and seeing if the problem goes away?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2010 12:51 PM   in reply to KennyK1955

    It is not releted to operating system. I'm working on Windows 7 64bit and I have this error to.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2010 2:15 AM   in reply to KennyK1955

    Becouse this error is not releted to opeationing system itself. It shows in windows and in mac. I thint, that this error is related to Windows/MAC profile files. Meaby in mac is te same. Wen I ceate second account in Windows (7-64) and run PS in this new accout, photomerge works fine.

     

    Try, this. Meake new user account i mac. Meaby this will help as pin-point the error.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2010 8:05 AM   in reply to Chris Cox

    I do not have any third party plug ins .  I just purchased CS5 a few weeks ago and haven't have much time playing with it (I even haven't mastered CS4 yet!) .  I will try to have a second admin account but that defeats the purpose for me - I don't want to have different accounts on my computer!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2010 8:15 AM   in reply to kenilio
    I don't want to have different accounts on my computer!

    Who does? (Except people who have to share machines.)

    But it is an important trouble-shooting step in that – in case it does make a difference – the original account is proven to contain a »trouble-maker« and not the program itself.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2010 11:04 AM   in reply to KennyK1955

    As I mentioned above, when I use a different "test" administrator account - photomerge and image processor work correctly.

    Which could mean it is likely related to preferences, permissions, or an OS per-user cache.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 3, 2010 8:49 AM   in reply to KennyK1955

    Where do I find the prefs file in WindowsXPsp3?


     
    |
    Mark as:
  • Currently Being Moderated
    Nov 13, 2010 11:17 PM   in reply to KennyK1955

    Dear All,

     

    I have been bothered by this same Photoshop error 22 when trying to use the Photomerge feature or any other of the Automate features in CS5.

     

    My computer is a Windows 7 32bit machine but this should definitely apply to Windows 64bit machines and possibly the same logic may apply to Mac but I do not know.

     

    I didnt find a permanent solution but I did find a temporary fix which will at least allow you to use the function for one opening of the program however if you close and reopen photoshop the problem returns.

     

    Temporary Fix Instructions:

     

    1.  Locate the file "Adobe Photoshop CS5 Prefs.psp" on your computer and delete it or move it elsewhere.  (I assume by doing this you may lose *** of your photoshop preferences but it will allow you to use photomerge and HDR so you choose)

     

    2. On Windows this file can be found in the User folder under C:\**USER NAME**\AppData\Roaming\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Settings\ (Replace **USER NAME** with the Windows 7 account user name)

     

    3. After deleting this file or temporarily moving it out of that folder you can then open Photoshop CS5 and use the Photomerge feature as much as you'd like.

     

    4. As soon as you close Photoshop CS5 the program automatically makes a new Adobe Photoshop CS5 Prefs.psp file so when you try to reopen the program it will not work again.

     


    I hope this may be helpful to some people and I hope that Adobe can fix this issue, I have not and dont plan on submitting this as a bug report to Adobe, being that I do not personally own the program (still in 30 day trial) but anyone who would like to, please feel free to do so.

     

    UPDATE: HOW TO MAKE THIS FIX PERMANENT

     

    If you would like to transform this fix into a permanent one you can do the following:

    1. Open folder: C:\**USER NAME**\AppData\Roaming\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Settings\

    2. Delete the "Adobe Photoshop CS5 Prefs.psp" file

    3. Open Photoshop CS5.  DO NOT CLOSE IT.

    4. Switch back to your window showing that folder from step 1 and now you should see a new "Adobe Photoshop CS5 Prefs.psp" but it will have a file size of 0kb because Adobe doesnt write to the file until you close the program.

    5. Right-click on the file Adobe Photoshop CS5 Prefs.psp and click "Properties" and mark it as "Read Only".

    6.  Now you should be able to open and close Photoshop CS5 as many times as  you'd wish and the Photomerge feature will still work, but you also  will probably not be saving any "Photoshop Preferences" if you want to  customize the program.  I dont know which preferences are saved in that  file but at the very least you can have all of the default Photoshop CS5  setting and Photomerge features working whenever you want without a  hassle each time.

     

    Message was edited by: HSelznick

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 7:51 AM   in reply to HSelznick

    Can you submit this buggy user config file. I have working copy. We can compare them and meaby find the real final solution.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 8:57 AM   in reply to MrMgrPL

    How would u like me to submit this file? You mean here on the forums? Where do I upload it? Also I assume that you want just my buggy Adobe Photoshop CS5 Prefs.psp file, correct?

     

    I will be more than happy to send you what you would need to fix this problem just give me some more details on what you want me to do exactly, thanks for the response.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 1:34 PM   in reply to HSelznick

    The *.psp file is in some way warped/hashed/compiled. In plain text is  just rubbish. But send me yours file to mrmgr.pl@gmil.com I will try my  best, or i will find documentation about .psp file format.

     

    I have to say that, I have this problem, but after formatting my HDD and installing all over again all works fine.

     

     

    Yes, i know. I'm messing up all english times :/

     

    [I'm still learning English, if you'll find any grammat or spelling mistakes, please point it to me, I need Feedback.]

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points