Kodi Community Forum
New MythTV add-on using libcmyth - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - pgjensen - 2013-06-15

I also built from git just now (Release Win32), and tried with a new data folder, and am receiving the same error.


RE: New MythTV add-on using libcmyth - fetzerch - 2013-06-15

(2013-06-15, 00:31)pgjensen Wrote: I also built from git just now (Release Win32), and tried with a new data folder, and am receiving the same error.

OK, was able to reproduce it. Unfortunately it happened only in release builds.
Should work as soon as this gets added to the official repo:
https://github.com/opdenkamp/xbmc-pvr-addons/pull/201
For now, you can build the addon from fetzerch/xbmc-pvr-addons (branch master)


RE: New MythTV add-on using libcmyth - simora - 2013-06-19

XBMC 12.0 (Pivos build); PVR-addon 1.6.9; Mythtv 0.26

Has anyone else had an issue with EPG causing xbmc to crash if left active for extended periods of time? I am working to collect logs but I have noticed that if EPG is the active or the menu last accessed before playing video after several hours xbmc crashes or locks up. I have not timed the period before but it is less than 12 hours but probably more like 4 hours.


RE: New MythTV add-on using libcmyth - simora - 2013-06-19

xbmc crashed after 2 hours 10 minutes. I found no obvious "I died here" lines. I enabled all the debugging available (both xbmc and addon) so he log is huge. If there is something in particular you want me to look for I can else I need a place to upload this whole thing or the part you need if you need the log.


RE: New MythTV add-on using libcmyth - fetzerch - 2013-06-19

Could be related to a strange bug in the epg-grid: http://forum.xbmc.org/showthread.php?tid=165187
A log could help, so far no dev was able to reproduce this.
Please disable the addon setting 'include more debug info in the log' so that the file is smaller.
And make sure you have gdb enabled, so that we can see the stack trace when it crashes.
Then upload the log to http://xbmclogs.com


RE: New MythTV add-on using libcmyth - simora - 2013-06-19

gdb enabled? I'll disable the debug on the addon.

Do I have to run strace on the process? If so than I need to build a new image for my gbox so I can.


RE: New MythTV add-on using libcmyth - fetzerch - 2013-06-19

(2013-06-19, 21:26)simora Wrote: gdb enabled? I'll disable the debug on the addon.

Sry, gdb (the debugger) needs to be installed. Then the crash log that is created contains the stack trace.


RE: New MythTV add-on using libcmyth - simora - 2013-06-19

gdb is part of the image. it is running. should have a crash log in a few hours.


RE: New MythTV add-on using libcmyth - simora - 2013-06-19

just to make sure I get everything you need. when gdb prompts on the crash I type bt to get the trace and copy/paste that bad boy for you or will it automagically dump the trace to a file?


RE: New MythTV add-on using libcmyth - simora - 2013-06-20

The following output from gdb... interesting enough I started the guide at 6:50p and it crashed at 8:49p (screen has the last image on I assume from the framebuffer). I don't know how to properly use gdb or there is nothing to get but i'm going to fail it out again... and note the times... a pattern is emerging.

[Thread 0x478ff460 (LWP 459) exited]
[Thread 0x470ff460 (LWP 458) exited]
[Thread 0x468ff460 (LWP 457) exited]
[Thread 0x44e68460 (LWP 455) exited]
[Thread 0x43570460 (LWP 452) exited]
[Thread 0x42d70460 (LWP 451) exited]
[Thread 0x42570460 (LWP 450) exited]
[Thread 0x41d70460 (LWP 440) exited]
[Thread 0x445b9460 (LWP 454) exited]

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb) bt
No stack.
(gdb)


RE: New MythTV add-on using libcmyth - simora - 2013-06-20

Opened guide at 8:55p and xbmc crashed at 11:04. That's 2 hours and 10 minutes. Intersting is the GUI died at 11:04p but logging continued for another 40 mins.

http://xbmclogs.com/show.php?id=29987


RE: New MythTV add-on using libcmyth - fetzerch - 2013-06-20

(2013-06-20, 02:54)simora Wrote: Program terminated with signal SIGKILL, Killed.

That's not a crash. Could it be that the kernel killed it for using too much memory?
Does dmesg log anything suspicious? Also check if the memory usage increases over time


RE: New MythTV add-on using libcmyth - simora - 2013-06-21

dmesg has it... I haven't had a chance to comb through it but here it is.

http://xbmclogs.com/show.php?id=30117


RE: New MythTV add-on using libcmyth - fetzerch - 2013-06-23

(2013-06-21, 00:30)simora Wrote: dmesg has it... I haven't had a chance to comb through it but here it is.

http://xbmclogs.com/show.php?id=30117

OK, I can reproduce this here as well. If you leave the EPG ui open, the memory increases over time.
On smaller systems with little available memory, the kernel (oom-killer) will kill processes to free up memory.

For now, the recommendation is to not leave it open Confused
I'll let you know when I know more.


RE: New MythTV add-on using libcmyth - simora - 2013-06-23

(2013-06-23, 10:56)cfetzer Wrote: For now, the recommendation is to not leave it open Confused
I'll let you know when I know more.

I figured that would be the workaround for now. Thanks for looking into it and good luck. Keep me posted on progress... the family likes using the epg and they aren't very good at making sure they return to home.