Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2013
    Location
    Virginia
    Posts
    11
    Vote Rating
    0
    YuraSocolov is on a distinguished road

      0  

    Default [4.2.*] TypeError: records is undefined

    [4.2.*] TypeError: records is undefined


    REQUIRED INFORMATION


    Ext version tested:
    Ext 4.2.*, including 4.2.2 and 4.2.2.1162

    Browser versions tested against:
    All

    Description:
    A bug in grid load store function manifests itself with infinite grid and a buffered store as javascript error:
    TypeError: records is undefined on line 95429 of 4.2.2.1162.


    FIX against 4.2.2.1162:
    Code:
    *** ext-all-debug.js.orig       Thu Oct  3 19:26:23 2013
    --- ext-all-debug.js    Thu Oct  3 19:28:05 2013
    ***************
    *** 95426,95431 ****
    --- 95426,95432 ----
                  return true;
              } else {
                  records = store.data.items;
    +             if(records === undefined) { return false}
                  len = records.length;
                  id = record.internalId;

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,346
    Vote Rating
    111
    Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice

      0  

    Default


    Can you please post a small test case which reproduces the issue so we can see what's causing this? Thanks.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2013
    Location
    Virginia
    Posts
    11
    Vote Rating
    0
    YuraSocolov is on a distinguished road

      0  

    Default


    I don't need to do anything special to trigger this. A buffered store with a lot of records, store.load() triggers it consistently every time.

    My store is setup like this:

    Code:
            var s = Ext.create('Ext.data.Store', {
            id: 'store',
            model: 'Stack',
            pageSize: 1000,
            leadingBufferZone: 500,
            proxy: {
                type: 'ajax',
             
                    url: 'XXX',
             actionMethods: {
                    read: 'GET',
                    write: 'POST'
                },
                reader: {
                    root: 'data',
                    totalProperty: 'total',
                },
                writer: {
                    root: 'data',
                    writeAllFields: 'true',
                    type: 'json',
                },
                simpleSortMode: true
            },
            remoteSort: true,
            autoSync: true,
            buffered: true,
            sorters: [{
                property: 'elem_ts',
                direction: 'DESC'
            }]
        });

  4. #4
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,346
    Vote Rating
    111
    Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice

      0  

    Default


    Thank you for your store code. Approximately how many records do I need to recreate this? Are you using BufferedRendering or any other features or plugins on the grid?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2013
    Location
    Virginia
    Posts
    11
    Vote Rating
    0
    YuraSocolov is on a distinguished road

      0  

    Default


    Sorry about the delay here.

    It's triggered with as few as a couple of thousand records, although typically my store has at least 500K.

    The store is always buffered: true, and it doesn't matter whether i also configure bufferedrenderer plugin -- same result.

  6. #6
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    ra0ahc is on a distinguished road

      0  

    Default


    same problem
    how we can tempory drop the bug?

Thread Participants: 2