Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When splitting slices 3 times w/ terms sub aggregation, plugin hangs browser #7

Open
jackson-tim opened this issue May 12, 2016 · 4 comments

Comments

@jackson-tim
Copy link

screen shot 2016-05-12 at 9 16 55 am

Doing this twice works, but when you add a 3rd chrome just hangs, and firefox crashes:
screen shot 2016-05-12 at 9 17 20 am

Firefox Crash:

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
__WEBPACK_AMD_DEFINE_RESULT__</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25
computeNodeBreadths/<@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110189:10
computeNodeBreadths@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110186:8
d3.sankey/sankey.layout@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110111:6
_buildVis@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110006:8
_render@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110053:8
__WEBPACK_AMD_DEFINE_RESULT__</</<@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110060:10
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://kibana:5601/bundles/commons.bundle.js?v=9889:42917:24
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://kibana:5601/bundles/commons.bundle.js?v=9889:43188:14
done@http://kibana:5601/bundles/commons.bundle.js?v=9889:37637:37
completeRequest@http://kibana:5601/bundles/commons.bundle.js?v=9889:37835:8
requestLoaded@http://kibana:5601/bundles/commons.bundle.js?v=9889:37776:10

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
__WEBPACK_AMD_DEFINE_RESULT__</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
__WEBPACK_AMD_DEFINE_RESULT__</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25
```Ï
@JuanCarniglia
Copy link
Contributor

Maybe it has to do with the amount of data buckets? Will try to test it
asap.

Thanks

2016-05-12 11:21 GMT-03:00 jackson-tim [email protected]:

[image: screen shot 2016-05-12 at 9 16 55 am]
https://cloud.githubusercontent.com/assets/3065606/15217719/6f2cf416-1822-11e6-94d7-c322c5c97a45.png

Doing this twice works, but when you add a 3rd chrome just hangs, and
firefox crashes:
[image: screen shot 2016-05-12 at 9 17 20 am]
https://cloud.githubusercontent.com/assets/3065606/15217720/6f2e465e-1822-11e6-97ba-574d2721d9f6.png

Firefox Crash:

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progresshttp://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
WEBPACK_AMD_DEFINE_RESULT</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25
computeNodeBreadths/ http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25computeNodeBreadths/<@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110189:10
computeNodeBreadths@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110186:8
d3.sankey/sankey.layout@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110111:6
_buildVis@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110006:8
_render@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110053:8
WEBPACK_AMD_DEFINE_RESULT</</<@http://kibana:5601/bundles/kibana.bundle.js?v=9889:110060:10
$RootScopeProvider/this.$get http://kibana:5601/bundles/kibana.bundle.js?v=9889:110060:10$RootScopeProvider/this.$get</Scope.prototype.$digest@http://kibana:5601/bundles/commons.bundle.js?v=9889:42917:24
$RootScopeProvider/this.$get http://kibana:5601/bundles/commons.bundle.js?v=9889:42917:24$RootScopeProvider/this.$get</Scope.prototype.$apply@http://kibana:5601/bundles/commons.bundle.js?v=9889:43188:14
done@http://kibana:5601/bundles/commons.bundle.js?v=9889:37637:37
completeRequest@http://kibana:5601/bundles/commons.bundle.js?v=9889:37835:8
requestLoaded@http://kibana:5601/bundles/commons.bundle.js?v=9889:37776:10

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progresshttp://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
WEBPACK_AMD_DEFINE_RESULT</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25

Fatal Error

Error: [$rootScope:inprog] $digest already in progress http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
Version: 4.5.0
Build: 9889
Error: Error: [$rootScope:inprog] $digest already in progresshttp://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest (http://kibana:5601/bundles/commons.bundle.js?v=9889:27159)
WEBPACK_AMD_DEFINE_RESULT</window.onerror@http://kibana:5601/bundles/commons.bundle.js?v=9889:65457:25


—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
<https://github.com/chenryn/kbn_sankey_vis/issues/7>



Juan Ignacio Carniglia

@jackson-tim
Copy link
Author

The data returned isn't that much:

{
  "responses": [
    {
      "took": 6,
      "timed_out": false,
      "_shards": {
        "total": 5,
        "successful": 5,
        "failed": 0
      },
      "hits": {
        "total": 22906,
        "max_score": 0,
        "hits": [

        ]
      },
      "aggregations": {
        "2": {
          "doc_count_error_upper_bound": 0,
          "sum_other_doc_count": 0,
          "buckets": [
            {
              "key": 65000,
              "doc_count": 22815,
              "1": {
                "value": 3373055100
              },
              "3": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": [
                  {
                    "key": 3257,
                    "doc_count": 12624,
                    "1": {
                      "value": 3127229200
                    },
                    "4": {
                      "doc_count_error_upper_bound": -1,
                      "sum_other_doc_count": 7180,
                      "buckets": [
                        {
                          "key": 209,
                          "doc_count": 5435,
                          "1": {
                            "value": 2044542000
                          }
                        }
                      ]
                    }
                  },
                  {
                    "key": 6461,
                    "doc_count": 6156,
                    "1": {
                      "value": 199548900
                    },
                    "4": {
                      "doc_count_error_upper_bound": -1,
                      "sum_other_doc_count": 5382,
                      "buckets": [
                        {
                          "key": 15169,
                          "doc_count": 774,
                          "1": {
                            "value": 118467300
                          }
                        }
                      ]
                    }
                  },
                  {
                    "key": 4323,
                    "doc_count": 4033,
                    "1": {
                      "value": 46264200
                    },
                    "4": {
                      "doc_count_error_upper_bound": -1,
                      "sum_other_doc_count": 1067,
                      "buckets": [
                        {
                          "key": 19271,
                          "doc_count": 2965,
                          "1": {
                            "value": 26580800
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "key": 65100,
              "doc_count": 71,
              "1": {
                "value": 6676800
              },
              "3": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": [
                  {
                    "key": 3257,
                    "doc_count": 47,
                    "1": {
                      "value": 4610100
                    },
                    "4": {
                      "doc_count_error_upper_bound": 0,
                      "sum_other_doc_count": 6,
                      "buckets": [
                        {
                          "key": 31042,
                          "doc_count": 41,
                          "1": {
                            "value": 3898600
                          }
                        }
                      ]
                    }
                  },
                  {
                    "key": 6461,
                    "doc_count": 23,
                    "1": {
                      "value": 2061500
                    },
                    "4": {
                      "doc_count_error_upper_bound": 0,
                      "sum_other_doc_count": 5,
                      "buckets": [
                        {
                          "key": 7018,
                          "doc_count": 18,
                          "1": {
                            "value": 1836100
                          }
                        }
                      ]
                    }
                  },
                  {
                    "key": 4323,
                    "doc_count": 1,
                    "1": {
                      "value": 5200
                    },
                    "4": {
                      "doc_count_error_upper_bound": 0,
                      "sum_other_doc_count": 0,
                      "buckets": [
                        {
                          "key": 3356,
                          "doc_count": 1,
                          "1": {
                            "value": 5200
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "key": 0,
              "doc_count": 20,
              "1": {
                "value": 490400
              },
              "3": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": [
                  {
                    "key": 4323,
                    "doc_count": 19,
                    "1": {
                      "value": 482000
                    },
                    "4": {
                      "doc_count_error_upper_bound": 0,
                      "sum_other_doc_count": 5,
                      "buckets": [
                        {
                          "key": 4323,
                          "doc_count": 14,
                          "1": {
                            "value": 448000
                          }
                        }
                      ]
                    }
                  },
                  {
                    "key": 6461,
                    "doc_count": 1,
                    "1": {
                      "value": 8400
                    },
                    "4": {
                      "doc_count_error_upper_bound": 0,
                      "sum_other_doc_count": 0,
                      "buckets": [
                        {
                          "key": 12200,
                          "doc_count": 1,
                          "1": {
                            "value": 8400
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    }
  ]
}

@Latitude360
Copy link

Yes I am getting exactly the same issue. It does not depend on the data volume for sure as I tried to decrease or take a subset of data as well but still in no case able to go beyond 3 buckets with Term aggregation.

@pkunico
Copy link

pkunico commented Jul 14, 2016

I have met the same question, 3 buckets with 10 nodes will work fine,but 3buckets with 30+ nodes ,the chrome browser will hang . After debugging,I found it hang on the sankey plugin's layout function,I will dig in to find solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants