java.lang.StackOverflowError when switching forms

Hi,

I have a problem switching fomrs which I cannot figure out.

Setup:
Mainform contains splitpane1 that contains on the left tabpanel1 with only form1.

On the right, splitpane1 contains splitpane2.

Splitpane2 contains as topcomponent tabpanel2 with tabs for form2 to 5

Splitpane2 contains as bottomcomponent tabpanel3, containing only form6

When the solution opens, it opens the mainform. When I then view form2 (active form in tabpanel2) directly, by selecting it thorugh the windows menu, all is fine.
But when I then switch back to mainform, by selecting mainform from the windows menu, only some elements disappear from form 2 and mainform never shows. When I look in the log at that moment, I see a java.lang.StackOverflowError.

At this point, I can do two things:

  • Switch to designmode: then mainform opens in designview
  • Go back to form 2 or any other form. The selected form will show ok. After that, when I select mainform again, it shows just fine.

I tried using the debugger, but when I switch from form 2 to mainform with debugger on, nothing happens, except that the debugger window is shown.

Form 2 only has an onShow method attached, no onHide.

Somehow, I was able to reproduce this only with specific form 2, not any other form, while I have other forms with basically the same type of setup…

I’m puzzled. Anyone has an idea?

Paul

I think I isolated the circumstances when this happens:

  • form 2 is a form in table view (locked)
  • form 2 has a Body and a Footer
  • Body height is set to 20
  • Footer height is set to 40
  • between the top of the form and the body are an x number of fields
  • the Footer contains some buttons etc

With such a setup, I get the problems I described in the first post.

When I remove the Footer form part (and the elements placed on it) it works flawlessly…

Paul

OK, last update, 'cause I think I nailed it :lol:

The problem occurs when there are empty formparts on the form…

Took some time to notice that, but, in the end, I did.

Empty forms part don’t seem to be an issue anywhere else in Servoy, but do cause a problem in the setup described in the first post of this tread.

Paul

just as in the previous mail i posted.
A reproducaable solution would be very nice.