Major problem with Photoshop unexpected end of file...
Every time I save a file in Photoshop, I have to save it twice per format (psd, jpg, etc...). That's because if I've ever saved the file before, I get an unexpected end of file error and the file disappears until I do a save as. I downloaded the latest update today and it claimed to have fixed major errors with Photoshop. I wonder what major errors exactly were fixed; and why not this one? As far as errors go, it's pretty effing major. It adds significant time to all of my projects and frankly, if I'm spending exorbitant amounts of money for "industry-leading" software, I expect to be able to save my work painlessly. Oh well, I guess it'll only be another couple months before I have to shell out another $1200 bucks for the CS6 right? Maybe then I'll be able to actually save my work.
p.s. CS2/3/4 did not have this issue - sweet upgrade Adobe, thanks.
Again, this is not a known issue. You are the first person to bring this up without a bad disk drive, and it is probably due to something on your file server.
Yes, other people get the same error message - because they are dealing with corrupt files for one reason or another. You are getting the message because the files are corrupt, probably because of an issue with your file server.
Photoshop CS4 and earlier used the Carbon framework on MacOS. Photoshop CS5 is written to the Cocoa framework/APIs and uses different OS code paths for many things. We have seen many cases where the Cocoa APIs had problems that the Carbon APIs did not. Unfortunately, if we cannot work around those API issues, then they are up to Apple to fix.
But in this case, I doubt it is an OS API bug as such. I suspect it is a change in the way the OS APIs interact with the file server.
And cases like this are high up on the list of why we say NOT to open or save from a file server -- you can get a lot of odd, difficult to diagnose errors because of problems on the server or network. Those problems have nothing to do with the application, but may appear to because of the complexity of file servers and networking.
Some Photoshop users do open and save off a file server all the time - without problems. When we test with file servers here inside Adobe, we rarely have problems (and the rare problem was due to a bad disk on the server). But we can't guarantee that everyone's network and everyone's file server is going to work perfectly - and evidence suggests that many of them don't work perfectly.
In short: you probably have a bad file server. It is highly unlikely that this is a bug in Photoshop.
Similar Messages
-
Could not initialize Photoshop because an unexpected end-of-file was encountred.
I have a problem with Photoshop, I can run it and work in it. After the start of reports this error message: Could not initialize Photoshop because an unexpected end-of-file was encountred.
I do not know we mopped PC, defragment, and uninstall of Photoshop installed. You do not know what to do?Try resetting your preferences. If that doesn't work, consider a complete uninstall and reinstall.
-
How to solve this problem in shell script: unexpected end of file
Hello,
I need to connect to each databases listed in /etc/oratab and check which database is shutdown(or mounted-only) and which database is opened to accept connection. However, following shell script gives me this error message:
$>./check_is_db_runing.sh
./check_is_db_runing.sh: line 39: syntax error: unexpected end of file
Could anyone please help me to solve this problem, why the code (line 29 to 32) does not work in the LOOP? It works without the LOOP.
Thanks in advance!!!
1 #!/bin/bash
2
3 LOGDIR=/data03/oracle/dbscripts
4 ORATABFILE=/etc/oratab
5
6 cat $ORATABFILE | while read LINE
7 do
8 case $LINE in
9 \#*) ;; #comment-line in oratab
10 *)
11 ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
12 if [ "$ORACLE_SID" = '*' ] ; then
13 # NULL SID - ignore
14 ORACLE_SID=""
15 continue
16 fi
17
18 # Proceed only if last field is 'Y'
19 if [ "`echo $LINE | awk -F: '{print $NF}' -`" = "Y" ] ; then
20 if [ `echo $ORACLE_SID | cut -b 1` != '+' ]; then
21
22 ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -`
23 PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc
24 export ORACLE_SID ORACLE_HOME PATH
25 LOGFILE=$LOGDIR/check_$ORACLE_SID.log
26 touch $LOGFILE
27 #echo $LOGFILE
28
29 $ORACLE_HOME/bin/sqlplus -s "/ as sysdba" << EOF > $LOGFILE
30 select * from global_name;
31 exit
32 EOF
33
34 fi
35 fi
36 ;;
37 esac
38 doneThis code works ie. generates logs with sql result - slightly modified to be runable:
#!/bin/bash
LOGDIR=/tmp
ORATABFILE=/etc/oratab
cat $ORATABFILE | while read LINE
do
case $LINE in
\#*) ;; #comment-line in oratab
ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
if \[ -z $ORACLE_SID \] ; then
# NULL SID - ignore
ORACLE_SID=""
continue
# Proceed only if last field is 'Y'
else
ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -`
PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc
export ORACLE_SID ORACLE_HOME PATH
LOGFILE=$LOGDIR/check_$ORACLE_SID.log
touch $LOGFILE
#echo $LOGFILE
$ORACLE_HOME/bin/sqlplus -s "/ as sysdba" << EOF > $LOGFILE
select * from global_name;
exit
EOF
fi
esac
done -
I can´t initialise photoshop because of this Could not load actions because an unexpected end-of-file was encontered. "Could not initialise Photoshop because the preferences file was invalid (it has been deleted)" how can i fix it?
I have a MacBook Pro.
App - Adobe Creative suite 5.5
The only app that does´t initialize is the photoshop
Problem solve
FAQ: How do I reset my preferences?
Thank you Jeffrey Tranberry -
Error Unexpected end of file from server with HTTP POST
Hi everyone,
I'm coding a simple client to download some information from a local machine in my LAN.
I have to do this with an http post request.
When i try to parse the http response the program catch an exception, this one:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(...)
the parameter is a JSON request, and of course the response is a JSON formatted.
i put the http request code:
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpDownloaderThread extends Thread{
private String url;
private String param;
private HttpDownloadListener listener;
private HttpURLConnection connection=null;
private InputStream is;
private OutputStreamWriter wr;
public HttpDownloaderThread(String _url,String param, HttpDownloadListener _listener){
url = _url;
listener = _listener;
this.param=param;
public void run(){
try{
connection=(HttpURLConnection)new URL(url).openConnection();
connection.setRequestMethod("POST");
connection.setReadTimeout(5000);
connection.setRequestProperty("Content-Type", "application/jsonrequest");
connection.setDoOutput(true);
wr = new OutputStreamWriter(connection.getOutputStream());
wr.write(param, 0, param.length());
wr.flush();
int responseCode=0;
System.out.println();
try{
responseCode= connection.getResponseCode();
}catch(Exception e){
e.printStackTrace();
if (responseCode == HttpURLConnection.HTTP_OK){
is = connection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = rd.readLine()) != null) {
System.out.println(line);
closeHttpConnection();
listener.resourceDownloaded(url, null);
else{
closeHttpConnection();
listener.downloadFailed(url, new Exception("Http error: " + Integer.toString(responseCode)));
}catch(Exception e){
e.printStackTrace();
listener.downloadFailed(url, e);
}finally{
public void closeHttpConnection(){
if (is != null){
try{
is.close();
wr.close();
}catch (Exception e){
}finally{
is = null;
wr=null;
if (connection != null){
try{
connection.disconnect();
}catch (Exception e){
}finally{
connection = null;
}there's someone who know's why??
Thanks to everyone :)
Thomas.jole_star wrote:
this problem also happen to me,.So since you provided actually no information about your problem you are going to get exactly the same response.
Please don't hijack old threads. Start your own and provide much much much more information.
I shall lock this thread. -
I have PC, with adobe Photoshop CC 2014 and windows 8. Every time I open Photoshop it says: could not import the clipboard because an unexpected end-of-file was encountered. If I exit the message I still cannot create files or open anything... any suggestions?
When you load Action and when you create new actions they are saved into you Photoshop Preferences into Actions Palette.psp. This File is read when you start Photoshop.
Apple and Microsoft both like to hide important files on users. Windows search and Apple finder will not find and show hidden files unless you change Mac and Windows setting. I you getting the error when you start Photoshop there is a shortcut to reset preferences. Hold down Alt, Ctrl, and Shift keys (Mac: Command, Option, Shift) while starting up Photoshop you should be prompted to for an OK to delete preferences.
If this keeps happening perhaps you have a bad spot on your disk. Loaded actions are saved into that file so they should show up in the Actions Palette when Photoshop Start Up and read that file during start up. Photoshop Writes that file when you load action sets, when you record and edit actions and most likly also when you close down Photoshop. -
Very strange bugs - Unexpected end-of-file - LR database problem
I really like the concept and GUI of LR, but bugfixing is urgently needed. Of course I am not happy that I spent money for the current quality of software (Windows version).
Before the problem described below occured I performed some develop actions on several images without any problems.
After doing some simple cropping in the Develop module of LR the display for one single image became brown (in loupe and film strip). The problem is singular for one image.
Then I restarted LR.
Now LR displayed a message saying "Unexpected end-of-file" at top inside the image display. (Has anybody out there ever seen this?)
That message is obviously misleading: The image NEF-file is untouched. The xmp sidecar is new of course. Apparently the database entry is broken!!!
Deleting the xmp sidecar doesn't solve the problem.
Then I told LR to remove the faulty image from the LR database without physically deleting it.
Then I checked database consistency without any problem report.
Then I tried to reconnect the image for that folder.
The image is not reconnected. It doesn't show up in LR.
Then I copied the image outside LR to a new folder and told LR to import the new folder.
The image was not imported by LR. LR is saying it is a duplicate. Obviously it is not removed correctly from the LR database even I told LR to remove it.
After some attempts (sorry I don't remember exactly) I could redisplay the problem image. Now the image is displayed correctly again. But LR is saying in a dialog box that I will be unable to make changes to that image. The grid display has a triangular exclamation sign (not a rectangular one!!!).
Later I told LR to delete (not only remove) the image physically.
Afterwards I copied the image into the OS folder.
Afterwards I was able to reconnect the missing image to the LR folder.
Afterwards I could continue working with the develop module at that image.
BUG 1) Why could this problem occur at all? ("Unexpected end-of-file")
BUG 2) Obviously the image has not been correctly removed from the LR database although I told LR to do this.
No, my disks are not full.
Platform Win XP, latest patch levelRead more here:
http://www.adobeforums.com/cgi-bin/webx/.3bc36fa6/1 -
Problem with Photoshop CS6. If I open a file using Camera RAW
I have a new problem with Photoshop CS6. If I open a file using Camera RAW, and process it as usual, CS6 doesn't want to save it the way it used to. I don't know if I changed something by accident or not.
Here's what happens now: After opening from ACR to CS6 and completinhg all of my work, I choose "Save as..." The save as window opens showing the file name and format. The default format seems to be .PSD. I use the drop down to select .jpg. The file saves normally as a .jpg. When I go to close the image from, I get a new prompt asking, "Save changes to Adobe Photoshop document DSC_xxxx.NEF before closing?
I looked up at the file name in the bar above the work space and noticed that it does NOT change from "DSC_xxxx.NEF" to "DSC_xxxx.jpg" after I have saved the file as a .jpg,in my webesite but it always used to do that. This adds a few extra steps when closing a document and it really slows me down.
In fact, I wouldn't swear to this, but I think it used to save to .jpg by default, without me specifying this.
I don't see a setting in the preferences for what to use as the default file format for saving, so I don't know where to change it back.
Any ideas?
Thanks in advanceYou are in the wrong forum; You actually need Photoshop forum at this link:
<http://forums.adobe.com/community/photoshop?view=discussions>
Hope you can repost your question at the correct link. -
Help with add file name problem with Photoshop CS4
Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
Script follows:
// this script is another variation of the script addTimeStamp.js that is installed with PS7
//Check if a document is open
if ( documents.length > 0 )
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.INCHES;
try
var docRef = activeDocument;
// Create a text layer at the front
var myLayerRef = docRef.artLayers.add();
myLayerRef.kind = LayerKind.TEXT;
myLayerRef.name = "Filename";
var myTextRef = myLayerRef.textItem;
//Set your parameters below this line
//If you wish to show the file extension, change the n to y in the line below, if not use n.
var ShowExtension = "n";
// Insert any text to appear before the filename, such as your name and copyright info between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextBefore = "Lower© ";
// Insert any text to appear after the filename between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextAfter = " ";
// Set font size in Points
myTextRef.size = 10;
//Set font - use GetFontName.jsx to get exact name
myTextRef.font = "Arial";
//Set text colour in RGB values
var newColor = new SolidColor();
newColor.rgb.red = 0;
newColor.rgb.green = 0;
newColor.rgb.blue = 0;
myTextRef.color = newColor;
// Set the position of the text - percentages from left first, then from top.
myTextRef.position = new Array( 10, 99);
// Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
myLayerRef.blendMode = BlendMode.NORMAL;
// select opacity in percentage
myLayerRef.opacity = 100;
// The following code strips the extension and writes tha text layer. fname = file name only
di=(docRef.name).indexOf(".");
fname = (docRef.name).substr(0, di);
//use extension if set
if ( ShowExtension == "y" )
fname = docRef.name
myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
catch( e )
// An error occurred. Restore ruler units, then propagate the error back
// to the user
preferences.rulerUnits = originalRulerUnits;
throw e;
// Everything went Ok. Restore ruler units
preferences.rulerUnits = originalRulerUnits;
else
alert( "You must have a document open to add the filename!" );you might want to try the scripting forum howard:
http://www.adobeforums.com/webx?13@@.ef7f2cb -
Error message: unexpected end-of-file in Photoshop CS4
"could not complete the command because an unexpected end-of-file was encountered"I just started getting them tonight. It happened when I opt-doubled clicked on an image in Dreamweaver to edit in Photoshop. Now it pops up on every image. I just reinstalled Photoshop CS4 and Bridge today. Help!
Check your scratch disks for fragmentation ( use something like disk warrior ) and available space. Sounds like the files are not getting completely saved.
-
Aperture: When trying to open in external editor I get this warning when going to Photoshop CS6: Could not complete your request because an unexpected end-of-file was encountered. I can export and open via Photoshop or open directly from file-just not through external editor. Gerry
Hi gerry,
does this happen for a particular image only, or for all images?
And does this happen only from your account or also from other user accounts?
Léonie -
Crash at start up photoshop on mac for unexpected end-of-file encountered
Hi,
When I try to start Photoshop. I have the splash screen and it starts loading but when arrived at loading preferences, it stops and I have the error message :
unexpected end-of-file encountered. Then "could not initialize photoshop because the preferences file was invalid ( it has been deleted). I am sure I have not deleted but I know my hard drive is almost full.
What I can do ? I really need it. I have photoshop CS5 on mac osx. I can't get photoshop cc because my imac is too old
Thank you very much for your answer and help.
Anne.Please read these and proceed accordingly (restoring Preferences might deserve special attention):
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
http://forums.adobe.com/docs/DOC-2325 -
Unexpected end of file occurred while opening Photoshop CC psd in Photoshop Cs4
Can anyone help me? I'm using Photoshop CC 2014 on Windows 7 at home and Photoshop CS4 at school. I get an Unexpected end of file occurred when I try to open my assignements at school.
How can this be fixed?
Thank you!
SasHi Curt...I'm new here, so I'll get the hang of it. Thank you for your quick response. I'm using the Mac OS X version 10.6.8 I'm a digital artist and was working on a psd file. I use a wacom tablet and all of a sudden everything stopped responding. I had to force quit Photoshop and open again. That's when the window telling me an unexpected end-of-file was encountered. So much work has gone into this piece of artwork, so needless to say, I'm beyond frustrated. I had saved this work along the way just so I wouldn't lose it, but now this unexpected twist. I will try what you suggested to see if it will help.
Again THANK YOU!
Katy -
I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.
Are you trying to open Photoshop directly, or open it by double clicking on a Photoshop document, like a PSD file? If the former, then you might need to reinstall. Resetting Preferences would be the firs step, but I am not sure if that will work if Photoshop is not opening in the first place.
Try doing so anyway. Hold down Shift Alt Ctrl (Shift Opt Cmd) while opening Photoshop. OK the message to delete Preferences.
If you get the unexpected end of file error while trying to open Photoshop via a PSD document, then there is more than a good chance that that file is toast.
If still stuck, we need to know Operating System, and Photoshop version. -
What is wrong? : "Could not initialize Photoshop because an unexpected end-of-file was encountered." Photoshop CC 2014
Please check following links if they are useful:
Unexpected end-of-file
Photoshop CS6 Not Loading: Actions & Preferences Errors
Two Fatal Error Messages when Starting Photoshop
Regards
Rajshree
Maybe you are looking for
-
How can I stop the swf file from repeating on different web pages
I have my entire website built and am using a flash navigation bar that also has a movie presentation attached to it. I uploaded it to every page in my site because it is required for navigation. My problem is that the movie plays every time you swit
-
How to handel parametrs when bi answers is data source
Hi All, I created a report which having obi answers as data source.how to create a parameters for this report same like prompts in bi answer report. can any one help me in this. Thanks, KSS
-
My computer's current version of Firefox is 3.6.13; clicked on Software Update and received an "strong suggestion" to download the newest version 3.6.16. Clicked to update and now "Downloading Update" has been showing "Connecting to the update server
-
Hi everyone, Please help. I have script for a 3d Carousel everything works. But I want to get the images to stay facing the front. I can change most things but am having trouble with getting the images front facing. The property y.rotation I need to
-
Best method for UIComponent Initialization?
I have a custom class that extends Panel and I would like to get input on the best method for initializing custom properties upon object creation. I currently create an event handler for the FlexEvent.CREATION_COMPLETE event and assign my properties