Enigma2 restart

  • Hi
    On some channels my Dreambox DM 525 HD stops working: on the screen there is settings icon only and web interface or remote control does not work.
    But if I log in via telnet or ssh there is enigma2 process defunct.
    So main question is: what can I do to avoid that state?
    But if it happend - I try to restart enigma2:

    Code
    killall enigma2 or pkill -9 -f enigma2


    and then

    Code
    /usr/bin/enigma2


    But it does not start and I got:


    Code
    PYTHONPATH: /usr/lib/enigma2/python
    before: 1
    after: 1
    default pipe size of 65536 bytes detected
    ---- opening lame channel db
    reading services (version 4)
    loaded 4609 services
    scanning for frontends..
    [    0] opening frontend

    ... and it wait forever then.


    Is there any solution to this? Thanks in advance :smiling_face:

  • In DreamOS we have systemd, so please use it :winking_face:


    Code
    systemctl restart enigma2


    And to receive a few more info on your freezes, journalctl might help. E.g. you could create a log of all e2 outputs since the last boot. Or a log of all stdout content since the last boot. Or an ongoing log (stop with Ctrl + C).

    Code
    journalctl -u enigma2 > /tmp/enigma2.log
    journalctl > /tmp/full.log
    journalctl -f -u enigma2 > /tmp/enigma2_running.log


    P.S.: enigma2 has never been started by the binary itself, but the enigma2.py startup script.

    so long
    m0rphU

  • In DreamOS we have systemd, so please use it :winking_face:


    Code
    systemctl restart enigma2

    Thank you for replay.
    Yes of course I tried systemctl too :smiling_face:
    So now output of

    Code
    journalctl -f -u enigma2 > /tmp/enigma2_running.log

    enigma2_running.log



    >Nov 08 19:37:45 dm520 systemd[1]: Stopping enigma2...
    Here I restart enigma2


    At the end the same output as I wrote earlier :frowning_face:
    Any ideas?

  • I have no experience in enigma2 at all but this lines look strange for me:

    Code
    SubServices is returning list  [('1:0:1:144E:5DC:13E:820000:0:0:0:', '(...)')]
    timeout 0012!
    ...
    sdt update done!
    SubServices is returning list  [('1:0:1:144E:5DC:13E:820000:0:0:0:', ' ')]


    Look like channel changes name (?)
    And a moment later, I think it the time when enigma2 stops responding...

    Code
    AUDIO_STOP - ok
    DEMUX_STOP - audio - main thread is non-idle! display spinner!
    15467085 ms latency per 1000 blits (0,064653 fps)
    [EPGC] schedule other finished(1510166104)
    119999 ms latency per 1000 blits (8,333403 fps)

    But why? And how to prevent or restart it?

  • I'm still trying to workaroud it at least :frowning_face:
    Here is dmesg output:
    https://mega.nz/#!xa4GUSxY!pI8…RISmFwY9jUABK5yAosOrYSCco
    It looks something very bad happens on some channels:




    Can anyone help? Or how can I report this issue to Dreambox developer?

  • This is on Hotbird. Which channel is this. So I can try on my DM525.

  • Thanks for respond :smiling_face:
    I'm trying to compile enigma2 to debug it my myself but any help of more expreience users or developers will be helpful.
    I can confirm reprodution of the problem a moment ago on :
    Hotbird 13E 11488 27500 H sid 5198
    http://en.kingofsat.net/tp.php?tp=796
    My firmware:
    Image: Experimental 2017-07-20
    Dreambox OS: 4.3.1r20-2017-11-07
    All up to date.
    Logs:
    I move now all files to dedicated directory so above posts link may be deprecated
    All log files are available here:
    https://mega.nz/#F!FPonlAjZ!CMEKPkdTFtUxJfyti7HYEw


    I can produce fresh logs if required.



    There are more channels I have the same problem, but data of this I saved to tests.

  • I manage to reproduce it on any channel: in dreamboxedit put vpid and pcr empty value and for mpeg some random value (most likely must be different than proper for that channel). Then sent update to Dreambox and switch to this channel and after several seconds enigma2 freeze.
    Please fix for this issue :smiling_face: