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

Python quit unexpectedly while using the spytify.so plug-in #8

Closed
paulsturgess opened this issue Jun 9, 2010 · 5 comments
Closed

Comments

@paulsturgess
Copy link

So I'm just trying to send some basic commands to Mopidy on the command line. I'm using ruby as that's what I know & is the language my MPD client is built in.

~$ irb
>> s =TCPSocket.new("localhost", 6600)
=> #<TCPSocket:0x100e76c>
>> s.gets
=> "OK MPD 0.16.0\n"
>> s.puts("addid \"spotify:track:6Gq52E0FY2RV6XKh1hBIE0\"")
=> nil
>> s.gets

As soon as I run s.gets a dialogue box pops up saying: "Python quit unexpectedly while using the spytify.so plug-in "

Here's some of the output...

Process:         Python [8934]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  Python [8932]

PlugIn Path:       /Library/Python/2.6/site-packages/spytify.so
PlugIn Identifier: spytify.so
PlugIn Version:    ??? (???)

Date/Time:       2010-06-09 20:48:18.434 +0100
OS Version:      Mac OS X 10.6.3 (10D578)
Report Version:  6

Interval Since Last Report:          21489 sec
Crashes Since Last Report:           17
Per-App Crashes Since Last Report:   17
Anonymous UUID:                      591AB590-E290-423B-8222-F842054D1BFB

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
__abort() called

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib               0x94f1e132 __kill + 10
1   libSystem.B.dylib               0x94f1e124 kill$UNIX2003 + 32
2   libSystem.B.dylib               0x94fb08e5 raise + 26
3   libSystem.B.dylib               0x94fc6931 __abort + 124
4   libSystem.B.dylib               0x94fa9674 release_file_streams_for_task + 0
5   spytify.so                      0x007cc6f2 __pyx_pf_7spytify_7Spytify_lookup + 4534 (spytify.c:8179)
6   org.python.python               0x00096206 PyEval_EvalFrameEx + 15995
7   org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
8   org.python.python               0x00097f74 PyEval_EvalCodeEx + 1720
9   org.python.python               0x00039d9f PyClassMethod_New + 1714
10  org.python.python               0x000176e0 PyObject_Call + 101
11  org.python.python               0x00097843 PyEval_EvalFrameEx + 21688
12  org.python.python               0x00097f74 PyEval_EvalCodeEx + 1720
13  org.python.python               0x000965a1 PyEval_EvalFrameEx + 16918
14  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
15  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
16  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
17  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
18  org.python.python               0x00097f74 PyEval_EvalCodeEx + 1720
19  org.python.python               0x00039e0c PyClassMethod_New + 1823
20  org.python.python               0x000176e0 PyObject_Call + 101
21  org.python.python               0x0002710d PyClass_New + 1603
22  org.python.python               0x000176e0 PyObject_Call + 101
23  org.python.python               0x0005ed8a _PyType_Lookup + 5617
24  org.python.python               0x00060bc1 PyType_GenericAlloc + 3133
25  org.python.python               0x000176e0 PyObject_Call + 101
26  org.python.python               0x00097812 PyEval_EvalFrameEx + 21639
27  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
28  org.python.python               0x000964e5 PyEval_EvalFrameEx + 16730
29  org.python.python               0x00097f74 PyEval_EvalCodeEx + 1720
30  org.python.python               0x00098019 PyEval_EvalCode + 87
31  org.python.python               0x000af0af Py_CompileString + 111
32  org.python.python               0x000af15b PyRun_FileExFlags + 139
33  org.python.python               0x000b0e7e PyRun_SimpleFileExFlags + 814
34  org.python.python               0x000be15c Py_Main + 3074
35  org.python.python.app           0x00001eb5 start + 53

Thread 1:
0   libSystem.B.dylib               0x94efa572 recvfrom$UNIX2003 + 10
1   libSystem.B.dylib               0x94f1a383 recv$UNIX2003 + 54
2   libdespotify.0.dylib            0x0109ee7e block_read + 60
3   libdespotify.0.dylib            0x0109bca1 packet_read + 42
4   libdespotify.0.dylib            0x0109eff8 despotify_thread + 46
5   libSystem.B.dylib               0x94eeaa19 _pthread_start + 345
6   libSystem.B.dylib               0x94eea89e thread_start + 34

Thread 2:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib               0x94ee3b42 kevent + 10
1   libSystem.B.dylib               0x94ee425c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib               0x94ee3719 _dispatch_queue_invoke + 163
3   libSystem.B.dylib               0x94ee34be _dispatch_worker_thread2 + 240
4   libSystem.B.dylib               0x94ee2f41 _pthread_wqthread + 390
5   libSystem.B.dylib               0x94ee2d86 start_wqthread + 30

Thread 3:
0   libSystem.B.dylib               0x94ebd2fa mach_msg_trap + 10
1   libSystem.B.dylib               0x94ebda67 mach_msg + 68
2   ....audio_hijack_server.hermes  0x014159b2 ah_serv_loop + 132
3   libSystem.B.dylib               0x94eeaa19 _pthread_start + 345
4   libSystem.B.dylib               0x94eea89e thread_start + 34

Thread 4:
0   libSystem.B.dylib               0x94eeb262 __semwait_signal + 10
1   libSystem.B.dylib               0x94eeaf1e _pthread_cond_wait + 1191
2   libSystem.B.dylib               0x94eecbb8 pthread_cond_wait$UNIX2003 + 73
3   spytify.so                      0x007c1379 thread_loop + 133 (audio_thread.c:31)
4   libSystem.B.dylib               0x94eeaa19 _pthread_start + 345
5   libSystem.B.dylib               0x94eea89e thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x94fc68c1  ecx: 0xbfffcc8c  edx: 0x94f1e132
  edi: 0x000f8c90  esi: 0x0041d848  ebp: 0xbfffcca8  esp: 0xbfffcc8c
   ss: 0x0000001f  efl: 0x00000286  eip: 0x94f1e132   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0xffe2a5c8
@paulsturgess
Copy link
Author

Incidently the find command appears to work...

~$ irb
>> s =TCPSocket.new("localhost", 6600)
=> #<TCPSocket:0x100e76c>
>> s.puts("find artist \"coldplay\"")
=> nil
>> s.gets
=> "file: spotify:track:3WggV4HBM6ZIZHgryyKKmm\n"

@jodal
Copy link
Member

jodal commented Jun 9, 2010

Just to ease your debugging, before looking into this issue, you can use telnet even easier than ruby/irb:

$ telnet localhost 6600
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.16.0
addid "spotify:track:6Gq52E0FY2RV6XKh1hBIE0"       
Id: 607646714
OK

@jodal
Copy link
Member

jodal commented Jun 9, 2010

Does this crash predictably, or is it happening randomly?

@jodal
Copy link
Member

jodal commented Jun 24, 2010

Works for me and no response from the user in 15 days. Closing.

@kyan
Copy link

kyan commented Jun 25, 2010

Sorry Jodal, haven't had time to have another look at this.

This issue was closed.
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

2 participants