You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Hensley, Richard" <Ri...@McKesson.com> on 2003/10/09 23:42:23 UTC

Unsure as to what an error message is really telling me

I get the following message when I execute a diff command: 

wc $svn diff -r 127:128 Staff.java 
Index: Staff.java 
=================================================================== 
--- Staff.java  (revision 127) 
+++ Staff.java  (revision 128) 
@@ -36,1724 +36,1731 @@ 
svn: Not enough storage is available to process this command. 
svn: svn_diff_file_output_unified: error writing hunk 

I'm not sure what the error messages mean. 

The repository and the work copy are on the same computer. The computer
is a Windows XP machine. I use the file:// <file://>  protocol to access
the repository. I have about 18G of free space on the local hard drive.
Is there anything else I should be checking?

I seem to be getting this error on all svn diff commands. Interestingly
enough, svn merge works just fine. I understand from reading the
documentation that the two are closely related.

Thanks for any help, 

Richard 


Re: Unsure as to what an error message is really telling me

Posted by Ben Collins-Sussman <su...@collab.net>.
"Hensley, Richard" <Ri...@McKesson.com> writes:

> I get the following message when I execute a diff command: 
> 
> wc $svn diff -r 127:128 Staff.java 
> Index: Staff.java 
> =================================================================== 
> --- Staff.java  (revision 127) 
> +++ Staff.java  (revision 128) 
> @@ -36,1724 +36,1731 @@ 
> svn: Not enough storage is available to process this command. 
> svn: svn_diff_file_output_unified: error writing hunk 

Never seen this before.  The error is happening in the internal
libsvn_diff library, line 571:

  /* Output the hunk content */
  hunk_len = baton->hunk->len;
  rv = apr_file_write(baton->output_file, baton->hunk->data, &hunk_len);
  if (rv != APR_SUCCESS)
    {
      return svn_error_create(rv, NULL,
               "svn_diff_file_output_unified: error writing hunk.");
    }

So it looks like the first error line is a message from the operating
system itself;  it's coming from the apr_file_write() call.  

Do you have any idea why your OS would say there's "not enough
storage" to write data to a temporary file?  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Unsure as to what an error message is really telling me

Posted by Sander Striker <st...@apache.org>.
> From: kfogel@newton.ch.collab.net [mailto:kfogel@newton.ch.collab.net]On
> Behalf Of kfogel@collab.net

> "Hensley, Richard" <Ri...@McKesson.com> writes:
> > I get the following message when I execute a diff command: 
> > 
> > wc $svn diff -r 127:128 Staff.java 
> > Index: Staff.java 
> > =================================================================== 
> > --- Staff.java  (revision 127) 
> > +++ Staff.java  (revision 128) 
> > @@ -36,1724 +36,1731 @@ 
> > svn: Not enough storage is available to process this command. 
> > svn: svn_diff_file_output_unified: error writing hunk 
> > 
> > I'm not sure what the error messages mean. 
> 
> Based on the error message, the line numbers in your diff, and the
> existence of this issue (which Sander Striker is hard at work on)
> 
>    http://subversion.tigris.org/issues/show_bug.cgi?id=1481
> 
> I'm tempted to say that svn was unable to diff a very large file
> because it was unable to hold it all in memory :-).

No.  This is when the code is already hitting the output stage,
that is, after the diff has been created.  The output code is
simply reading in the file again to output the relevant portions.

However, the error is related to writing to stdout, which is
odd.

Seeing the '$' prompt in your report, I assume you are not using
the windows native shell, but something else.  Could you try
running the same command from cmd?

Thanks,

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Unsure as to what an error message is really telling me

Posted by kf...@collab.net.
"Hensley, Richard" <Ri...@McKesson.com> writes:
> I get the following message when I execute a diff command: 
> 
> wc $svn diff -r 127:128 Staff.java 
> Index: Staff.java 
> =================================================================== 
> --- Staff.java  (revision 127) 
> +++ Staff.java  (revision 128) 
> @@ -36,1724 +36,1731 @@ 
> svn: Not enough storage is available to process this command. 
> svn: svn_diff_file_output_unified: error writing hunk 
> 
> I'm not sure what the error messages mean. 

Based on the error message, the line numbers in your diff, and the
existence of this issue (which Sander Striker is hard at work on)

   http://subversion.tigris.org/issues/show_bug.cgi?id=1481

I'm tempted to say that svn was unable to diff a very large file
because it was unable to hold it all in memory :-).

> I seem to be getting this error on all svn diff commands.

Are they always with such large files?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org