Skip to content

Instantly share code, notes, and snippets.

@pccowboy
Last active December 15, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pccowboy/5267567 to your computer and use it in GitHub Desktop.
Save pccowboy/5267567 to your computer and use it in GitHub Desktop.
I get this running a scraper (using node.io) on the 2nd site I attempt to scrape. Happens on node v0.10.1 and v0.10.2.
#
# Fatal error in ../deps/v8/src/api.h, line 297
# CHECK(allow_empty_handle || that != __null) failed
#
==== Stack trace ============================================
Security context: 0x4b33462d <JS Object>#0#
1: getListeners [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level2/events.js:169] (this=0x3827c059 <JS Function>#1#,target=0x37daed39 <JS Global Object>#2#,type=0x38b9082d <String[15]: DOMNodeInserted>,capturing=0x4b3080b1 <true>)
2: dispatch [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level2/events.js:192] (this=0x3827c059 <JS Function>#1#,event=0x3ff0b0c1 <JS Object>#3#,iterator=0x3ff0b191 <JS Function iterator>#4#,capturing=0x4b3080b1 <true>)
3: dispatchEvent [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level2/events.js:283] (this=0x3ff0a40d <a Text>#5#,event=0x3ff0b0c1 <JS Object>#3#)
4: /* anonymous */ [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level2/events.js:320] (this=0x48d40475 <JS Object>#6#,_super=0x382c025d <JS Function>#7#,args=0x3ff0a641 <an Arguments>#8#,newChild=0x3ff0a40d <a Text>#5#,refChild=0x4b308081 <null>)
6: insertBefore [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/utils.js:21] (this=0x48d40475 <JS Object>#6#)
7: arguments adaptor frame: 2->0
8: appendChild [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level1/core.js:~636] (this=0x48d40475 <JS Object>#6#,newChild=0x3ff0a40d <a Text>#5#)
9: insert_text [/home/dswift/node_modules/html5/lib/html5/treebuilder.js:123] (this=0x37dec4dd <a TreeBuilder>#9#,data=0x3ff0a0fd <String[14]\: \r\n >,parent=0x48d40475 <JS Object>#6#)
10: arguments adaptor frame: 1->2
11: processSpaceCharacters [/home/dswift/node_modules/html5/lib/html5/parser/in_body_phase.js:~219] (this=0xb7e662f1 <an InBodyPhase>#10#,data=0x3ff0a0fd <String[14]\: \r\n >)
12: do_token [/home/dswift/node_modules/html5/lib/html5/parser.js:~85] (this=0x37dec329 <an HTML5Parser>#11#,token=0x3ff09acd <an Object>#12#)
13: /* anonymous */ [/home/dswift/node_modules/html5/lib/html5/parser.js:~120] (this=0xb7eb124d <an HTML5Tokenizer>#13#,token=0x3ff09acd <an Object>#12#)
15: emit [events.js:117] (this=0xb7eb124d <an HTML5Tokenizer>#13#,type=0x38b9c219 <String[5]: token>)
16: arguments adaptor frame: 2->1
17: emitToken [/home/dswift/node_modules/html5/lib/html5/tokenizer.js:~89] (this=0xb7eb124d <an HTML5Tokenizer>#13#,tok=0x3ff09acd <an Object>#12#)
21: /* anonymous */(aka /* anonymous */) [native v8natives.js:1597] (this=0x4b308091 <undefined>)
22: arguments adaptor frame: 1->0
23: data_state [/home/dswift/node_modules/html5/lib/html5/tokenizer.js:59] (this=0x4b3346d5 <JS Global Object>#14#,buffer=0xb7eaed15 <a Buffer>#15#)
24: /* anonymous */ [/home/dswift/node_modules/html5/lib/html5/tokenizer.js:917] (this=0xb7eaed45 <an EventEmitter>#16#,data=0x4224b0ed <Very long string[22554]>#17#)
25: emit [events.js:95] (this=0xb7eaed45 <an EventEmitter>#16#,type=0x5e214265 <String[4]: data>)
26: arguments adaptor frame: 2->1
27: pump [/home/dswift/node_modules/html5/lib/html5/tokenizer.js:908] (this=0xb7eb124d <an HTML5Tokenizer>#13#)
28: tokenize [/home/dswift/node_modules/html5/lib/html5/tokenizer.js:86] (this=0xb7eb124d <an HTML5Tokenizer>#13#)
29: parse [/home/dswift/node_modules/html5/lib/html5/parser.js:48] (this=0xb7eaed8d <an HTML5Parser>#18#,source=0x4224b0ed <Very long string[22554]>#17#)
30: appendHtmlToElement [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/browser/htmltodom.js:91] (this=0x37de9f71 <a HtmlToDom>#19#,html=0x4224b0ed <Very long string[22554]>#17#,element=0xb7eaed99 <an HTMLDocument>#20#)
31: /* anonymous */ [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/browser/index.js:528] (this=0xb7eaed99 <an HTMLDocument>#20#,html=0x4224b0ed <Very long string[22554]>#17#)
35: write [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom/level2/html.js:433] (this=0xb7eaed99 <an HTMLDocument>#20#,text=0x4224b0ed <Very long string[22554]>#17#)
36: jsdom [/home/dswift/node_modules/node.io/node_modules/jsdom/lib/jsdom.js:73] (this=0x382e1075 <an Object>#21#,html=0x4224b0ed <Very long string[22554]>#17#,level=0x382bbed9 <an Object>#22#,options=0xb7eaedf9 <an Object>#23#)
37: parseHtml [/home/dswift/node_modules/node.io/lib/node.io/dom.js:61] (this=0x48da8681 <JS Object>#24#,data=0x4224b0ed <Very long string[22554]>#17#,callback=0x48da86b5 <JS Function>#25#,response=0xb7eaee65 <an IncomingMessage>#26#)
38: /* anonymous */ [/home/dswift/node_modules/node.io/lib/node.io/request.js:109] (this=0x48da8681 <JS Object>#24#,err=0x4b308081 <null>,data=0x4224b0ed <Very long string[22554]>#17#,headers=0xb7eaeecd <an Object>#27#,response=0xb7eaee65 <an IncomingMessage>#26#)
40: /* anonymous */ [/home/dswift/node_modules/node.io/lib/node.io/request.js:212] (this=0x4b3346d5 <JS Global Object>#14#)
41: arguments adaptor frame: 4->0
42: /* anonymous */ [/home/dswift/node_modules/node.io/lib/node.io/request.js:339] (this=0x4b3346d5 <JS Global Object>#14#,err=0x4b308081 <null>,data=0x4224b0ed <Very long string[22554]>#17#)
43: _callback [/home/dswift/node_modules/node.io/lib/node.io/request.js:349] (this=0x48da879d <a Request>#28#,err=0x4b308081 <null>,response=0xb7eaee65 <an IncomingMessage>#26#,body=0x4224b0ed <Very long string[22554]>#17#)
45: callback [/home/dswift/node_modules/node.io/node_modules/request/main.js:120] (this=0x48da879d <a Request>#28#)
46: arguments adaptor frame: 3->0
50: /* anonymous */ [native v8natives.js:1607] (this=0x48da879d <a Request>#28#)
51: arguments adaptor frame: 2->0
52: emit [events.js:98] (this=0x48da879d <a Request>#28#,type=0x5e229495 <String[8]: complete>)
53: arguments adaptor frame: 3->1
54: /* anonymous */ [/home/dswift/node_modules/node.io/node_modules/request/main.js:522] (this=0x48da879d <a Request>#28#)
55: arguments adaptor frame: 1->0
56: emit [events.js:95] (this=0x48da879d <a Request>#28#,type=0x5e210b4d <String[3]: end>)
57: arguments adaptor frame: 2->1
58: /* anonymous */ [/home/dswift/node_modules/node.io/node_modules/request/main.js:484] (this=0xb7eaee65 <an IncomingMessage>#26#,chunk=0x4b308091 <undefined>)
59: arguments adaptor frame: 0->1
61: emit [events.js:117] (this=0xb7eaee65 <an IncomingMessage>#26#,type=0x5e210b4d <String[3]: end>)
62: /* anonymous */ [_stream_readable.js:883] (this=0x4b3346d5 <JS Global Object>#14#)
63: _tickCallback(aka _tickDomainCallback) [node.js:459] (this=0x3c11066d <a process>#29#)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment