Jump to content


Photo

Solo4K XMLTV import "crash the box"


  • Please log in to reply
110 replies to this topic

Re: Solo4K XMLTV import "crash the box" #81 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 9 September 2016 - 23:05

I have added a debug message here:
https://github.com/O...cache.cpp#L2908

I can see this debug message in the log.

Then e2 swtiches back to here: https://github.com/O...cache.cpp#L3023 (eEPGCache::importEvents). I think numberOfEvents is 1 (I cannot check that, because as said with a single debug message the problem disappears). So it only executes: "Py_END_ALLOW_THREADS;" and then goes back to Python code. But a debug message in python code is not shown.

 

Ok, I try printf.


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Solo4K XMLTV import "crash the box" #82 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 9 September 2016 - 23:24

Ok, printf helps. A printf at the end of the procedure importEvents is shown in the log.

A log in python here https://github.com/O...GImport.py#L228 so right after the importEvents call is not shown. So crash seems to happen in swig code. I have no idea how to debug that.

 

I also added my code to show backtraces. The backtrace shows:

<  9273.324> Backtrace:
<  9273.324> /tmp/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x694A8]
<  9273.324> /lib/libc.so.6(__default_rt_sa_restorer) [0xB652D6C0]

Anyone have an idea how to continue?

Could it be a problem with the Py_BEGIN_ALLOW_THREADS ?


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Solo4K XMLTV import "crash the box" #83 Eragon

  • Senior Member
  • 164 posts

+1
Neutral

Posted 9 September 2016 - 23:37

Excuse in advance my possibly silly observations...

 

but if the import problem is only occurring on the Solo4K ARM based receiver, and the XMLTVimport plugin source is the same for the MIPSEL based receivers, this issue might reside in the ARM source compiler or in something related in some way to the ARM system binaries...


Edited by Eragon, 9 September 2016 - 23:39.


Re: Solo4K XMLTV import "crash the box" #84 littlesat

  • PLi® Core member
  • 57,659 posts

+709
Excellent

Posted 10 September 2016 - 07:01

Does the hd51 also has this issue? When not there must be something in the vu's bps or drivers...

Edited by littlesat, 10 September 2016 - 07:02.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Solo4K XMLTV import "crash the box" #85 doglover

  • Rytec EPG Team
  • 17,508 posts

+672
Excellent

Posted 10 September 2016 - 08:17

Does the hd51 also has this issue? When not there must be something in the vu's bps or drivers...

 

Good question:  Is it ARM related or VU+ related?

 

Problem with the Germany3 test file, I earlier created is the fact that the entry which causes the crash is now in the past, and wont probably any-more be imported.

Therefor I created a new testfile, from which I am sure it generates the fault.  I splattered a few entries around it from which I know they are too long and create the crash.

Also the file is 14 days long with a faulty entry at the end, so it can be used for some time.

 

In order to use this testfile, add the following source to the rytec,sources.xml file:

<source type="gen_xmltv" channels="http://testepg.better-than.tv/rytec.channels.xml.gz">
<description>Test Crash</description>
<url>http://epgalfasite.dyndns.tv/testwebgrab.xml.gz</url>
</source>

Willy


Edited by doglover, 10 September 2016 - 08:26.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Solo4K XMLTV import "crash the box" #86 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 10 September 2016 - 08:31

IMS has done some work on the EPG import (generic) lately. His patches aren't yet applied, so he is not to blame ;)

 

But from the patches, you can see a description can be 4k max. It's implemented using an ugly static char array of 4k. Which could work if the boundaries were always respected. But in practise it's just too easy to forget it at just one point.

 

Of course, a std::string should have been used and there would have been no problem at all. One of the IMS patches exactly does that. So if someone applies his patches, it may be enough (probably me ;)).

 

I have a theory about why it manifests on the solo4k and possibly the hd51 as well. I have been told the mips based SoC's have a very limited MMU. Maybe the arm based just have a more advanced MMU that can assign memory in a more fine-grained way.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Solo4K XMLTV import "crash the box" #87 doglover

  • Rytec EPG Team
  • 17,508 posts

+672
Excellent

Posted 10 September 2016 - 08:41

4k max.

 

OK.  The crash occurred on a long description 3852 chars long.  Together with some formatting chars, this could just put it over the limit.

That at least gives me a guideline. 

Any grabber I have to revise will have this limit build in the future.  (I do not like to add it rucksichloss to every grabber without testing each one)

 

BTW:  A description this long is ridiculous, and nobody will ever read it.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Solo4K XMLTV import "crash the box" #88 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 10 September 2016 - 08:46

Of course it will need to be fixed in enigma, anyway.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Solo4K XMLTV import "crash the box" #89 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 10 September 2016 - 08:49

Char array means bytes and if you use UTF8 you can have more than 1 byte for each character. So this really might be the reason for the crash.
I'll try IMS patch later (perhaps tomorrow).
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Solo4K XMLTV import "crash the box" #90 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 10 September 2016 - 08:59

No the char array is used as storage for bytes, not for chars, if you know what I mean. If that was the problem, transition to a std::string wouldn't help either ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Solo4K XMLTV import "crash the box" #91 littlesat

  • PLi® Core member
  • 57,659 posts

+709
Excellent

Posted 10 September 2016 - 09:13

4k for one desciption.... Sounds like overkill... When you read a lot of epg your ram fills up dramatically......

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Solo4K XMLTV import "crash the box" #92 Eragon

  • Senior Member
  • 164 posts

+1
Neutral

Posted 10 September 2016 - 09:35

BTW in OpenVix 4.2 the EPGimport plugin doesn't give the error importing the same XML source, so wouldn't it be useful to check which are the  differences between XMLTVimport and EPGimport source codes?



Re: Solo4K XMLTV import "crash the box" #93 Dimitrij

  • PLi® Core member
  • 10,423 posts

+355
Excellent

Posted 10 September 2016 - 09:44

use swap


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Solo4K XMLTV import "crash the box" #94 doglover

  • Rytec EPG Team
  • 17,508 posts

+672
Excellent

Posted 10 September 2016 - 09:44

4k for one desciption.... Sounds like overkill... When you read a lot of epg your ram fills up dramatically......

 

Completely agree.  I did not intend it, it to be so much  (was not even aware of it).  But some websites give that much text for some shows. 

Teaches us to be more careful.

 

It still needs fixing though in EPGimport and/or enigma2.  No enlarging is needed nor wanted.  Just do not crash onto it.

I will build a upperlimit in the XMLTV generating software, but it will not be overnight.  As I stated above, every grabber I have to revise - or do some tests with it - will have the restriction build into it.

 

Willy


Edited by doglover, 10 September 2016 - 09:45.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Solo4K XMLTV import "crash the box" #95 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 10 September 2016 - 15:29

use swap

For the Solo 4k???



Re: Solo4K XMLTV import "crash the box" #96 littlesat

  • PLi® Core member
  • 57,659 posts

+709
Excellent

Posted 10 September 2016 - 16:26

Time to move it to a compressed database strategy...
But still the > 4K bug on solo4k (arm?) should be solved...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Solo4K XMLTV import "crash the box" #97 Dimitrij

  • PLi® Core member
  • 10,423 posts

+355
Excellent

Posted 10 September 2016 - 17:37

 

use swap

For the Solo 4k???

 

This simply test.

No answer?


Edited by Dimitrij, 10 September 2016 - 17:38.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Solo4K XMLTV import "crash the box" #98 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 10 September 2016 - 17:48

Sorry, no 4k here.



Re: Solo4K XMLTV import "crash the box" #99 Pr2

  • PLi® Contributor
  • 6,230 posts

+262
Excellent

Posted 10 September 2016 - 18:07

@Dimitrij,

 

There is plenty of memory available on the Solo4K when the crash occurred.  So swap won't fix anything since RAM remains available. Moreover if it was a RAM issue it will not be a specific long description that will make crash the box but the loading of the whole data set.

 

The problem is now clearly identified and easily reproducible, so please stop asking to create swap there is no need for swap on Solo4K.

 

Doglover can now create a file with only one event and the Solo4K will crash, so what swap will does more?

 

OpenPLi devs should have on there side a HD51 and try to reproduce the bug on it, it seems that no end-user with HD51 are following this thread so we still don't know if HD51 has the same issue or not.

 

If mut@nt want to offered me a HD51 I will be pleased to try to reproduce the bug myself.  :D

 

Pr2


Edited by Pr2, 10 September 2016 - 18:08.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Solo4K XMLTV import "crash the box" #100 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 September 2016 - 13:06

I have tested with old Germany3 test file and it still crashes.

 

And unfortunately both patches from IMS (he has 2 different versions), which replace the char array with a string, don't fix the problem. Box still crashes :(


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04


9 user(s) are reading this topic

0 members, 9 guests, 0 anonymous users