sproutcore / build-tools

SproutCore Build Tools
12 stars 7 forks source link

New BT having strange error (endless loop)? #7

Closed mauritslamers closed 10 years ago

mauritslamers commented 10 years ago

The BT slowly get in a state that it is actually possible to run apps in the dev environment. (Installation instructions can be found at https://gist.github.com/mauritslamers/9998580)

I get a pretty weird error, which seems to be an endless loop, and I am not sure what to make from it...

SC.Set.SC.mixin.add combined.js:8221
SC.Observable._notifyPropertyObservers combined.js:2683
SC.Observable.propertyDidChange combined.js:2041
invoke_superclass_method combined.js:8722
SC.View.reopen.propertyDidChange combined.js:11153
SC.Observable.set combined.js:1876
(anonymous function) combined.js:15069
(anonymous function) combined.js:8902
SC.Pane.reopen._notifyDidAttach combined.js:15238
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722
SC.Pane.reopen._notifyDidAttach combined.js:15254
invoke_superclass_method combined.js:8722

Anonymous function calls are :

(combined.js line 15069 is this.set line)

 recomputeDependentProperties: function (original) {
    this.set('currentWindowSize', this.rootResponder.computeWindowSize());
    original();
  }.enhance()

(combined.js line 8902 is return enhancement)

SC._enhance = function (originalFunction, enhancement) {
  return function () {
    var args = Array.prototype.slice.call(arguments, 0),
        self = this;

    args.unshift(function () { return originalFunction.apply(self, arguments); });
    return enhancement.apply(this, args);
  };
};
dcporter commented 10 years ago

Looks like some stuff from browser-side core_foundation is causing you trouble over in node. That's not a surprise. This speaks to my belief that we'll have to refactor core_foundation to separate the browser stuff from the generic javascript environment stuff.

mauritslamers commented 10 years ago

I think you misunderstood what I meant here. This is in the served version of SC, not inside the nodejs environment.

mauritslamers commented 10 years ago

Could this be related with https://github.com/sproutcore/sproutcore/pull/1201?

dcporter commented 10 years ago

Give it a pull and see. I don't think so though. Could it be a problem with sc_super?

mauritslamers commented 10 years ago

The cause of the problem turns out to be a very nasty side effect of the sorting as done in Abbot. Because core_foundation/panes/main.js doesn't come last in the list of files of core_foundation, it causes the error described here. Will close this issue and take the discussion about the sorting to issue #9