Could not initialize Photoshop because unexpected end of file was encountered

Could not initialize Photoshop because unexpected end of file was encountered. If you have encountered this issue, you can do the following trick in order to fix the problem.

Could not initialize Photoshop because unexpected end of file was encountered
Could not initialize Photoshop because unexpected end of file was encountered

Fix Could not initialize Photoshop because unexpected end of file was encountered

There was no crash report and you tried uninstalling using the creative cloud desktop and reinstalling but get the same fault. You can try deleting or renaming your user ID in Photoshop’s preferences folder. It may be a corrupt preference file.

Goto –  C:\Users\USER\AppData\Roaming\Adobe\Adobe Photoshop CC 2018\Adobe Photoshop CC 2018 Settings (replace ‘USER’ with your windows username) and delete the file ‘Workspace Prefs.psp’

First time it may give you the same error message, but second time Photoshop starts it will be OK.

Photoshop preferences file location

Photoshop's preferences
Photoshop preferences file location

About preferences

Numerous program settings are stored in the Adobe Photoshop Preferences file, including general display options, file-saving options, performance options, cursor options, transparency options, type options, and options for plug‑ins and scratch disks. Most of these options are set in the Preferences dialog box. Preference settings are saved each time you quit the application.

Unexpected behavior may indicate damaged preferences. If you suspect damage to preferences, restore preferences to their default settings.

To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, “Delete the Adobe Photoshop Settings file?”

Important: If you re-create the preferences by deleting the Adobe Photoshop CS5 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.

Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences. 

Mac OS

Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If you need access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to Access hidden user library files.

Photoshop preference Filename Path
General settings Adobe Photoshop CS5 Prefs.psp Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings
Actions Actions panel.psp Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings
Camera Raw Preferences Adobe Camera Raw 6.x Prefs Users/[user name]/Library/Preferences
Color settings (Color management) Color Settings.csf  Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings
Custom Color settings (Color management) Userdefined.csf Users/[user name]/Library/Application Support/Adobe/Color/Settings
Custom proof setups (Color management) Userdefined.psf  Users/[user name]/Library/Application Support/Adobe/Color/Proofing
Editing and painting tools Brushes.psp, Contours.psp, Custom Shapes.psp, Gradients.psp, Patterns.psp, RepoussePresets.psp, Styles.psp, Swatches.psp, ToolPresets.psp Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings/

 

Paths Adobe Photoshop CS5 Paths Users/[user name]/Library/Preferences
Save for Web Adobe Save For Web 12.0 Prefs  Users/[user name]/Library/Preferences
Filters and Effects Adobe Effect CS5 Prefs, Adobe Filter Gallery CS5 Prefs, Adobe Lens Blur CS5 Prefs, Adobe Lens Correction CS5 Prefs, Adobe Liquify CS5 Prefs, Adobe VanishingPoint CS5 Users/[user name]/Library/Preferences/
Adobe/Plugins/[effect or filter name]/Photoshop
 
Lens Profiles (Created by the Lens Profile software) Userdefined.lcs Users/[user name]/Library/Preferences/
Adobe/LensCorrection/1.0/Settings
Workspaces [User Defined]

Workspaces that have been modified 

Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings/
WorkSpaces

Users/[user name]/Library/Preferences/
Adobe Photoshop CS5 Settings/
WorkSpaces (Modified)

Third-party plug-in settings (for example, location of the plug-ins folder) (varies) Users/[user name]/Library/Preferences folder
Saved presets [User defined] Users/[user name]/Library/Application Support/Adobe/Adobe Photoshop CS5/Presets/[feature name]

Windows XP

Photoshop preference Filename Path
General settings Adobe Photoshop CS5 Prefs.psp Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Actions Actions panel.psp Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Camera Raw Windows registry key 

.xmp files saved from Camera Raw dialog

HKEY_CURRENT_USER/Software/Adobe/Camera Raw/6.0

Documents and Settings/[user name]/Application Data/Adobe/CameraRaw/Settings

Color settings (Color management) Color Settings.csf Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Custom Color settings (Color management) Userdefined.csf Documents and Settings/[user name]/Application Data/Adobe/Color/Settings
Custom proof setups (Color management) Userdefined.psf  Documents and Settings/[user name]/Application Data/Adobe/Color/Proofing
Editing and painting tools Brushes.psp, Contours.psp, Custom Shapes.psp, Gradients.psp, Patterns.psp, Styles.psp, Swatches.psp, ToolPresets.psp Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Presets
Paths Preferences are saved as value data in the SettingsFilePath value name in the Windows registry. HKEY_CURRENT_USER/Software/Adobe/Photoshop/12.0
Save for Web Adobe Save for Web 12.0 Prefs Documents and Settings/[user name]/Application Data/Adobe/Save For Web/12.0
Filters and Effects Adobe Effect CS5 Prefs, Adobe Filter Gallery CS5 Prefs, Adobe Lens Blur CS5 Prefs, Adobe Lens Correction CS5 Prefs, Adobe Liquify CS5 Prefs Documents and Settings/[user name]/Application Data/Adobe/Plugins/[effect or filter name]/Photoshop
 
Lens Profiles (Created by the Lens Profile software) Userdefined.lcs Documents and Settings/[user name]Application Data/Adobe/LensCorrection/1.0/Settings
Workspaces [User Defined]

Workspaces that have modified

Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Workspaces
Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Workspaces (Modified)
Third-party plug-in settings (for example, location of the plug-ins folder) Settings are stored as value data in the SettingsFilePath value name in the Windows registry. HKEY_CURRENT_USER/Software/Adobe/Photoshop/12.0
Saved presets [User defined] Documents and Settings/[user name]/Application Data/Adobe Photoshop CS5/Presets/[feature name]

Windows 7 and Vista

Photoshop preference Filename Path
General settings
  • Adobe Photoshop CS5 Prefs.psp (32-bit version)
  • Adobe Photoshop (X64) CS5 Prefs.psp (64-bit version)
Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Actions Actions panel.psp Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Camera Raw Windows registry key 

.xmp files saved from Camera Raw dialog

HKEY_CURRENT_USER/Software/Adobe/Camera Raw/6.0

Users/[user name]/AppData/Adobe/CameraRaw/Settings

Color settings (Color management) Color Settings.csf Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
Custom Color settings (Color management) Userdefined.csf Users/[user name]/AppData/Roaming/Adobe/Color/Settings
Custom proof setups (Color management) Userdefined.psf  Users/[user name]/AppData/Roaming/Adobe/Color/Proofing
Editing and painting tools Brushes.psp, Contours.psp, Custom Shapes.psp, Gradients.psp, Patterns.psp, Styles.psp, Swatches.psp, ToolPresets.psp Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Presets
Paths Preferences are saved as value data in the SettingsFilePath value name in the Windows registry. (Windows registry key) HKEY_CURRENT_USER/Software/Adobe/Photoshop/12.0
Save for Web Adobe Save for Web 12.0 Prefs Users/[user name]/AppData/Roaming/Adobe/Save For Web/12.0
Filters and Effects Adobe Effect CS5 Prefs, Adobe Filter Gallery CS5 Prefs, Adobe Lens Blur CS5 Prefs, Adobe Lens Correction CS5 Prefs, Adobe Liquify CS5 Prefs Users/[user name]/AppData/Roaming/Adobe/Plugins/[effect or filter name]/Photoshop
 
Lens Profiles (Created by the Lens Profile software) Userdefined.lcs Users/[user name]/AppData/Roaming/Adobe/LensCorrection/1.0/Settings
Workspaces [User Defined] [Workspaces that have been modified} Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Workspaces
Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings/Workspaces (Modified)
Third-party plug-in settings (for example, location of the plug-ins folder) Settings are stored as value data in the SettingsFilePath value name in the Windows registry. HKEY_CURRENT_USER/Software/Adobe/Photoshop/12.0
Saved Presets [User defined] Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Presets/[feature name]

Theartcult hopes this trick works for you!