[Bugzilla] [Bug 13851] New: error 115 within for loop

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Wed Apr 29 16:38:29 CEST 2015


http://bugzilla.scilab.org/show_bug.cgi?id=13851
--------- Bug Summary -----------
error 115 within for loop

---------- Changed by ------------
betson.fernando at gmail.com

---------- What changed ----------
bug_id, short_desc, product, version, rep_platform, op_sys, bug_status, bug_severity, priority, component, assigned_to, reporter


            Bug ID: 13851
           Summary: error 115 within for loop
           Product: Scilab software
           Version: 5.5.2 final version
          Hardware: PC
                OS: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5
         Component: Compile
          Assignee: bugzilla.admin at scilab.org
          Reporter: betson.fernando at gmail.com

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.
http://bugzilla.scilab.org/
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:
------------------

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20150429/1f6acd37/attachment.htm>


More information about the Bugzilla mailing list