Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Crash when switching channels in PVR mode #40

Open
KungfuPancake opened this issue Apr 29, 2016 · 24 comments
Open

Crash when switching channels in PVR mode #40

KungfuPancake opened this issue Apr 29, 2016 · 24 comments

Comments

@KungfuPancake
Copy link

If i change channels using HTSP/tvheadend, the screen sometimes freezes. Sound still plays for a couple of seconds but the picture just shows some garbled green-ish color.

@jernejsk
Copy link
Owner

I'm aware of that issue, but currently I'm unable to debug that (no DVB USB device).

@KungfuPancake
Copy link
Author

I might be able to contribute. Are there any leads where to start looking for the issue?
I'll also try to provide a tvheadend configuration that uses dummy sources, i.e. a reproducible debug environment that doesn't require DVB hardware.

@jernejsk
Copy link
Owner

jernejsk commented Apr 30, 2016

I think the problem is in rendering code, but I'm not sure. I'm suspecting that DVDVideoCodecCedarX.cpp and modifications done to LinuxRendererGLES.cpp don't play nicely together.

I have a long term plan to remove any modifications to LinuxRendererGLES.cpp and write proper standalone render which would be a nice base to start solving some annoying issues.

But in the mean time, if you find proper fix, I would welcome it.

@KungfuPancake
Copy link
Author

I started browsing the sources but can't spare enough time to come up with something any time soon. Would it help if I sent you some hardware?

@jernejsk
Copy link
Owner

jernejsk commented May 2, 2016

Sorry, I have a lot of work to do also in my private life. This will be eventually fixed once I replace rendering code.

@KungfuPancake
Copy link
Author

No worries.

@jernejsk
Copy link
Owner

jernejsk commented Aug 5, 2016

This is fixed by commit 20ca9b2

@jernejsk jernejsk closed this as completed Aug 5, 2016
@markh-de
Copy link

markh-de commented Aug 8, 2016

I don't mean to be a party pooper, but I'm afraid this issue is not yet completely fixed.
I can confirm that 20ca9b2 helps a lot. Now, when directly switching channels (Tvheadend with 3x DVB-S2), the green distorted screen only shows up for a split second, after that TV works perfectly again.
But after some more zapping (maybe 20 times or so), Kodi froze again with the familiar green screen (and then automatically restarted after approx. a minute -- OOM killer?).
Who can confirm this behavior?
Should I try different settings (resolution/rate)?
Thanks for addressing this issue (like I said, it's the only real issue I have in my setup -- everything else works just great).

@jernejsk jernejsk reopened this Aug 8, 2016
@jernejsk
Copy link
Owner

jernejsk commented Aug 8, 2016

Don't worry. You are not the only one. However, I would like to ask you few things to speed up debugging:

  1. Can you post crash log somwhere (for example, pastebin)? Please enable debug log before in settings.
  2. Can you reproduce this issue with deinterlacing disabled?
  3. Is the resolution of the channels different when this happen?

@markh-de
Copy link

markh-de commented Aug 9, 2016

Regarding speedup of debugging, unfortunately I won't get my hands on the hardware before next weekend. But when I'm there, I will happily gather the info you requested.

@jernejsk
Copy link
Owner

jernejsk commented Aug 9, 2016

No hurry, take your time. Currently I don't have a slightest idea what could be wrong.

@markh-de
Copy link

markh-de commented Aug 15, 2016

Hi Jernej. Thanks for looking into this!

1.

Can you post crash log somwhere (for example, pastebin)? Please enable debug log before in settings.

Seems to crash at:

#2 0xb5453ccc in FbmReturnPicture () from /usr/lib/libvdecoder.so

> Stack traces and logs available on Google Drive <

If you require CedarX logs, please tell me how to enable them, and where to find them on the target machine.

2.

Can you reproduce this issue with deinterlacing disabled?

Reproducible with and without deinterlacing (tried with "Enabled" and "Disabled" for all media types). Seems to crash at the same point (check both logs).

3.

Is the resolution of the channels different when this happen?

In my case: No. Same resolution on each zapped channel (HD 720, h.264). Tried zapping forward and backward between very similar channels (same program broadcasted via three different channels for three different German Federal States, identical picture, all on the same DVB-S2 mux).
Should I check switching between different resolutions? What do you consider the critical case? Same or different resolution/encoding/... ?

@jernejsk
Copy link
Owner

Ok, issue is somewhere else. I would need CedarX output. Please follow these steps to obtain it:

  1. connect to board via ssh or serial terminal
  2. close Kodi with "systemctl stop kodi"
  3. run Kodi in console with "/usr/lib/kodi/kodi.sh"
  4. trigger the issue
  5. upload CedarX output from console.

@KungfuPancake
Copy link
Author

CedarX output from console: http://pastebin.com/bm8cifdt
Kodi crash log: http://pastebin.com/ZA1Yh1Ct

@jernejsk
Copy link
Owner

jernejsk commented Aug 23, 2016

What about this update (valid for 14 days):
https://transfer.sh/2T4e5/openelec-h3.arm-7.0-devel-20160823231652-r22887-g72d778d.tar

Solution is probably not final due to possible frame drops, but here I'm more interested if it still crashes or not.

@KungfuPancake
Copy link
Author

I will try this build tonight and report back.

@KungfuPancake
Copy link
Author

Still crashing.

  1. After 4 channel switches with a briefly garbled (green) video output, then black after 2 seconds. Output: http://pastebin.com/J6fdVVPM
  2. After 2 channel switches, non-garbled video output, frozen image/interface. Output: http://pastebin.com/LTjb1W4w
  3. After 8 channel switches, solid green video output, frozen image/interface. Output: http://pastebin.com/CFQ7AtLG

@jernejsk
Copy link
Owner

Please test this image (available for 14 days): https://transfer.sh/gVlO2/openelec-h3.arm-7.0-devel-20161016143930-r23108-g97f809b.tar

Allwinner published new CedarX drivers which have slightly different memory management.

@KungfuPancake
Copy link
Author

Problem still exists, green/purple noise and frozen screen after 4-5 channel switches.

@magicse
Copy link

magicse commented Nov 27, 2016

OPi2 work well

@KungfuPancake
Copy link
Author

Which Image did you use?

@jernejsk
Copy link
Owner

Another image to test (available for 14 days): https://transfer.sh/aMDip/openelec-h3.arm-7.0-devel-20170112235053-r23261-ge328780e4.tar

Please report.

@KungfuPancake
Copy link
Author

I was unable to test images for some time. Please re-upload - I'll test ASAP.

@jernejsk
Copy link
Owner

Unfortunatelly I removed everything related to this project from my computer and moved to other projects...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants