Kirix Support Forums

Crash bug in (Border)BoxLayout.add()

Please let us know if you are encountering problems with the beta or have ideas for how it can be improved. Please provide as much detail as possible so we can try to repeat the problem. Thanks!

Crash bug in (Border)BoxLayout.add()

Postby AaronAcephalous on Wed Aug 08, 2007 8:58 pm

Passing undefined as the first argument to BoxLayout.add() or BorderBoxLayout.add() apparently always results in Strata crashing hard, with the XP "Kirix Strata Application has encountered a problem and needs to close" dialog. (Actually, that dialog pops up about four times before Strata finally closes. Dunno what that's about.)

Here's the script I wrote to tickle the bug:

Code: Select all
var myLayout;

var f = new crashingForm;
f.show();
Application.run;

class crashingForm extends Form {
    function crashingForm() {
        super("This crashes Strata", 100, 100, 300, 400);
       
        myLayout = new BorderBoxLayout(Layout.Vertical);
        myLayout.add(undefined, 1, Layout.Expand);
       
        setLayout(myLayout);
    }
}


Hope this helps!
AaronAcephalous
Registered User
 
Posts: 6
Joined: Tue Aug 07, 2007 1:18 pm

Re: Crash bug in (Border)BoxLayout.add()

Postby Aaron on Thu Aug 09, 2007 10:27 am

Thanks for the report. This is definitely a bug.

#137
Aaron Williams
Kirix Support Team
User avatar
Aaron
Kirix Support Team
 
Posts: 120
Joined: Fri Dec 16, 2005 3:01 pm

Re: Crash bug in (Border)BoxLayout.add()

Postby Ben on Tue Aug 14, 2007 10:21 am

This bug has been fixed in our release branch. You'll see the fix in the upcoming second beta.

Thanks much for the report.

Best,
Ben
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to Bug Reports & Suggestions