The ScopeSET Support and Community Portal
         
View all tags
Tags:    No tags associated yet.
Go Back
Tracker: ECRs Priority: Normal Type: Bug
Found: 11 build 91 Status: Built Target: 11.0
OS: All Fixed: 11.0.0.0.92 PatchID: --
Description:
A test script like this one "explodes". And at a certain point errors show up.

Run this in a system with 12 files each with at least one node_ref (causing 24.000 queries) and it will stop running in loop 700 … 750

Actually it does not matter what the system contains, you may also do 24.000 calls to list_select since the memory leak is caused by the query itself and not by the data retrieved from the database.

void main()
{
int i, loop, c1, c2;

list blah = list_select("node_ref");
list nr = list_select("file[node_refs]");
file f;
for(loop = 0; loop < 1000; ++ loop) {
for(i = 0; i < list_count(nr); ++ i) {
f = list_get(nr, i);
c1 = list_count(list_select("node_ref[file_id == " + f.id + "] sort by xcoord"));
c2 = list_count(list_select("node_ref[file_id == " + f.id + "] sort by ycoord"));
if(c1 != c2) {
print_message("Fehler aufgetreten c1= " + c1 + " c2 = " + c2 + " bei loop" + loop);
return;
}
}
}
}
Details:
Children (0)
Associations (0)
All (0)

Submitted Type Wiki Link Target Comment
Nothing found to display.

Submitted Type Wiki Link Source Comment
Nothing found to display.