[cdp] memcpy_with_check() bug?

Peter P. peterparker at fastmail.com
Thu Apr 2 10:56:54 CEST 2020


Thanks for your kind mail Archer! I am replying via the mailing list
and below the quoted text.

* Archer Endrich <archerhgm at gmail.com> [2020-03-22 00:15]:
> On 21/03/2020 15:43, Peter P. wrote:
> > Dear list,
> > 
> > I saw someone produce an error with a call of
> >   extend zigzag 1 k.wav kz.wav 0 57 180 0.1
> > that resulted in a few seconds of processing and then an error message
> >   ERROR: INTERNAL ERROR: (Bug?)
> >   ERROR: ATTEMPTED to copy -ve number of bytes: memcpy_with_check()
> > 
> > I tried to reproduce this on wine with the original soundfile but didn't
> > managed to.
> > 
> > Has anyone ever seen such an error message and could explain what it
> > means?
> > 
> > Thank you so much!
> > Peter
> > _______________________________________________
> > cdp mailing list
> > cdp at lists.mur.at
> > https://lists.mur.at/mailman/listinfo/cdp
> 
> Dear Peter,
> 
> I have tested the command line given in your query about ZIGZAG and received
> a different error message stating that parameter 2 was out of range.  Then
> "can't close output sf-soundfile:  can't truncate SFile."
> 
> Perhaps the difference in the error messages relates to the nature of the
> input soundfile.  Mine was 4.9 seconds long (and mono). Unless using
> Soundshaper on PC, it would have to be mono. Only Soundshaper has behind the
> scenes scripting to handle stereo inputs when the CDP software doesn't
> normally allow them for a given program.
> 
> The command line given was in fact incorrect.  Mode 1 of ZIGZAG's basic
> command is:
> 
> mode start end dur minzig
In fact it might be
 mode infile outfile start end dur minzig

> and processes randomly within the soundfile, "starts at file start, ends at
> file end".  Times can in fact be specified *within* the length of the
> soundfile, e.g. for a 5 second soundfile, start can be 1.0 and end can be
> 2.5.   'dur' means the desired length of the output soundfile, and 'minzig'
> means the minimum length of a segment.  The minimum value for 'start' is
> 0.031.
That's interesting! How do you find out about the minimum value for
'start'? I always thought it could be zero. 

Anyway I can't seem to reproduce the error now with the orignal z.wav
file on either Linux nor windows. We might have to close this as a cold
case :)

thanks again,
Peter


More information about the cdp mailing list