EPG segfaults while getting svdrp data

Moderator: Moderator

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Wed Sep 24, 2008 5:56 pm

channels.conf also pls - i am on irc currently - would be better to do a follow-up there i guess

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Wed Sep 24, 2008 6:12 pm

some refinements on search-sreen regarding lirc-select-letters - no further correction on uatschitchun's prob since the last patch

http://thielemann-net.de/mms/epg/epg26.diff
Last edited by magicamun on Sun Dec 28, 2008 9:30 am, edited 1 time in total.

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Thu Sep 25, 2008 5:30 pm

ok - here we go - have a next try uatschitchun :

http://thielemann-net.de/mms/epg/epg27.diff

problem was due to no comment with repetitive timers :-(

regarding repetitive timers - it is currently not possible to set those with the plugin - i am thinking of a proper dialog to do so - but that is more work than just this fix.

have fun
Last edited by magicamun on Sun Dec 28, 2008 9:30 am, edited 1 time in total.

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Sat Sep 27, 2008 5:48 pm

fix for lirc-scrolling on eog-search (fix is in remote.cpp) :


http://thielemann-net.de/mms/epg/epg28.diff


thanks arj.
Last edited by magicamun on Sun Dec 28, 2008 9:30 am, edited 1 time in total.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Re: EPG segfaults while getting svdrp data

Postby arj » Sat Sep 27, 2008 7:48 pm

This has been merged. Thanks Lutz :)

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Sun Oct 05, 2008 3:05 pm

hi folks - roman found another one (it was still the old one) - don't know - how it happened to stay in - now this diff fixes that :

http://thielemann-net.de/mms/epg/epg29.diff

that diff also includes some indention-correction - thats the reason for it being so big

arj, lorenzodes - can you pls. merge - roman tested already
Last edited by magicamun on Sun Dec 28, 2008 9:30 am, edited 1 time in total.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Re: EPG segfaults while getting svdrp data

Postby arj » Sun Oct 05, 2008 11:09 pm

I'll do tomorrow. Thanks

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: EPG segfaults while getting svdrp data

Postby Uatschitchun » Mon Oct 06, 2008 7:42 am

I spent some time testing EPG-Plugin :mrgreen:

Lutz, with the diff from yesterday, I got a "EPG Data could not be read from server" again today ... but only the first times, after that, it worked ?!

In MMS' output I have:
0 - schland 2008

Clock::find_next_alarm()
[Thread 0xb45cdb90 (LWP 12863) exited]
0 - schland 2008

First "0 - schland 2008" was when starting up, second after a "reread data" from within epg-plugin!?

and:
Unknown Token <3>!
Unknown Token <4>!
Unknown Token <5>!
0 - schland 2008


And on server-side I get:
Oct 6 08:21:59 willi vdr: [17643] connect from 192.168.5.4, port 51631 - accepted
Oct 6 08:22:01 willi vdr: [17643] ERROR (svdrp.c,407): Broken pipe
Oct 6 08:22:01 willi vdr: [17643] closing SVDRP connection


I'll re-check with the diff you posted here!

Don't know, but I've got the strange feeling, that my setup f*cked itself up, locale-related, over the time ?! As I have strange Umlaute problems, etc. ...

And another grave one!
There seem to be a memory leak in epg-plugin!

During the test above, I restarted my VDR on my server (there was no open svdrp-connection that I was aware of) which resulted in MMS growing rapidly in mem-usage (1GB and more virt. with 600MB res.) ?!
Had to kill 9 it ...

And another one!
There's still some strange difference in how vdr-sxfe is called comparing tv-plugin & epg-plugin?!
I compared the parts in code, but they are identical ...
I compared the parts in Configs and ... tada ;)
Without "" around the svdrp_tv_path it works!! With "" I get :
[15948] [input_vdr] No data in 8 seconds, queuing no signal image
[15948] [input_vdr] using custom "no signal" image /usr/share/libxine1-xvdr/nosignal.mpg


And another one!
If I want to switch to a channel that currently isn't available (cause VDR is recording), there's no message in MMS telling me that, but only nothing?! That could mislead the user ...

And another one!
The search is nice :P
Allthough I'm not quite sure, if it should be handled the same as within the other searches:
Enter phrase, then search ... no search while you type!
Anders changed that for plugin's search, too. I'll have to re-check with lirc-input!

And another grave one!
I get a segfault when adding a timer:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79d96c0 (LWP 18605)]
0xb5d86c46 in SvdrpEpgEvent::Cleartimer (this=0x18) at svdrp.hpp:177
177 void Cleartimer() { timer = NULL; timer_num = 0; }
(gdb) bt
#0 0xb5d86c46 in SvdrpEpgEvent::Cleartimer (this=0x18) at svdrp.hpp:177
#1 0xb5d75227 in Epg::create_timer (this=0x825fad8, _epgevent=0x83524f0) at epg.cpp:1123
#2 0xb5d75993 in Epg::toggle_timer (this=0x825fad8, ev=0x83524f0) at epg.cpp:1076
#3 0xb5d85c33 in Epg::mainloop (this=0x825fad8) at epg.cpp:1813
#4 0xb5d9b359 in view_epg () at epg_plugin.cpp:36
#5 0x08110981 in boost::detail::function::void_function_invoker0<void (*)(), void>::invoke (function_ptr=@0x831b0fc) at /usr/include/boost/function/function_template.hpp:114
#6 0x08109035 in boost::function0<void, std::allocator<void> >::operator() (this=0x831b0f8) at /usr/include/boost/function/function_template.hpp:692
#7 0x0810f1c5 in Startmenu::mainloop (this=0x81e6700) at startmenu.cpp:267
#8 0x080f09ac in start () at mms.cpp:78
#9 0x080fb4e1 in main (argc=1, argv=0xbfd88314) at mms.cpp:779

Same if removing the timer!
The timer get's set and deleted on server, that's not the problem ...

And another one!
Is the number of channels limited? It seems I only get the first x channels?!
Ah ... stumbled upon the Config entry svdrp_channels, which is really nice :P


Ok, all for now ;)
All tests are done using latest revno (1885) together with the little diff from yesterday!
My Media System: 1.1.0 revno: 1885
Configuration: --enable-clock --enable-notify-area --enable-weather --enable-vbox --enable-game --enable-tv --enable-res-switch --enable-opengl --enable-python --enable-debug


Hope it helps
Lg
Roman

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Tue Oct 07, 2008 1:48 pm

roman - shall i say thank - you - it is hard - but YES - i shall -. you need to give me some time to get all those errors traced - i assume locale mangled stuf - therefor i'd like to know what your environment looks like regarding that. A post of env | grep -i LC or/and other locale-related stuff may be fine. To reproduce your probs the last time - i set the vdr to sth different from UTF-8. If you have 2 Machines - i probably need both environmenmts.

And i must say - that due to business i will not be able to work on this prior to tomorrow evening - and the next we is also busy.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: EPG segfaults while getting svdrp data

Postby Uatschitchun » Tue Oct 07, 2008 6:20 pm

Take you time and I'll take mine to collect infos !

Pls :twisted:
Lg

Roman

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: EPG segfaults while getting svdrp data

Postby Uatschitchun » Tue Oct 07, 2008 7:35 pm

revno 1887:

../../output/../input/input.hpp: In member function »void InputMaster::epg_search(const std::vector<T, std::allocator<_CharT> >&, int*, const boost::function<void ()(const std::vector<T, std::allocator<_CharT> >&), std::allocator<void> >&, const boost::function<bool ()(const T&, const std::string&), std::allocator<void> >&, const boost::function<std::string ()(const T&), std::allocator<void> >&, bool&, std::string&, std::string&, int&, const boost::function<void ()(const std::vector<T, std::allocator<_CharT> >&), std::allocator<void> >&, BusyIndicator*) [with T = EpgEvent*]«:
epg.cpp:1251: instantiated from here
../../output/../input/input.hpp:363: Warnung: Variable »canceled« wird nicht verwendet
../../output/../input/input.hpp: At global scope:
../../output/../input/input.hpp:350: Warnung: unbenutzter Parameter »position«
../../../print.hpp:90: Warnung: »void print_info(const std::string&, const std::string&)« definiert, aber nicht verwendet
../../../libfspp.hpp:29: Warnung: »void libfs_set_folders_first(std::string)« definiert, aber nicht verwendet
make: *** [epg.o] Fehler 1


Sadly :(
I stumbled upon that one as I was building intermediate debs ... so they'll have to wait
Lg

Roman

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: EPG segfaults while getting svdrp data

Postby lorenzodes » Tue Oct 07, 2008 9:10 pm

Uatschitchun wrote:Sadly :(
I stumbled upon that one as I was building intermediate debs ... so they'll have to wait


Fixed in revno 1888.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: EPG segfaults while getting svdrp data

Postby Uatschitchun » Wed Oct 08, 2008 8:43 am

Thx :P
Lg

Roman

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Re: EPG segfaults while getting svdrp data

Postby magicamun » Wed Oct 08, 2008 5:47 pm

In MMS' output I have:

0 - schland 2008

Clock::find_next_alarm()
[Thread 0xb45cdb90 (LWP 12863) exited]
0 - schland 2008


First "0 - schland 2008" was when starting up, second after a "reread data" from within epg-plugin!?

and:

Unknown Token <3>!
Unknown Token <4>!
Unknown Token <5>!
0 - schland 2008




this looks like - i would not say is ONLY because of - connection - probs "0 - schland" looks like the rest of a line of svdrp - output - the "unknow-token" - thing also indicates that the process of svdrp-data-retreiving stumbles over the data. - I will look if the debug-info can be enhanced

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: EPG segfaults while getting svdrp data

Postby Uatschitchun » Wed Oct 08, 2008 6:05 pm

regarding Tv:

... the code of tv.cpp ... that IS IDENTICAL

Know that :D

regarding the usage of the params from Config - are you sure that it behaves different?


As I stated before, in TVConfig I have:

Code: Select all

tv_path = /usr/bin/vdr-sxfe

which works fine!
in EPGConfig there is:

Code: Select all

svdrp_tv_path = "/usr/bin/tvtime"

and I changed it to:

Code: Select all

svdrp_tv_path = "/usr/bin/vdr-sxfe"

which didn't work for me!
after removing the quotes:

Code: Select all

svdrp_tv_path = /usr/bin/vdr-sxfe

everything works as it should!

So my problem comes from the quotes and as both code-parts _are_ identical, the quotes shouldn't be needed and better removed from EPGConfig's template in upstream!
Lg

Roman


Return to “general discussion”

Who is online

Users browsing this forum: No registered users and 3 guests