Calculation blocks application

Hi

I have a calculation which returns a string, built by a strings and an integer. This calculation blocks the application (screen freezes)

function profile_description() {
    return code + ' ' + year;
}

This calc is used on a form in table view which is used on a split pane. If I only return the code, everything is fine. If I return code and year, the app freezes. If I use the calc in an other context, it works.

Any idea?

Regards
Birgit

We use:
Servoy Version: 5.2.6 - build 1011 (but the error was there in 5.2.4, too)
on Mac OS X 10.6

Birgit,

Are the fields used in the calc regular columns or also calcs?

When the app freezes in developer or (in case of webclient) in the appserver, you can create a thread dump (‘Dump the current stack/systeminfo’ on the admin page), this may give a hint.

Rob

Hi Rob

The accessed dataproviders in the calculation are regular colums of type text and type integer.

So far, only on one form it freezes the application (actually you still can select records, but the view does not update. As if the app is too busy).

How do I dump the stack? I did clear the server log, did turn tracing on, clicked on the broken form, did turn tracing off and attached the servoy_log. Is this what you need?

Actually, I did abbreviate the functions code a little in the last forum entry. Maybe you need to know the exact code for debugging:

function _profile(){ 
   return code + ' ' + period_fraction_name + ' ' + period_school_year;
}

Thanks and regards
Birgit

servoy_log.txt (661 KB)

birgit:
How do I dump the stack?

Go to the admin page with your browser (usually http://localhost:8080/servoy-admin/ ) and look for the ‘Dump the current stack/systeminfo’ link, usually http://localhost:8080/servoy-admin/dumpstack .

Rob

Here is the stack dump. I hope it gives you some information.

Thanks for helping me and regards
Birgit

stackDump.txt (41.1 KB)

can you create a case with that stackdump?
This is about that one of the those columns that you use (i don’t think the problem is that you use more then 1, i think the problem is that you use a specific one) is using a converter method
and the calc gets the value that first wants to go to the converter and somehow there it blocks…

Hi Rob

Converter sounds like a reasonable “bad boy”. Since I found that omitting the integer column lets the application work fine. I did file a case and uploaded the stack dump (hope it worked, didn’t get any visual feedback in the browser).

Thanks for helping me. Regards
Birgit

its there.