LinuxMCE Forums
May 23, 2013, 08:35:19 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Help! - Device dies  (Read 768 times)
Mikel
Newbie
*
Posts: 11


View Profile
« on: April 06, 2010, 05:23:43 pm »

Hi, I have an issue with a device I'm developing. If I run it at this way, I haven't any trouble:

/usr/pluto/bin SmartEPG -d 50

When I send a message to device, is working properly. But, if I reload DCERouter, when I send a message to device, it dies:

========== NEW LOG SECTION ==========
1   04/06/10 18:05:33   50 (spawning-device)   Starting... 6
1   04/06/10 18:05:33   50 (spawning-device)   Found /usr/pluto/bin/SmartEPG
Return code: 139
3   04/06/10 18:06:21   50 (spawning-device)   Device died... count=6/50 dev=50

Anybody knows something about this?

Thanks!  Wink
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: April 06, 2010, 05:33:43 pm »

looks like you need to run the device through the gdb debugger.
Logged
Mikel
Newbie
*
Posts: 11


View Profile
« Reply #2 on: April 06, 2010, 06:51:01 pm »

 gdb /usr/pluto/bin/SmartEPG

GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run -d 50
Starting program: /usr/pluto/bin/SmartEPG -d 50
[Thread debugging using libthread_db enabled]
SmartEPG, v.<=version=>
Visit www.plutohome.com for source code and license information

[New Thread 0xb6e286c0 (LWP 5154)]
[New Thread 0xb6e27b90 (LWP 5160)]
[New Thread 0xb6626b90 (LWP 5162)]

--> At this point, I send a command from the admin website to device.

Need to implement command #1076 - ChannelUpdate
Parm #264 - Channel=La 2
Parm #286 - Show=Desafio Champions
Checking online users...
generating XML...

It works fine, generates the XML file... but only if I run the device from console, if I let LMCE to running the device himself, doesn't work.

By the way, I'm running Python scripts from the device.
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: April 06, 2010, 08:04:21 pm »

hmmm, how about running gdb against one of the coredumps in /usr/pluto/coredump ?

-Thom
Logged
Mikel
Newbie
*
Posts: 11


View Profile
« Reply #4 on: April 07, 2010, 12:34:43 pm »

/var/log/syslog

Apr  7 13:32:42 dcerouter kernel: [  262.187660] SmartEPG[15479]: segfault at 4 ip b740cded sp b655ff30 error 4 in libpython2.5.so.1.0[b73ae000+110000]


I'm on the right way  Cheesy
Logged
Mikel
Newbie
*
Posts: 11


View Profile
« Reply #5 on: April 07, 2010, 12:48:43 pm »

Another question... who launches the devices? Root? My desktop user?
Logged
Mikel
Newbie
*
Posts: 11


View Profile
« Reply #6 on: April 07, 2010, 02:30:36 pm »

Done! The problem was the $PYTHONPATH enviroment variable.

Thanks!  Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!