getbridge / bridge-objc

Bridge for Objective C
MIT License
3 stars 1 forks source link

BridgeSystemService hook_channel_handler:::]: unrecognized selector sent to instance #4

Closed loretoparisi closed 12 years ago

loretoparisi commented 12 years ago

2012-07-06 00:52:39.435 musiXmatch[29903:607] Starting TCP connection cloud7.getbridge.com , 8090 2012-07-06 00:52:39.914 musiXmatch[29903:607] Beginning handshake 2012-07-06 00:52:39.916 musiXmatch[29903:607] { command = CONNECT; data = { "api_key" = xxxxxxxxxxx; session = ( "", "" ); }; } 2012-07-06 00:52:39.917 musiXmatch[29903:607] sending: {"command":"CONNECT","data":{"api_key":"xxxxxxxxxxx","session":[null,null]}}

012-07-06 00:52:40.188 musiXmatch[29903:607] Connect length: 33 2012-07-06 00:52:40.191 musiXmatch[29903:607] client_id received: mchmkjeklndjhgfk 2012-07-06 00:52:40.193 musiXmatch[29903:607] sending: {"command":"JOINCHANNEL","data":{"name":"musixmatch-lyrics-ch","handler":{"ref":["client","mchmkjeklndjhgfk","fzxc0WG0lV"],"operations":["message"]}}} 2012-07-06 00:52:40.194 musiXmatch[29903:607] Handshake complete 2012-07-06 00:52:40.458 musiXmatch[29903:607] Body length: 219 2012-07-06 00:52:40.461 musiXmatch[29903:607] received: {"source":"mchmkjeklndjhgfk","destination":{"ref":["client","mchmkjeklndjhgfk","system","hookChannelHandler"]},"args":["musixmatch-lyrics-ch",{"ref":["client","mchmkjeklndjhgfk","fzxc0WG0lV"],"operations":["message"]}]} 2012-07-06 00:52:40.465 musiXmatch[29903:607] -[BridgeSystemService hook_channel_handler:::]: unrecognized selector sent to instance 0x8561a0 2012-07-06 00:52:40.628 musiXmatch[29903:607] Logging error (iPhone OS|4.3.5): -[BridgeSystemService hook_channel_handler:::]: unrecognized selector sent to instance 0x8561a0 ( 0 CoreFoundation 0x361c764f exceptionPreprocess + 114 1 libobjc.A.dylib 0x33420c5d objc_exception_throw + 24 2 CoreFoundation 0x361cb1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102 3 CoreFoundation 0x361ca649 __forwarding + 508 4 CoreFoundation 0x36141180 _CF_forwarding_prep0 + 48 5 musiXmatch 0x0016d871 -[BridgeSystemService hookChannelHandler::] + 40 6 CoreFoundation 0x361ca7a4 invoking + 68 7 CoreFoundation 0x3614243d -[NSInvocation invoke] + 108 8 musiXmatch 0x0016bc37 -[BridgeDispatcher executeUsingReference:withArguments:] + 474 9 musiXmatch 0x0016b84b -[BridgeConnection onMessage:fromSocket:] + 314 10 musiXmatch 0x0016e03d -[BridgeTCPSocket socket:didReadData:withTag:] + 424 11 musiXmatch 0x0017cf4f __37-[GCDAsyncSocket completeCurrentRead]_block_invoke_0 + 94 12 libdispatch.dylib 0x330468e7 _dispatch_call_block_and_release + 10 13 libdispatch.dylib 0x330421f5 _dispatch_main_queue_callback_4CF$VARIANT$up + 312 14 CoreFoundation 0x361a193b __CFRunLoopRun + 1334 15 CoreFoundation 0x36131ec3 CFRunLoopRunSpecific + 230 16 CoreFoundation 0x36131dcb CFRunLoopRunInMode + 58 17 GraphicsServices 0x358eb41f GSEventRunModal + 114 18 GraphicsServices 0x358eb4cb GSEventRun + 62 19 UIKit 0x34fdbd69 -[UIApplication _run] + 404 20 UIKit 0x34fd9807 UIApplicationMain + 670 21 musiXmatch 0x0006dd35 main + 60 22 musiXmatch 0x00003638 start + 40 ) (lldb)

loretoparisi commented 12 years ago

So I found out that

in the file

BridgeSystemService.m

is not defined the hook inside the method

-(void) hookChannelHandler:(NSString)channelName :(BridgeRemoteObject)handler { [self hook_channel_handler:channelName :handler :nil]; }

sridatta commented 12 years ago

I've pushed a fix to the repo just now. The typo has been fixed. If you are using the XCode project directly, you should pull. --Sridatta

On Thu, Jul 5, 2012 at 4:16 PM, Loreto Parisi < reply@reply.github.com

wrote:

2012-07-06 00:52:39.435 musiXmatch[29903:607] Starting TCP connection cloud7.getbridge.com , 8090 2012-07-06 00:52:39.914 musiXmatch[29903:607] Beginning handshake 2012-07-06 00:52:39.916 musiXmatch[29903:607] { command = CONNECT; data = { "api_key" = beef18668e87c36d; session = ( "", "" ); }; } 2012-07-06 00:52:39.917 musiXmatch[29903:607] sending: {"command":"CONNECT","data":{"api_key":"beef18668e87c36d","session":[null,null]}}

012-07-06 00:52:40.188 musiXmatch[29903:607] Connect length: 33 2012-07-06 00:52:40.191 musiXmatch[29903:607] client_id received: mchmkjeklndjhgfk 2012-07-06 00:52:40.193 musiXmatch[29903:607] sending: {"command":"JOINCHANNEL","data":{"name":"musixmatch-lyrics-ch","handler":{"ref":["client","mchmkjeklndjhgfk","fzxc0WG0lV"],"operations":["message"]}}} 2012-07-06 00:52:40.194 musiXmatch[29903:607] Handshake complete 2012-07-06 00:52:40.458 musiXmatch[29903:607] Body length: 219 2012-07-06 00:52:40.461 musiXmatch[29903:607] received: {"source":"mchmkjeklndjhgfk","destination":{"ref":["client","mchmkjeklndjhgfk","system","hookChannelHandler"]},"args":["musixmatch-lyrics-ch",{"ref":["client","mchmkjeklndjhgfk","fzxc0WG0lV"],"operations":["message"]}]} 2012-07-06 00:52:40.465 musiXmatch[29903:607] -[BridgeSystemService hook_channel_handler:::]: unrecognized selector sent to instance 0x8561a0 2012-07-06 00:52:40.628 musiXmatch[29903:607] Logging error (iPhone OS|4.3.5): -[BridgeSystemService hook_channel_handler:::]: unrecognized selector sent to instance 0x8561a0 ( 0 CoreFoundation 0x361c764f exceptionPreprocess + 114 1 libobjc.A.dylib 0x33420c5d objc_exception_throw + 24 2 CoreFoundation 0x361cb1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102 3 CoreFoundation 0x361ca649 __forwarding + 508 4 CoreFoundation 0x36141180 _CF_forwarding_prep0 + 48 5 musiXmatch 0x0016d871 -[BridgeSystemService hookChannelHandler::] + 40 6 CoreFoundation 0x361ca7a4 invoking + 68 7 CoreFoundation 0x3614243d -[NSInvocation invoke] + 108 8 musiXmatch 0x0016bc37 -[BridgeDispatcher executeUsingReference:withArguments:] + 474 9 musiXmatch 0x0016b84b -[BridgeConnection onMessage:fromSocket:] + 314 10 musiXmatch 0x0016e03d -[BridgeTCPSocket socket:didReadData:withTag:] + 424 11 musiXmatch 0x0017cf4f __37-[GCDAsyncSocket completeCurrentRead]_block_invoke_0 + 94 12 libdispatch.dylib 0x330468e7 _dispatch_call_block_and_release + 10 13 libdispatch.dylib 0x330421f5 _dispatch_main_queue_callback_4CF$VARIANT$up + 312 14 CoreFoundation 0x361a193b __CFRunLoopRun

  • 1334 15 CoreFoundation 0x36131ec3 CFRunLoopRunSpecific + 230 16 CoreFoundation 0x36131dcb CFRunLoopRunInMode + 58 17 GraphicsServices 0x358eb41f GSEventRunModal
  • 114 18 GraphicsServices 0x358eb4cb GSEventRun + 62 19 UIKit 0x34fdbd69 -[UIApplication _run] + 404 20 UIKit 0x34fd9807 UIApplicationMain + 670 21 musiXmatch 0x0006dd35 main + 60 22 musiXmatch 0x00003638 start + 40 ) (lldb)

Reply to this email directly or view it on GitHub: https://github.com/getbridge/bridge-objc/issues/4

loretoparisi commented 12 years ago

Awesome, now there is just a small bug on JavaScript client SDK (I posted on the other repo), but it's working every two calls.