intermittent: Error: Called getGlobal() after dispose(). #538

Closed
michaelkirk opened this Issue Dec 11, 2012 · 3 comments

Comments

Projects
None yet
2 participants

When running my whole test suite a couple of my tests get an [error]. When I run the tests individually, they pass without this error. Also, as I add tests, the failing tests switch.

So, going out on a limb, it's behaving like some kind deterministic memory mismanagement.

notes:
I'm occasionally running multiple instances of zombie to simulate multiple users interacting.
zombie: zombie@2.0.0-alpha9
running on debian wheezy

[error]

(/home/mkirk/src/weiqi/node_modules/zombie/node_modules/jsdom/node_modules/contextify/lib/contextify.js:22:19)
  at /home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:17:32
  at History.assign (/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:181:17)
  at Object.location (/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:130:24)
  at Browser.visit (/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/browser.js:467:28)
  at Context.<anonymous> (/home/mkirk/src/weiqi/spec/acceptance/board_features.js:106:10)
  at Test.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:187:15)
  at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:307:10)
  at /usr/local/lib/node_modules/mocha/lib/runner.js:353:12
  at next (/usr/local/lib/node_modules/mocha/lib/runner.js:235:14)
  at /usr/local/lib/node_modules/mocha/lib/runner.js:244:7
  at next (/usr/local/lib/node_modules/mocha/lib/runner.js:192:23)
  at Array.0 (/usr/local/lib/node_modules/mocha/lib/runner.js:212:5)
  at EventEmitter._tickCallback (node.js:192:40)
Owner

domenic commented Dec 11, 2012

I don’t know much about Zombie, but it looks to me like this is Contextify related. Is there a way to verify that your jsdom installation has Contextify installed? What version of jsdom is even included in this Zombie thing?

I had the same thought - zombie's jsdom doesn't install contextify by
default. So I've tried it with and without contextify, with the same
results.

grep version
node_modules/zombie/node_modules/jsdom/node_modules/contextify/package.json
"version": "0.1.3"

grep version node_modules/zombie/node_modules/jsdom/package.json

"version": "0.2.19",

On Mon, Dec 10, 2012 at 10:40 PM, Domenic Denicola <notifications@github.com

wrote:

I don’t know much about Zombie, but it looks to me like this is Contextify
related. Is there a way to verify that your jsdom installation has
Contextify installed? What version of jsdom is even included in this Zombie
thing?

From: michaelkirk [mailto:notifications@github.com]
Sent: Tuesday, December 11, 2012 01:36
To: tmpvar/jsdom
Subject: [jsdom] intermittent: Error: Called getGlobal() after dispose().
(#538)

When running my whole test suite a couple of my tests get an [error]. When
I run the tests individually, they pass without this error. Also, as I add
tests, the failing tests switch.

So, going out on a limb, it's behaving like some kind deterministic memory
mismanagement.

notes:
I'm occasionally running multiple instances of zombie to simulate multiple
users interacting.

zombie: zombie@2.0.0-alpha9mailto:zombie@2.0.0-alpha9

error</home/mkirk/src/weiqi/node_modules/zombie/node_modules/jsdom/node_modules/contextify/lib/contextify.js:22:19>

at /home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:17:32
at History.assign
(/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:181:17)
at Object.location
(/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/history.js:130:24)
at Browser.visit
(/home/mkirk/src/weiqi/node_modules/zombie/lib/zombie/browser.js:467:28)
at Context.
(/home/mkirk/src/weiqi/spec/acceptance/board_features.js:106:10)
at Test.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:187:15)
at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:307:10)
at /usr/local/lib/node_modules/mocha/lib/runner.js:353:12
at next (/usr/local/lib/node_modules/mocha/lib/runner.js:235:14)
at /usr/local/lib/node_modules/mocha/lib/runner.js:244:7
at next (/usr/local/lib/node_modules/mocha/lib/runner.js:192:23)
at Array.0 (/usr/local/lib/node_modules/mocha/lib/runner.js:212:5)
at EventEmitter._tickCallback (node.js:192:40)


Reply to this email directly or view it on GitHub<
https://github.com/tmpvar/jsdom/issues/538>.


Reply to this email directly or view it on GitHubhttps://github.com/tmpvar/jsdom/issues/538#issuecomment-11232945.

Owner

domenic commented Aug 25, 2013

Let us know if this is still happening with the latest jsdom. zombie should never be installing a version without contextify, since jsdom is known-broken in that case.

@domenic domenic closed this Aug 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment