You were right.  context was empty.  But I created it right before 
accessing it:

  // Create context
  v8::Local<v8::Context> context = v8::Context::New(isolate, NULL, global);
  // Set context data
  context->SetAlignedPointerInEmbedderData(0,(void*)hStaticEnv.get());

So what am I missing?

On Thursday, March 13, 2014 11:17:33 AM UTC-7, Ben Noordhuis wrote:
>
> On Thu, Mar 13, 2014 at 6:55 PM, Jane Chen <jxch...@gmail.com<javascript:>> 
> wrote: 
> > I'm getting intermittent abortion when calling 
> > context->SetAlignedPointerInEmbedderData(): 
> > 
> > # 
> > # Fatal error in ../src/api.h, line 401 
> > # CHECK(allow_empty_handle || that != __null) failed 
> > # 
> > 
> > ==== C stack trace =============================== 
> > 
> >  1: V8_Fatal 
> >  2: v8::Utils::OpenHandle(v8::Context const*, bool) 
> >  3: ?? 
> >  4: v8::Context::SetAlignedPointerInEmbedderData(int, void*) 
> >  5: ?? 
> > 
> > What does the above failure mean and how do I avoid it? 
> > 
> > Thanks! 
>
> Looks like the context is empty, i.e. context->IsEmpty() == true. 
>
> When you run into things like this in the future, hook up gdb and 
> select the appropriate stack frame.  In this case, you would run 
> `frame 4; print this` - I'll bet good money it prints 0x0. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to