Wed 25 Nov 2015 11:03:01 AM UTC, original submission:
--------- follow up on
<http://savannah.gnu.org/bugs/?46455>
Sorry for not answering earlier.
I create a new ticket since this one is closed and don't see how to re-open it.
andrefou <andreff92>
Wed 25 Nov 2015 10:51:04 AM GMT, comment #3:
Here is the script herebelow,
The problem seems to be related to the function "babu" that I am using. When I use a string paameter to any function (can be "babu" or anything else), the problem occurs. Looks like a memory issue. Do you see anything wrong with what I am doing here.
I understand that in octave all function parameters are passed by value
I also tried
essai1=babu('/home/andre/clone/search-workers/image-processing/algo/set_of_images/testsethamed/Images/3.jpg');
----------------------------
function loaded = image_loader(s)
%let the user launch some matlab functions on the set of pictures realized by hamed
l={1;2;6;9;10;12;14;15;17;19;20;21;25;26;28;29;35;44;50;57;58;59;60;61;62;63;64;65;66;67;68;69;70;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88};
for i =1:51
a=l{[i,1]};
text=sprintf('/home/andre/clone/search-workers/image-processing/algo/set_of_images/testsethamed/Images/%d.jpg',a);
essai1=babu(text);
disp(essai1)
end
loaded=1;
-------------------------------
function Quality=babu(img)
im=imread(img);
if length(size(im))>2
y=rgb2gray(im);
else
y=im;
end
andrefou <andreff92>
Tue 24 Nov 2015 11:53:12 PM GMT, comment #2:
No response. Closing report.
Rik <rik5>
Project Administrator
Tue 17 Nov 2015 05:26:21 PM GMT, comment #1:
Can you upload the m-file you are using and the exact sequence at the command line that triggers the bug so that others can try to duplicate this. It's too vague right now for me to decide what is going on.
Rik <rik5>
Project Administrator
Mon 16 Nov 2015 10:57:08 AM GMT, original submission:
Hello,
My issue is linked with my build system, For some reason when I try on some function.m file
result=function('a String')
the function returns A(I): index out of bounds; value %% out of bound %%
But if the result do not depend on the input
result=function(a number)
would work and
result=function('a String')
wouldnt with the same error A(I): index out of bounds triggered.
Moreover, I can also avoid the error by changing the name of the function and function file by for example call the function function1 and then
result=function1('a String')
would work
So it is like my build is related to the issue and randomly create errors on some functions that take string in input(it could be some random function with random names). I reinstalled octave multiple time and it didn t change anything.
Any idea on what part of octave on an ubuntu system could be related to this kind of bug?
Thank you,
Andre Fougeront
andrefou <andreff92>
|