Results 1 to 2 of 2

Thread: [CLOSED] WindowListener Events.Minimize Stack Overflow Error

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2010
    Vote Rating

    Default [CLOSED] WindowListener Events.Minimize Stack Overflow Error

    Hi Guys, it looks like a bug. I've implemented a window and added a minimize button and an minimize event. Here a little bit java gxt code:
    PHP Code:
    this.addListener(Events.Minimize, new WindowListener() {
    public void windowMinimize(WindowEvent we) {
    "this" stays for the extended Window Class from GXT 2. I get an error while i press the minimize button:

    java.lang.StackOverflowError: null
    at java.util.HashMap.get(Unknown Source)
    at com.extjs.gxt.ui.client.core.FastMap.get(
    at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(
    at com.extjs.gxt.ui.client.widget.Component.fireEvent(
    at com.extjs.gxt.ui.client.widget.Window.minimize(

    If i change the minimize(); method into hide(); method in the window event it works fine. Is it a bug?

    Best Regards

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Vote Rating


    Its an issue in your code. You should use the help forum for something like this.

    The minimize method of the window fires the minimize event. As you call the minimize method again in that event, you have an endless loop which ends in an stackoverflow. You need to implement some other logic in that listener.

Similar Threads

  1. Stack Overflow Error during compiling with CheckColumnConfig
    By mark01635 in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 24 Jun 2009, 11:25 PM
  2. [FIXED][3.??] Infinite Loop (Stack Overflow error)
    By stever in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 18 Jun 2009, 6:14 PM
  3. [CLOSED] Tree stack overflow
    By assassin in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 19 Jun 2008, 5:17 AM
  4. Stack Overflow Error in DateField
    By rganesh84 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Mar 2008, 6:35 AM
  5. Stack Overflow at line 6656. Error or Bug?
    By jkozak in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Jan 2008, 5:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts