Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jan 2010
    Posts
    24
    Vote Rating
    0
    SopGreg is on a distinguished road

      0  

    Exclamation [FNR] LiveGridView / by Zero (ArithmeticException)

    [FNR] LiveGridView / by Zero (ArithmeticException)


    Hi,

    I just encountered a bug when loading a LiveGridView store for the first time:

    in LiveGridView.java@242:

    PHP Code:
              if (totalCount != loader.getTotalCount()) { // totalCount = 0, loader.getTotalCount() = 11
                
    totalCount loader.getTotalCount(); // = 11
                
    int height totalCount getCalculatedRowHeight(); // 11 * 19 = 209
                // 1000000 as browser maxheight hack
                
    int count height 1000000// 209 / 1000000 => truncated to zero
                
    int h height count// 11 / 0 => BOOM 
    I just switched from 2.1.3 to 2.2.0 beta and encoutered this error for the first time.
    Is there a quick fix/workaround for this problem?

    regards

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2151. Can you validate this?

  3. #3
    Ext User
    Join Date
    Jan 2010
    Posts
    24
    Vote Rating
    0
    SopGreg is on a distinguished road

      0  

    Default


    Seems to be fixed now, everything works fine again. Thanks!

    As for the release notes, there's a typo: "device" => "divide"

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Ops, that typo gets fixed with my next commit

Similar Threads

  1. Keyboard-Navigation of LiveGridView
    By AndreD in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 20 Jul 2010, 1:15 AM
  2. [FNR] LiveGridView - getVisibleRowCount() can return too many rows
    By mattpainter in forum Ext GWT: Bugs (2.x)
    Replies: 7
    Last Post: 9 Jun 2010, 3:23 AM
  3. [FNR] LiveGridView setStripeRows Bug
    By support_csd_kz in forum Ext GWT: Bugs (2.x)
    Replies: 4
    Last Post: 17 Apr 2010, 8:30 AM
  4. Infinite loop with LiveGridView
    By id9848949 in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 12 Dec 2009, 11:36 AM
  5. [CLOSED] [2.1] LiveGridView and SelectionModel
    By baskor in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 4 Dec 2009, 2:32 AM

Thread Participants: 1

Tags for this Thread