<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Reporter</th>
<td>betson.fernando@gmail.com</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - error 115 within for loop"
href="http://bugzilla.scilab.org/show_bug.cgi?id=13851">13851</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error 115 within for loop
</td>
</tr>
<tr>
<th>Product</th>
<td>Scilab software
</td>
</tr>
<tr>
<th>Version</th>
<td>5.5.2 final version
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows 7
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Major
</td>
</tr>
<tr>
<th>Component</th>
<td>Compile
</td>
</tr>
<tr>
<th>Assignee</th>
<td>bugzilla.admin@scilab.org
</td>
</tr>
</table>
<p>
<div>
<pre>BUG DESCRIPTION:
----------------
I'm working in a code that uses fft function in a for loop. Sometimes, an error occurs after several fft calls, as descripted below:
ERROR LOG:
----------
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "fftw" function.
Save your data and restart Scilab.
end
!--error 115
Stack problem detected within a loop.
A primitive function has been called with a wrong number of output arguments.
No output argument test has been made for this function.
Please, report this bug.
<a href="http://bugzilla.scilab.org/">http://bugzilla.scilab.org/</a>
at line 142 of exec file called by :
ped Pulse Fiber Amplifier_Betson_corr.sce', -1
HOW TO REPRODUCE THE BUG:
-------------------------
The loop with trouble is
for jj=dh:dh:zamp // "Heart" of the split step method
spectrum=spectrum.*exp(-alph*(dh/2)+%i*b2g/2*w.^2*(dh/2)) ;
f=ifft(spectrum);
f=f.*exp(%i*gama*((abs(f)).^2)*(dh));
spectrum=fft(f);
spectrum=spectrum.*exp(-alph*(dh/2)+%i*b2g/2*w.^2*(dh/2)) ;
end
For information, dh=zamp/50, so that the code inside the loop is executed50 times, and the loop is repeated 40 times inside my whole program code.
"spectrum" and "w" are arrays with 32000 float numbers length each; alph, dh, b2g and gama are real float number constants.
OTHER INFORMATION:
------------------</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>