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

CHECK(allow_empty_handle || that != __null) failed #39

Open
LinusU opened this issue Oct 16, 2013 · 4 comments
Open

CHECK(allow_empty_handle || that != __null) failed #39

LinusU opened this issue Oct 16, 2013 · 4 comments

Comments

@LinusU
Copy link
Contributor

LinusU commented Oct 16, 2013

This seems to happen from time to time when playing. I think that the buffer underflow always happens right before.

[../deps/mpg123/src/output/coreaudio.c:81] warning: Didn't have any audio data in callback (buffer underflow)


#
# Fatal error in ../deps/v8/src/api.h, line 297
# CHECK(allow_empty_handle || that != __null) failed
#

[1]    665 abort      node .
@LinusU
Copy link
Contributor Author

LinusU commented Oct 23, 2013

No buffer underflow, the first line is some additional logging I compiled in.

0x100810bf0STATE_LOGGED_IN

#
# Fatal error in ../deps/v8/src/api.h, line 297
# CHECK(allow_empty_handle || that != __null) failed
#


Program received signal SIGABRT, Aborted.
0x00007fff8ecb4212 in __pthread_kill ()
(gdb) bt
#0  0x00007fff8ecb4212 in __pthread_kill ()
#1  0x00007fff8d682b24 in pthread_kill ()
#2  0x00007fff8d6c6f61 in abort ()
#3  0x000000010033b7cf in v8::internal::OS::Abort ()
#4  0x000000010016951c in V8_Fatal ()
#5  0x0000000100140cc5 in v8::Object::Set ()
#6  0x000000010210557c in read_delivered_music (handle=<value temporarily unavailable, due to optimizations>, status=<value temporarily unavailable, due to optimizations>) at ../src/player.cc:129
#7  0x000000010012f60c in uv__run_timers ()
#8  0x0000000100125f7e in uv_run ()
#9  0x000000010000c6e3 in node::Start ()
#10 0x00000001000039f4 in start ()
(gdb) 

My additional code in session.cc, line 456:

// TEMPORARY
printf("%p", session->pointer);
sp_connectionstate s = sp_session_connectionstate(session->pointer);
switch(s) {
  case SP_CONNECTION_STATE_LOGGED_OUT: printf("STATE_LOGGED_OUT"); break;
  case SP_CONNECTION_STATE_LOGGED_IN: printf("STATE_LOGGED_IN"); break;
  case SP_CONNECTION_STATE_DISCONNECTED: printf("STATE_DISCONNECTED"); break;
  case SP_CONNECTION_STATE_UNDEFINED: printf("STATE_UNDEFINED"); break;
  case SP_CONNECTION_STATE_OFFLINE: printf("STATE_OFFLINE"); break;
}

@LinusU
Copy link
Contributor Author

LinusU commented Oct 23, 2013

Hmm, this might have something to do with this. I'm on a flight with crappy wifi right now so haven't really had the time to check it out, pardon me if I'm pointing anyone in the wrong direction.

nodejs/node-v0.x-archive#5864

@daxxog
Copy link

daxxog commented Dec 9, 2014

I am encountering the same problem. Any other ideas on what is causing it?

@IainCole
Copy link
Contributor

See latest comment here #41

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

3 participants