Crash after a few secounds from exit addon
#1
Hello Fellows ,-)

I have a strange error with my swiss-army-knife addon 0.6.16 (beta 2).
I installed the default xbmc binary for lucid.

I use 2 threads inside my addon.
I can see how both threads are terminated.

If I start the addon as example 10 times , xbmc do crash may 3 or 4 times after I exit the python code.

Here is my debug-log :
http://swiss-army-knife.googlecode.com/files/xbmc.log

I have also a crash-log :

http://swiss-army-knife.googlecode.com/f...231640.log

What could cause this trouble ?

- My NVidia Driver ?
- my glibc ?


If someone may could have a look on this crash-log would be nice ;-)

Regards from switzerland
Hans
Reply
#2
Code:
Thread 15 (Thread 4484):
#0  0xb770f430 in __kernel_vsyscall ()
#1  0xb5fe4b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb63afa65 in ?? () from /usr/lib/libasound.so.2
#3  0xb63e5cca in ?? () from /usr/lib/libasound.so.2
#4  0xb63aaac1 in snd_pcm_drain () from /usr/lib/libasound.so.2
#5  0xb63bd9e5 in ?? () from /usr/lib/libasound.so.2
#6  0xb63aaac1 in snd_pcm_drain () from /usr/lib/libasound.so.2
#7  0xb63cac1f in ?? () from /usr/lib/libasound.so.2
#8  0xb63aaac1 in snd_pcm_drain () from /usr/lib/libasound.so.2
#9  0xb61e6efa in ?? () from /usr/lib/libSDL-1.2.so.0
#10 0xb61b844b in SDL_AudioQuit () from /usr/lib/libSDL-1.2.so.0
#11 0xb61b7845 in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#12 0xb61b78ce in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#13 0xb61b816f in ?? () from /usr/lib/libSDL-1.2.so.0
#14 <signal handler called>
#15 0xa9039a34 in _PyModule_Clear ()
   from /usr/lib/xbmc/system/python/python24-i486-linux.so
#16 0xa90957ab in PyImport_Cleanup ()
   from /usr/lib/xbmc/system/python/python24-i486-linux.so
#17 0xa909f295 in Py_EndInterpreter ()
   from /usr/lib/xbmc/system/python/python24-i486-linux.so
#18 0x08778d3b in XBPyThread::Process() ()
#19 0x082c4b35 in CThread::staticThread(void*) ()
#20 0xb6b6d96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#21 0xb5ff2a4e in clone () from /lib/tls/i686/cmov/libc.so.6

A python thread is doing something wrong there.
Reply
#3
Could it be that not all internal python functions are thread-save ?
Reply
#4
I guess I found the problem of my crashing .... after countless hours of searching.
I will test more ... and inform back
Reply
#5
Hi,

I'm also developing some scripts for Xbmc 10. Sometimes when finish the execution of some of the scripts Xbmc crash.

I found no patroon in the fault. I have attached some of the crash logs.

Regards from Spain.

http://213.254.99.106/logs/xbmc_crashlog...123114.log

http://213.254.99.106/logs/xbmc_crashlog...131124.log

http://213.254.99.106/logs/xbmc_crashlog...131247.log

http://213.254.99.106/logs/xbmc_crashlog...131950.log
Reply
#6
I also have the same problem. My plugin runs correct 70% of the times, the other 30% he crashes xbmc at close time.

My plugin is very simple, code following:

Code:
import xbmc, xbmcgui, sys, os

ACTION_PREVIOUS_MENU = 10

class Test(xbmcgui.Window):
  def __init__(self):
    xbmcgui.Window.__init__(self)
    sys.path.append('/usr/local/bin')

    progress = xbmcgui.DialogProgress()
    ret = progress.create("", "Loading...")

    command = 'command'
    os.system(command)

  def onAction(self, action):
    if action == ACTION_PREVIOUS_MENU:
      self.close()

ui = Test()
del ui

I run plugin using RunScript(script.test). Logs here:

Code:
############## XBMC CRASH LOG ###############

################ SYSTEM INFO ################
Date: Mon Feb 21 16:24:03 WET 2011
XBMC Options:
Arch: i686
Kernel: Linux 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010
Release:
    Distributor ID:     Ubuntu
    Description:        Ubuntu 10.10
    Release:    10.10
    Codename:   maverick
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/nwc/core (2011-02-21 16:24:03.411705002 +0000)
        =========================================
[New Thread 8116]
[New Thread 7832]
[New Thread 7829]
[New Thread 7833]
[New Thread 7834]
[New Thread 7918]
[New Thread 7836]
[New Thread 7842]
[New Thread 7835]
[New Thread 7932]
[New Thread 7837]
[New Thread 7813]
[New Thread 7845]
[New Thread 7838]
[New Thread 7925]
[New Thread 7840]
[New Thread 7839]
[New Thread 7843]
[New Thread 7844]
[New Thread 7846]
[New Thread 7912]
[New Thread 7913]
[New Thread 7914]
[New Thread 7922]
[New Thread 7924]
[New Thread 7928]
[New Thread 7930]
Core was generated by `/usr/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x0160e3f4 in _PyModule_Clear () from /usr/lib/xbmc/system/python/python24-i486-linux.so

Thread 41 (Thread 7847):
#0  0x005c4416 in __kernel_vsyscall ()
#1  0x02628de6 in poll () from /lib/libc.so.6
#2  0x00bfcbfb in ?? () from /lib/libdbus-1.so.3
#3  0x00bf595f in ?? () from /lib/libdbus-1.so.3
#4  0x00bf37dc in ?? () from /lib/libdbus-1.so.3
#5  0x00bdcc13 in ?? () from /lib/libdbus-1.so.3
#6  0x00bdf1e7 in ?? () from /lib/libdbus-1.so.3
#7  0x082c214b in DBUSSERVER::CDbusServer::Run() ()
#8  0x0829d677 in CThread::Process() ()
#9  0x0829dd35 in CThread::staticThread(void*) ()
#10 0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#11 0x026376ae in clone () from /lib/libc.so.6

Thread 40 (Thread 7848):
#0  0x005c4416 in __kernel_vsyscall ()
#1  0x02630381 in select () from /lib/libc.so.6
#2  0x08959ee3 in JSONRPC::CTCPServer::Process() ()
#3  0x0829dd35 in CThread::staticThread(void*) ()
#4  0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5  0x026376ae in clone () from /lib/libc.so.6

Thread 39 (Thread 7911):
#0  0x005c4416 in __kernel_vsyscall ()
#1  0x003ae884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0892e653 in NPT_PosixQueue::Pop(NPT_QueueItem*&, long) ()
#3  0x088efc82 in PLT_HttpClientSocketTask::GetNextRequest(NPT_HttpRequest*&, long) ()
#4  0x088f0b8d in PLT_HttpClientSocketTask::DoRun() ()
#5  0x088fcc53 in PLT_ThreadTask::Run() ()
#6  0x0892ecd4 in NPT_PosixThread::Run() ()
#7  0x0892fe5d in NPT_PosixThread::EntryPoint(void*) ()
#8  0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#9  0x026376ae in clone () from /lib/libc.so.6

Thread 38 (Thread 7917):
#0  0x005c4416 in __kernel_vsyscall ()
#1  0x003ae884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
Reply

Logout Mark Read Team Forum Stats Members Help
Crash after a few secounds from exit addon0