Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 11 of 11

Thread: Memory Leak?

  1. #1
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts

    Memory Leak?

    Since fresh flashing for version155/6+ I've noticed some strange behaviour on my Miraclebox Twin. The problems still exist with another couch flash of build 166. No extra plug-ins, no timeshift, EPG with around 2 dozen channels. The box fan left permanently on. No backup restore of anything previously set-up.

    After being on for around 4 to 6 hours the box starts becomes sluggish and slow to respond to the remote. For instance, selecting the (graphical) EPG and the spinning VIX will appear for 5 seconds followed by the EPG being written to the screen slowly in another 5 seconds.

    Leave the box on for another 2 hours and the EPG will take twice as long to appear. Selecting any menu item will result in the spinning VIX for 10 seconds.

    Leave the box on for another 2 hours and it will start rebooting every 15 minutes. This is not a full boot. The front panel will still report the channel being watched, the TV screen shows the normal startup VIX photo splash screen and after 10 seconds the box will revert to showing the TV picture again. No error logs are produced and no error message on the screen.

    If left for a lot longer the spinning VIX appears forever and the box stops responding to the remote.

    The timespan for starting to see the problem is reduced by perhaps an hour if recording during the period.

    Switching the box off/on from the mains restores full working order for another 4/5 hours until the box starts becoming sluggish again. This suggests that its not a heat problem.

    Although I have no proof, it is symptomatic of memory leak problems I've seen on other equipment.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  2. #2

    Title
    ViX Beta Tester
    Join Date
    Jan 2011
    Posts
    14,099
    Thanks
    3,389
    Thanked 4,102 Times in 3,198 Posts
    Enable debug logs, restart & upload one the next time this happens.

  3. #3
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts
    Miraclebox Twin Premuim
    2 satellite tuners on 28.2
    EPG via ABM for the UK Freesat channels.

    Clean install of Apollo 166 and rescan for channels
    Default VIX skin and no additional plug-ins.

    I've not had the chance to leave my box on for a very extended period until today

    Today its been on for 12+ hours and has reached the state where it is permanently displaying the spinning VIX and is totally unresponsive to the remote. I can however FTP to the box and retrieve the log file it is creating.

    Currently this log file is 28,002,791 lines long and growing by the minute – so here it is

    Luckily blocks of info are endlessly repeated so approx 28 ,002,791million lines can be deleted.


    It looks like the problem is “< 32354.592103> WARNING: EPG Cache is corrupt (eventData::~eventData), you should restart Enigma!”

    Before crashing the box did a 10 second display of the VIX photo splash screen. The front panel only showed the name of channel being watched and NOT “booting” as it does when normally booting up.
    Attached Files Attached Files
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  4. #4
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts
    attachment


    edited_log.txt
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  5. #5
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    IIRC, if the EPG is corrupt you need to shut down the GUI, delete the current EPG data (/media/usb/epg.dat?) then restart the GUI.
    Leaving the corrupt one there won't help.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #6
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,338
    Thanks
    6,421
    Thanked 9,146 Times in 6,224 Posts
    You can also delete the epg cache in the EPG menu. No need to stop Enigma from running first if you do it this way.

    Menu > Setup > System > EPG > Load/Save/Delete > Delete EPG

  7. #7
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts
    Quote Originally Posted by birdman View Post
    IIRC, if the EPG is corrupt you need to shut down the GUI, delete the current EPG data (/media/usb/epg.dat?) then restart the GUI.
    Leaving the corrupt one there won't help.

    However once crashed, switching off at the mains and switching back on again restores full operation including a fully populated EPG, presumably read from the USB drive. The error message of "EPG Cache is corrupt " suggests its the copy in RAM that has become corrupt. If I use the box, say, 4 hours a day for weeks and switching to deep standby in between I only see a very slight slowing down at the end of the sessions. And this is with extensive channel hopping by way of the graphical EPG. I don't see crashes until the box has been left on permanently for much, much longer.

    The question is what is repeatedly corrupting the EPG Cache/RAM? Running out of memory the longer the box is left on??

    I will delete the existing EPG on the USB - I also have another drive I can try. Unfortunately it may be a while before I can report back as I have no plans to be in front of the box for any length of time in the near future.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  8. #8
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by adm View Post
    The error message of "EPG Cache is corrupt " suggests its the copy in RAM that has become corrupt.
    And it is that which will get written out to epg.dat when you shut the system down and re-loaded as it starts up again. (If that didn't happen then there would be no point in having the file at all.)
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  9. #9
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts
    Quick update

    Having followed the advice and deleted the EPG I've just had another random 10 second reboot

    The last entry in the log file is

    < 87476.813159> [EPGC] start caching events(1430504130)
    < 87477.109810> sdt update done!
    < 87604.349128> WARNING: EPG Cache is corrupt (eventData::~eventData), you should restart Enigma!
    *** Error in `/usr/bin/enigma2': corrupted double-linked list: 0x020f0f10 ***


    Still points to something corrupting the EPG.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  10. #10
    Sicilian's Avatar
    Title
    The Boss
    Join Date
    Mar 2010
    Posts
    29,645
    Thanks
    23,575
    Thanked 26,044 Times in 7,633 Posts
    Moved to correct section.
    D I S C L A I M E R

    My right to post information is protected under the rights for freedom act. In all instances, information discussed here on my posts are either hypothetical in nature, out of general curiosity, common knowledge, public knowledge, or role-play. Any use of the collective descriptions and shared knowledge from any of my posts are at the sole discretion of the reader. I am not responsible for what you do with it!

    Follow us on Twitter 0penViX
    Rules can be found
    HERE
    Support our sponsor World-Of-Satellite
    HERE
    GIGABLUE UHD QUAD 4K, VU+ DUO 4K SE, ZGEMMA H7S, VU+ UNO 4K SE
    Triax 1.1m Powered by TM2600, Fixed 28.2 Zone 2 dish with GT-SAT Unicable





  11. #11
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,636
    Thanks
    62
    Thanked 647 Times in 505 Posts
    Update
    Hades 07, USB stick install, HDD formatted, new USB stick to hold EPG data and complete manual fresh set-up. The box/image still has the same problems with a report that the EPG cache is corrupt when it finally crashes.

    However, disabling the automatic save and automatic refresh options in the EPG settings menu seems to stops this behaviour/crashing. Perhaps if a refresh and save occur at the same time the cache becomes corrupt?

    Question: how does the box maintain an up to date EPG whilst the box is on? Does it require the automatic refresh option to be set to make sure that changes to the programming schedule, such as overrunning programs and/or last minute cancellations/substitutions, are captured every x hours?
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.