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

Circular dependency #621

Closed
Jeppesen-io opened this issue Oct 28, 2013 · 22 comments
Closed

Circular dependency #621

Jeppesen-io opened this issue Oct 28, 2013 · 22 comments

Comments

@Jeppesen-io
Copy link

After updating to the latest release I get a 'Circular dependency' but only sometimes, mostly on first load. It feels like a race condition. It will load my dastboard but no log data from elastic search.

I get the problem in Chrome and Firefox in Windows. Both are latest version.

Chrome:
Error: Circular dependency:
at Error ()
at c (http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:8520)
at d (http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:8748)
at Object.e as instantiate
at http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:21835
at http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:17184
at f (http://s3.int/logging/kibana/app/app.js?r=942fd2d:6:28560)
at n (http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:17049)
at f (http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:15004)
at http://s3.int/logging/kibana/app/app.js?r=942fd2d:7:14570
Firefox:
[09:51:20.036] "Error: Circular dependency:
c
@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
d@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
e@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
n/<@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
f@http://s3.int/logging/kibana/app/app.js?r=942fd2d:6
n@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
f@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
z/<@http://s3.int/logging/kibana/app/app.js?r=942fd2d:7
g@http://s3.int/logging/kibana/app/app.js?r=942fd2d:20
.link/</</<@http://s3.int/logging/kibana/app/app.js?r=942fd2d:20
a.require/</<@http://s3.int/logging/kibana/app/app.js?r=942fd2d:21
f.prototype.$eval@http://s3.int/logging/kibana/app/app.js?r=942fd2d:8
f.prototype.$apply@http://s3.int/logging/kibana/app/app.js?r=942fd2d:8
a.require/<@http://s3.int/logging/kibana/app/app.js?r=942fd2d:21
newContext/u.execCb@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.check@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.enable/</<@http://s3.int/logging/kibana/vendor/require/require.js:4
bind/<@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.emit/<@http://s3.int/logging/kibana/vendor/require/require.js:4
each@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.emit@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.check@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.enable@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/t.prototype.init@http://s3.int/logging/kibana/vendor/require/require.js:4
o@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/u.completeLoad@http://s3.int/logging/kibana/vendor/require/require.js:4
newContext/u.onScriptLoad@http://s3.int/logging/kibana/vendor/require/require.js:4
"

@rashidkpc
Copy link
Contributor

Try clearing your browser cache and reloading

@Jeppesen-io
Copy link
Author

I've done that a few times in Firefox and Chrome, no help.

@rashidkpc
Copy link
Contributor

Instead of running from the built distribution, can you run from src/ in master and see if it still happens?

@Jeppesen-io
Copy link
Author

So far using src/ in master seems to resolve my issues although it seems to load slower.

@rashidkpc
Copy link
Contributor

Yeah, certainly not a solution, I was just curious if the issue occurred there in hopes we could get some better debug output

@doxavore
Copy link

doxavore commented Nov 6, 2013

I get this same error in Chrome on Linux, running 3.0.0milestone4 not embedded. For me, it seems to be random, and refreshing the page (sometimes several times) resolves it - almost like there's some indeterminate load order issue popping up randomly.

@danburke
Copy link

danburke commented Nov 6, 2013

I also see this error in Chrome on Mac running 3.0.0milestone4.
It's also random

@rashidkpc
Copy link
Contributor

Can someone export a dashboard the has been known to cause this? Its possible it is related to some specific panel

@danburke
Copy link

danburke commented Nov 7, 2013

I have a dashboard export from when this occured, I'd prefer not to attach it here as it includes proprietary information.
The panels referenced are:

% cat Default-1383827648733.json | jq '.rows[].panels[].type'                              
"histogram"
"terms"
"query"
"derivequeries"
"table"

@rashidkpc
Copy link
Contributor

From #669

Sometimes, js errors appears in console on load. It can be reproduced at http://demo.kibana.org/#/dashboard and at my local kibana in Chrome and Firefox (also, with all extensions disabled).
image

rashidkpc pushed a commit to rashidkpc/kibana that referenced this issue Dec 3, 2013
bpezan pushed a commit to bpezan/kibana that referenced this issue Dec 4, 2013
* master:
  Moved doc task to the end of the default task chain
  removed y_as_bytes, replaced with y_format
  Remove console.log
  Closes elastic#538. Closes elastic#722
  Potential fix for elastic#621
  More small table performance improvements
  Improve performance in the table. Re elastic#719 and elastic#732
  Remove idQueue from filter and query services in dashboards
  Eliminate idQueue property from filterSrv and querySrv. Replace with binary search for smallest id. Closes elastic#730. Closes elastic#739
  Skeleton API docs
  Doc updates
  Added scratchy tasks and config.js docs
  Bytes should not be default
  Fixing unsafe html binding
  fixed numeric terms in topN query
  do not auto-enable saved filters
@Jeppesen-io
Copy link
Author

The latest commit seems to have fixed my issue. I'll post if I see it again.

@rashidkpc
Copy link
Contributor

Thanks, I'm going to leave this open for awhile because I was never able to replicate it. Feel free to update if it stays gone

@markwalkom
Copy link
Contributor

Just wanted to point out we ran into this and running from current src fixed it.

@FestivalBobcats
Copy link

Yeah, I can confirm running from latest /src fixed it.

Using the latest .zip download, I ran into the circular dependency issue in both Chrome and Safari. It seems to trigger once I've hit the default.json dashboard, clicked on one of the sample dashes, closed the tab, and reopened default.json (or at that point, any route). However, it would reset after clearing browser cache.

@rashidkpc
Copy link
Contributor

So you're still seeing this in the current built kibana-latest.tar.gz? Can you get a copy/paste or a screenshot?

@FestivalBobcats
Copy link

Very odd... it seems I can no longer reproduce the issue. Did you update the latest build? I was using the .zip (not the .tar.gz) just yesterday and it was still breaking. Like I said though, it didn't break immediately, just once I had moved from default.json into another dash, and then tried opening index.html again.

Not sure if it matters, but I'm running Kibana as a site plugin in Elasticsearch. Just downloading/extracting into $ES_HOME/plugins/kibana/_site.

@rashidkpc
Copy link
Contributor

I did update the build, though not with anything that should've influenced this. Reproducibility has been a large blocker in fixing this one. I've seen it once, and then never again :-/

@FestivalBobcats
Copy link

Heh, diagnosing JS problems is a tough job for sure. It seemed to be related to browser cache, but aside from that I have absolutely no clue. All is good now, though!

@rashidkpc
Copy link
Contributor

Please let me know if the behavior reoccurs

@rashidkpc
Copy link
Contributor

Going to close this again since no one can reproduce.

@rafaelmagu
Copy link

Just so I'm clear: milestone 4 presents the problem but src/ doesn't, right?

@rashidkpc
Copy link
Contributor

Correct, milestone 5 should be ok too

w33ble pushed a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* feat: add serialize/deserialize capabilities

* fix: send types to serialize provider

* feat: add create method to types and pass types in cast and interpret

* fix: re-add type validation

* fix: no need to import datatable in pointseries
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

8 participants
@doxavore @danburke @rafaelmagu @FestivalBobcats @rashidkpc @markwalkom @Jeppesen-io and others