Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7097

Large document is causing the browser (IE9 and Chrome) to crash on Windows 2008r2

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0, 2.0.1, 3.0.3, 4.0.0
    • Fix Version/s: bug-backlog
    • Component/s: UI
    • Security Level: Public
    • Labels:
      None
    • Operating System:
      Ubuntu 64-bit
    • Is this a Regression?:
      Yes

      Description

      I have a large document cached (about 3.2MB on disk) on a one server instance running in Windows 2008R2. When I attempt to bring this document up in the web admin console, or to create a view from it, it freezes and eventualy crashes the web browser. This is happened whether the document is json or binary, and in Chrome and IE9. Retrieving the document through the .NET client works fine however.

      http://www.couchbase.com/forums/thread/large-document-crashing-web-management-console

      1. bucket_items_correct.png
        145 kB
      2. docs.png
        134 kB
      3. view_result.png
        136 kB
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        mikew Mike Wiederhold created issue -
        Hide
        mikew Mike Wiederhold added a comment - - edited

        Farshid,

        Can you assign this issue to someone on your team since I don't have access to a windows machine. If it is reproducible then do we want to fix it for 2.0 or move it to 2.0.1.

        Show
        mikew Mike Wiederhold added a comment - - edited Farshid, Can you assign this issue to someone on your team since I don't have access to a windows machine. If it is reproducible then do we want to fix it for 2.0 or move it to 2.0.1.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        can you please try loading this document via chrome on linux ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - can you please try loading this document via chrome on linux ?
        farshid Farshid Ghods (Inactive) made changes -
        Field Original Value New Value
        Assignee Farshid Ghods [ farshid ] Iryna Mironava [ iryna ]
        Hide
        mikew Mike Wiederhold added a comment -

        Iryna,

        This bug is filed against Windows, but it would be good to double check linux too.

        Show
        mikew Mike Wiederhold added a comment - Iryna, This bug is filed against Windows, but it would be good to double check linux too.
        Hide
        iryna iryna added a comment -

        tested with build 1941:
        <manifest><remote name="couchbase" fetch="git://10.1.1.210/"/><remote name="membase" fetch="git://10.1.1.210/"/><remote name="apache" fetch="git://github.com/apache/"/><remote name="erlang" fetch="git://github.com/erlang/"/><default remote="couchbase" revision="master"/><project name="tlm" path="tlm" revision="12abea946eafd7411273d18a10ae1f84390db3d4"><copyfile dest="Makefile" src="Makefile.top"/></project><project name="bucket_engine" path="bucket_engine" revision="70b3624abc697b7d18bf3d57f331b7674544e1e7"/><project name="ep-engine" path="ep-engine" revision="40a391bf0cb727283db97e4734da570313c3638a"/><project name="libconflate" path="libconflate" revision="2cc8eff8e77d497d9f03a30fafaecb85280535d6"/><project name="libmemcached" path="libmemcached" revision="ca739a890349ac36dc79447e37da7caa9ae819f5" remote="membase"/><project name="libvbucket" path="libvbucket" revision="00d3763593c116e8e5d97aa0b646c42885727398"/><project name="membase-cli" path="membase-cli" revision="dea2bae7b4a3a062d22e3d5db82e48961dce0804" remote="membase"/><project name="memcached" path="memcached" revision="7ea975a93a0231393502af4ca98976eee8a83386" remote="membase"/><project name="moxi" path="moxi" revision="52a5fa887bfff0bf719c4ee5f29634dd8707500e"/><project name="ns_server" path="ns_server" revision="67b4898e7ff536d16cecdd5129ae7a2d10f1239e"/><project name="portsigar" path="portsigar" revision="1bc865e1622fb93a3fe0d1a4cdf18eb97ed9d600"/><project name="sigar" path="sigar" revision="63a3cd1b316d2d4aa6dd31ce8fc66101b983e0b0"/><project name="couchbase-examples" path="couchbase-examples" revision="544688dc56420faaf6f25946dd4b3ef3f7c15286"/><project name="couchbase-python-client" path="couchbase-python-client" revision="006c1aa8b76f6bce11109af8a309133b57079c4c"/><project name="couchdb" path="couchdb" revision="b68b5f40e0911db7de651b457e6a79a5937ff810"/><project name="couchdbx-app" path="couchdbx-app" revision="a1cbfcaa0091b4b7038bbe949b9d48787cc526eb"/><project name="couchstore" path="couchstore" revision="b5937c4479bf05dcc67264efe19abaf52870a127"/><project name="geocouch" path="geocouch" revision="849d5443689b1924f097548af864c539bffcc929"/><project name="mccouch" path="mccouch" revision="88701cc326bc3dde4ed072bb8441be83adcfb2a5"/><project name="testrunner" path="testrunner" revision="d72ffef6a19d0421d40cc5ce9ff65673f113ee1b"/><project name="otp" path="otp" revision="b6dc1a844eab061d0a7153d46e7e68296f15a504" remote="erlang"/><project name="icu4c" path="icu4c" revision="26359393672c378f41f2103a8699c4357c894be7" remote="couchbase"/><project name="snappy" path="snappy" revision="5681dde156e9d07adbeeab79666c9a9d7a10ec95" remote="couchbase"/><project name="v8" path="v8" revision="447decb75060a106131ab4de934bcc374648e7f2" remote="couchbase"/><project name="gperftools" path="gperftools" revision="8f60ba949fb8576c530ef4be148bff97106ddc59" remote="couchbase"/><project name="pysqlite" path="pysqlite" revision="0ff6e32ea05037fddef1eb41a648f2a2141009ea" remote="couchbase"/></manifest>

        I didn't reproduce exactly the same issue, browser is not freezed, but documents screen doesn't show any documents both windows and linux (attaching screenshots) and query results doesn't displayed all expected documents (api works ok)

        Show
        iryna iryna added a comment - tested with build 1941: <manifest><remote name="couchbase" fetch="git://10.1.1.210/"/><remote name="membase" fetch="git://10.1.1.210/"/><remote name="apache" fetch="git://github.com/apache/"/><remote name="erlang" fetch="git://github.com/erlang/"/><default remote="couchbase" revision="master"/><project name="tlm" path="tlm" revision="12abea946eafd7411273d18a10ae1f84390db3d4"><copyfile dest="Makefile" src="Makefile.top"/></project><project name="bucket_engine" path="bucket_engine" revision="70b3624abc697b7d18bf3d57f331b7674544e1e7"/><project name="ep-engine" path="ep-engine" revision="40a391bf0cb727283db97e4734da570313c3638a"/><project name="libconflate" path="libconflate" revision="2cc8eff8e77d497d9f03a30fafaecb85280535d6"/><project name="libmemcached" path="libmemcached" revision="ca739a890349ac36dc79447e37da7caa9ae819f5" remote="membase"/><project name="libvbucket" path="libvbucket" revision="00d3763593c116e8e5d97aa0b646c42885727398"/><project name="membase-cli" path="membase-cli" revision="dea2bae7b4a3a062d22e3d5db82e48961dce0804" remote="membase"/><project name="memcached" path="memcached" revision="7ea975a93a0231393502af4ca98976eee8a83386" remote="membase"/><project name="moxi" path="moxi" revision="52a5fa887bfff0bf719c4ee5f29634dd8707500e"/><project name="ns_server" path="ns_server" revision="67b4898e7ff536d16cecdd5129ae7a2d10f1239e"/><project name="portsigar" path="portsigar" revision="1bc865e1622fb93a3fe0d1a4cdf18eb97ed9d600"/><project name="sigar" path="sigar" revision="63a3cd1b316d2d4aa6dd31ce8fc66101b983e0b0"/><project name="couchbase-examples" path="couchbase-examples" revision="544688dc56420faaf6f25946dd4b3ef3f7c15286"/><project name="couchbase-python-client" path="couchbase-python-client" revision="006c1aa8b76f6bce11109af8a309133b57079c4c"/><project name="couchdb" path="couchdb" revision="b68b5f40e0911db7de651b457e6a79a5937ff810"/><project name="couchdbx-app" path="couchdbx-app" revision="a1cbfcaa0091b4b7038bbe949b9d48787cc526eb"/><project name="couchstore" path="couchstore" revision="b5937c4479bf05dcc67264efe19abaf52870a127"/><project name="geocouch" path="geocouch" revision="849d5443689b1924f097548af864c539bffcc929"/><project name="mccouch" path="mccouch" revision="88701cc326bc3dde4ed072bb8441be83adcfb2a5"/><project name="testrunner" path="testrunner" revision="d72ffef6a19d0421d40cc5ce9ff65673f113ee1b"/><project name="otp" path="otp" revision="b6dc1a844eab061d0a7153d46e7e68296f15a504" remote="erlang"/><project name="icu4c" path="icu4c" revision="26359393672c378f41f2103a8699c4357c894be7" remote="couchbase"/><project name="snappy" path="snappy" revision="5681dde156e9d07adbeeab79666c9a9d7a10ec95" remote="couchbase"/><project name="v8" path="v8" revision="447decb75060a106131ab4de934bcc374648e7f2" remote="couchbase"/><project name="gperftools" path="gperftools" revision="8f60ba949fb8576c530ef4be148bff97106ddc59" remote="couchbase"/><project name="pysqlite" path="pysqlite" revision="0ff6e32ea05037fddef1eb41a648f2a2141009ea" remote="couchbase"/></manifest> I didn't reproduce exactly the same issue, browser is not freezed, but documents screen doesn't show any documents both windows and linux (attaching screenshots) and query results doesn't displayed all expected documents (api works ok)
        iryna iryna made changes -
        Attachment view_result.png [ 15717 ]
        Attachment bucket_items_correct.png [ 15718 ]
        Attachment docs.png [ 15719 ]
        Hide
        iryna iryna added a comment -

        Please let me know if you need more information

        Show
        iryna iryna added a comment - Please let me know if you need more information
        iryna iryna made changes -
        Assignee Iryna Mironava [ iryna ] Mike Wiederhold [ mikew ]
        Hide
        steve Steve Yen added a comment -

        happens for blobs and for json.

        per bug-scrub mtg, options...

        • check if doc too large and not display or display only 1st N lines
        • key priority is to ensure the console does not crash

        do not want a server-side fix; instead client-side fix is sought at this point

        keeping this open for now for a day or so to see if we can get a fix

        Show
        steve Steve Yen added a comment - happens for blobs and for json. per bug-scrub mtg, options... check if doc too large and not display or display only 1st N lines key priority is to ensure the console does not crash do not want a server-side fix; instead client-side fix is sought at this point keeping this open for now for a day or so to see if we can get a fix
        mikew Mike Wiederhold made changes -
        Assignee Mike Wiederhold [ mikew ] Aleksey Kondratenko [ alkondratenko ]
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - - edited

        Hi.

        Try to fix this one.

        Basic idea is before parsing document as json, check if it's bigger than 2-3 kbs and if it is just show some reasonably nice error.

        Something similar can be done for those base64-encoded non-json docs if possible

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - - edited Hi. Try to fix this one. Basic idea is before parsing document as json, check if it's bigger than 2-3 kbs and if it is just show some reasonably nice error. Something similar can be done for those base64-encoded non-json docs if possible
        alkondratenko Aleksey Kondratenko (Inactive) made changes -
        Assignee Aleksey Kondratenko [ alkondratenko ] Pavel Blagodov [ pavel ]
        Hide
        steve Steve Yen added a comment -

        if not fixed by Friday, it's not in for 2.0.

        Show
        steve Steve Yen added a comment - if not fixed by Friday, it's not in for 2.0.
        steve Steve Yen made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Hide
        steve Steve Yen added a comment -

        moved to 2.0.1 per bug scrub

        Show
        steve Steve Yen added a comment - moved to 2.0.1 per bug scrub
        steve Steve Yen made changes -
        Fix Version/s 2.0.1 [ 10399 ]
        Fix Version/s 2.0 [ 10114 ]
        pavel Pavel Blagodov made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Pavel,

        is thie change uploaded to gerrit already ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - Pavel, is thie change uploaded to gerrit already ?
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        per bug scrub moving this to 2.0.2

        Show
        farshid Farshid Ghods (Inactive) added a comment - per bug scrub moving this to 2.0.2
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 2.0.2 [ 10418 ]
        Fix Version/s 2.0.1 [ 10399 ]
        Affects Version/s 2.0 [ 10114 ]
        Affects Version/s 2.0.1 [ 10399 ]
        dipti Dipti Borkar made changes -
        Rank Ranked higher
        maria Maria McDuff (Inactive) made changes -
        Fix Version/s 2.1 [ 10414 ]
        Fix Version/s 2.0.2 [ 10418 ]
        maria Maria McDuff (Inactive) made changes -
        Planned Start (set to new fixed version's start date)
        Planned End (set to new fixed version's start date)
        Hide
        maria Maria McDuff (Inactive) added a comment -

        bug scrub: moving to 2.1. need changes to document editing.

        Show
        maria Maria McDuff (Inactive) added a comment - bug scrub: moving to 2.1. need changes to document editing.
        pavel Pavel Blagodov made changes -
        Priority Blocker [ 1 ] Minor [ 4 ]
        Operating System Ubuntu 64-bit [ 10022 ]
        pavel Pavel Blagodov made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Hide
        mikew Mike Wiederhold added a comment - - edited

        A user who is hitting this issue. Might be good to raise this priority above minor. [EDIT] Raised to major.

        http://www.couchbase.com/forums/thread/stop-browser-freezing-index-big-json-docs

        Show
        mikew Mike Wiederhold added a comment - - edited A user who is hitting this issue. Might be good to raise this priority above minor. [EDIT] Raised to major. http://www.couchbase.com/forums/thread/stop-browser-freezing-index-big-json-docs
        mikew Mike Wiederhold made changes -
        Priority Minor [ 4 ] Major [ 3 ]
        Hide
        pavel Pavel Blagodov added a comment -

        http://review.couchbase.org/#/c/22678/ this is change uploaded to gerrit

        Show
        pavel Pavel Blagodov added a comment - http://review.couchbase.org/#/c/22678/ this is change uploaded to gerrit
        Hide
        mikew Mike Wiederhold added a comment -

        Please make sure that this also gets merged to the 2.1.1 release.

        Show
        mikew Mike Wiederhold added a comment - Please make sure that this also gets merged to the 2.1.1 release.
        mikew Mike Wiederhold made changes -
        Fix Version/s 2.1.1 [ 10620 ]
        Fix Version/s .major-release [ 10414 ]
        pavel Pavel Blagodov made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Show
        pavel Pavel Blagodov added a comment - http://review.couchbase.org/27458
        pavel Pavel Blagodov made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        maria Maria McDuff (Inactive) made changes -
        Assignee Pavel Blagodov [ pavel ] Shashank Gupta [ shashank ]
        Hide
        shashank Shashank Gupta added a comment -

        Verified with build 2.2.0-821-rel

        Show
        shashank Shashank Gupta added a comment - Verified with build 2.2.0-821-rel
        shashank Shashank Gupta made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        ianmccloy Ian McCloy made changes -
        Link This issue relates to CBSE-926 [ CBSE-926 ]
        Hide
        Scotch Scotch added a comment -

        This issue appears to be back. IF there are any multi-MB documents in the bucket the administration UI crashes, even if you're not trying to pull up that specific document. If you have smaller documents in the 10's of KB, the document list gets really slow too. I'm running a 4-node cluster of version 3.0.3-1716 Enterprise Edition (build-1716-rel) on Windows 2012 R2.

        Show
        Scotch Scotch added a comment - This issue appears to be back. IF there are any multi-MB documents in the bucket the administration UI crashes, even if you're not trying to pull up that specific document. If you have smaller documents in the 10's of KB, the document list gets really slow too. I'm running a 4-node cluster of version 3.0.3-1716 Enterprise Edition (build-1716-rel) on Windows 2012 R2.
        Hide
        bshumate Brian Shumate (Inactive) added a comment - - edited

        This issue is present in version 3.0.3 (per last comment) and I have just experienced it several times in 4.0.0-4045 on Debian 7 with a 3 node cluster.

        Easily reproducible:

        1. Create a bucket and load with a small (~10) number of large-ish docs (mine are 4-8MB in size)
        2. Access the web console
        3. Click Data Buckets
        4. Click Documents for the bucket the items were loaded into in step 1
        5. The web console UI becomes unresponsive and the tab crashes in Chrome

        Show
        bshumate Brian Shumate (Inactive) added a comment - - edited This issue is present in version 3.0.3 (per last comment) and I have just experienced it several times in 4.0.0-4045 on Debian 7 with a 3 node cluster. Easily reproducible: 1. Create a bucket and load with a small (~10) number of large-ish docs (mine are 4-8MB in size) 2. Access the web console 3. Click Data Buckets 4. Click Documents for the bucket the items were loaded into in step 1 5. The web console UI becomes unresponsive and the tab crashes in Chrome
        bshumate Brian Shumate (Inactive) made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        bshumate Brian Shumate (Inactive) made changes -
        Affects Version/s 3.0.3 [ 12420 ]
        Affects Version/s sherlock [ 12148 ]
        bshumate Brian Shumate (Inactive) made changes -
        Attachment large_doc_web_console_ui_crash.zip [ 26205 ]
        Is this a Regression? Yes [ 10450 ]
        Hide
        bshumate Brian Shumate (Inactive) added a comment -

        Attached cbcollect_info (large_doc_web_console_ui_crash.zip) from affected node

        Show
        bshumate Brian Shumate (Inactive) added a comment - Attached cbcollect_info (large_doc_web_console_ui_crash.zip) from affected node
        raju Raju Suravarjjala made changes -
        Assignee Shashank Gupta [ shashank ] Dave Finlay [ dfinlay ]
        raju Raju Suravarjjala made changes -
        Fix Version/s 4.0.1 [ 12822 ]
        Fix Version/s 2.2.0 [ 10620 ]
        Hide
        pavel Pavel Blagodov added a comment -

        The way it can be fixed described here MB-13975

        Show
        pavel Pavel Blagodov added a comment - The way it can be fixed described here MB-13975
        don Don Pinto made changes -
        Fix Version/s bug-backlog [ 11600 ]
        Fix Version/s 4.0.1 [ 12822 ]

          People

          • Assignee:
            dfinlay Dave Finlay
            Reporter:
            mikew Mike Wiederhold
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes