Opened 11 years ago

Closed 11 years ago

#2817 closed defect (fixed)

Oscam for DBox2 not decode

Reported by: hapeba Owned by:
Priority: blocker Component: DVBApi
Severity: high Keywords:
Cc: Sensitive: no

Description

Revision

7600

Issue Description

decode nothing

When the issue occurs

always

How the issue is reproducable

always

Log:
2012/10/03 19:11:53 101C11A8 c plain dvbapi-client granted (dbox2, au=auto (2 reader))
2012/10/03 19:11:53 101C11A8 c dvbapi: Detected /dev/dvb/adapter0/demux0 Api: 0
2012/10/03 19:11:53 101BEEA0 p camd35 proxy xxx.dyndns.org:xxx68
2012/10/03 19:11:53 101BEEA0 p sky-kabel [cs378x] proxy initialized, server xxx.dyndns.org:xxx68
2012/10/03 19:11:53 1019D968 h HTTP Server listening on port 9290
2012/10/03 19:11:53 101C11A8 c dvbapi: [ADD PID 0] CAID: 1722 ECM_PID: 1718 PROVID: 000000
2012/10/03 19:11:53 101C11A8 c dvbapi: [ADD PID 1] CAID: 1831 ECM_PID: 1A18 PROVID: 000000
2012/10/03 19:11:53 101C11A8 c dvbapi: [ADD PID 2] CAID: 1835 ECM_PID: 1C00 PROVID: 000000
2012/10/03 19:11:53 101C11A8 c dvbapi: [ADD PID 3] CAID: 1838 ECM_PID: 1E00 PROVID: 000000
2012/10/03 19:11:53 101C11A8 c dvbapi: Found 4 ECMpids and 5 STREAMpids in PMT
2012/10/03 19:11:53 101C11A8 c dvbapi: New program number: 0008 (Sky Comedy) [pmt_list_management 3]
2012/10/03 19:11:53 101C11A8 c dvbapi: [IGNORE PID 0] 1722:000000:1718 (no matching reader)
2012/10/03 19:11:53 0 --- Skipped 1 duplicated log lines ---
2012/10/03 19:11:53 101C11A8 c dvbapi: [IGNORE PID 1] 1831:000000:1A18 (file)
2012/10/03 19:11:53 101C11A8 c dvbapi: [IGNORE PID 2] 1835:000000:1C00 (file)
2012/10/03 19:11:53 101C11A8 c dvbapi: [IGNORE PID 3] 1838:000000:1E00 (file)
2012/10/03 19:11:53 101C11A8 c dvbapi: ERROR: Can't decode channel

Change History (17)

comment:1 by hapeba, 11 years ago

Mipsel (Dream) and SH4 (Golden Media) also not decode

comment:2 by hapeba, 11 years ago

without oscam.dvbapi the same result

comment:3 by hapeba, 11 years ago

this is a critical error.
please revert the untested changeset and than search the error ...

comment:4 by Deas, 11 years ago

can´t reproduce it on sh4 (r7600)

2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 0] CAID: 0D05 ECM_PID: 00DC PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 1] CAID: 0D95 ECM_PID: 010E PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 2] CAID: 0648 ECM_PID: 0078 PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 3] CAID: 1702 ECM_PID: 0140 PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 4] CAID: 1833 ECM_PID: 01A4 PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 5] CAID: 09C4 ECM_PID: 01E0 PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: [ADD PID 6] CAID: 098C ECM_PID: 01EA PROVID: 000000
2012/10/03 22:30:24 579A38 c dvbapi: Found 7 ECMpids and 5 STREAMpids in PMT
2012/10/03 22:30:24 579A38 c dvbapi: New program number: 132F (ORF1 HD) [pmt_list_management 3]
2012/10/03 22:30:24 579A38 c dvbapi: [PRIORITIZE PID 0] 0D05:000000:00DC (rdr: reader_cs378x weight: 8)
2012/10/03 22:30:24 579A38 c dvbapi: [PRIORITIZE PID 4] 1833:000000:01A4 (rdr: reader_cs378x weight: 7)
2012/10/03 22:30:24 579A38 c dvbapi: [IGNORE PID 1] 0D95:000000:010E (file)
2012/10/03 22:30:24 579A38 c dvbapi: [IGNORE PID 2] 0648:000000:0078 (file)
2012/10/03 22:30:24 579A38 c dvbapi: [IGNORE PID 3] 1702:000000:0140 (file)
2012/10/03 22:30:24 579A38 c dvbapi: [IGNORE PID 5] 09C4:000000:01E0 (file)
2012/10/03 22:30:24 579A38 c dvbapi: [IGNORE PID 6] 098C:000000:01EA (file)
2012/10/03 22:30:24 579A38 c dvbapi: [TRY PID 0] CAID: 0D05 PROVID: 000000 CA_PID: 00DC
2012/10/03 22:30:24 5619E8 p reader_cs378x CMD05 AU request for caid: 0D05 auprovid: 000004
2012/10/03 22:30:24 579A38 c dvbapi: Start descrambling PID #0 (CAID: 0D05) 1
2012/10/03 22:30:24 579A38 c SCHLAFZIMMER (0D05&000004/0000/132F/9C:0AF8): found (2 ms) by reader_cs378x - ORF1 HD

please attach your oscam.dvbapi and oscam.server

btw.: which untested changeset should be removed?

comment:5 by theparasol, 11 years ago

Think Hapeba's issue is related to a betatunnel reader that is not passing the matching reader check. My seca 0100:00006A working just fine also.

comment:6 by hapeba, 11 years ago

Deas, why the oscam.dvbapi ? i wrote "... the same error without oscam.dvbapi"

and ... no ... no betatunnel ...

and it is not a argument, that seca are ok ...

comment:7 by hapeba, 11 years ago

version #7584 are ok ...

comment:8 by gf, 11 years ago

Resolution: invalid
Status: newclosed

Then close the ticket and don't cry wolf before being certain.

comment:9 by gf, 11 years ago

These are the commits between 7584 and 7600 that affect module-dvbapi.c

03f7c80 Remove 'quiterror' param from cs_malloc() and cs_realloc().
e528c88 dvbapi: Move CAT message to debug.
3e7fcdc Mark all cs_malloc() calls failable.
dcc16e2 dvbapi: Move back some of the messages to the default log level.
389b6ee Move mem/string functions from oscam-simples.c to oscam-string.c

I've stared at the diff as well and there is nothing that would suggest a breakage like the one you reported. Couple of text changes in log messages, do not let allocation failure to kill oscam. That is it. If you have 7584 then you should have 7600 working as well.

comment:10 by beneee, 11 years ago

7605 Mipsel Dreambox works.

comment:11 by cybero2912, 11 years ago

I can confirm the problem reported by hapeba

my oscam.dvbapi on dbox client:

P: 1722
P: 1834
I: 0

my oscam.server on dbox client:

label = server
protocol = cs357x
device = 1.2.3.4,12345
user = user1
password = password
services = sky+komplett,kd+home,kd+sd,kd+radio
caid = 1722,1834
group = 1

Last edited 11 years ago by cybero2912 (previous) (diff)

comment:12 by theparasol, 11 years ago

Looks like a broken sharereader issue and not dvbapi.
What if the card is used in a local reader with dvbapi, does that work?
What if other shareproto is used, does that work?

comment:13 by hapeba, 11 years ago

Resolution: invalid
Status: closedreopened

@gf don't close ticket before the error is corrected
@theparasol i use protocol = cs378x, two proxies and no local reader

comment:14 by hapeba, 11 years ago

the error beginns with changeset #7585.
work with caid in oscam.server --> ok (with and without oscam.dvbapi)
work with services in oscam.server --> Error, not decode

and "show services" in Webif also not work

comment:15 by hapeba, 11 years ago

and "edit services" in Webif also not work

comment:16 by gf, 11 years ago

7584 - is working, yes?
7585 - is working, yes?
7586 - is *NOT* working, yes?

comment:17 by gf, 11 years ago

Resolution: fixed
Status: reopenedclosed

I think I have found it....stupid me! r7607 contains the needed fix. The problem was that the code before the cleanup looked like this:

....
    else
      if (bytes<0)
        rc|=(0xf<<(i<<2));
  errno=0;

and after I have added couple of { } and reformated it it started looking like this:

    } else {
      if (bytes < 0)
        rc |= 0xf << (i << 2);
      errno = 0;
    }
  }

See how the errno = 0 is right where it was but couple of { } made all the difference.

My apologies to hapeba, you were right that there is a bug and I was wrong (although it was nothing related to dvbapi ;)

Note: See TracTickets for help on using tickets.