New TAP to manage the PVR using HTML/CSS/JavaScript.

TAPs für die SRP- und CRP-Serie
DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#161

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 10:39

A new version has been posted.
  • I have finished including all of the INF data into the files listing.
  • I have updated the recordings list to show the name of the event (from the INF).
  • I have also updated jkIT's demo to show the channel name. (The sort by channel does not work at the moment)
  • I have experimented with converting the channel name to UTF8 using one of FireBird's functions. This should show on the recordings page in the "Channel Name" column. Hopefully, the characters look better now. I only did this field because I could use a hex editor to modify an INF for testing. I will update the channels listing tomorrow, but I can not test it.
Zuletzt geändert von DeltaMikeCharlie am Sa 14. Sep 2013, 11:28, insgesamt 1-mal geändert.

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#162

Beitrag von Isarwolf » Sa 14. Sep 2013, 11:04

I new version has been posted.
With this version I have also reboots.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#163

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 11:29

[quote="Isarwolf"]With this version I have also reboots.[/quote]

Can you check the log file and find out where the reboot occurs?

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#164

Beitrag von Isarwolf » Sa 14. Sep 2013, 12:10

[quote="DeltaMikeCharlie"]Can you check the log file and find out where the reboot occurs?[/quote]

I have made a log with two crash.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#165

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 13:22

That is very odd, it rebooted in different places each time. Did you change anything between the 2 tests? The first test seems to be with the demo and the second test with the default page. Both show 39 recordings. Did you rename any files?

I have uploaded a new version that produces a lot more logging to help identify where the problem may be occurring. Please rerun your tests and let me know where they fail. Remember, the log is erased each time TMA1 is restarted.

I do not recommend that anyone use this version unless they are debugging this rebooting issue. The logging overhead could slow things down a lot.

Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2429
Registriert: So 8. Apr 2007, 10:05
Receivertyp: SRP-2100(TMS) / TF5500
Receiverfirmware: 08.Apr.2014 / 22.Dez.2011 PHUD
Wohnort: Hessen

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#166

Beitrag von Sirius » Sa 14. Sep 2013, 13:33

With the A018(new) version I have also a reboot by Records list.
And my channel list was empty - (but this is not so important at the moment).

Here are my logs of A018 and A018(new)

The new version A019 from post #165 I will test later...
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Sirius am Sa 14. Sep 2013, 13:42, insgesamt 1-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#167

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 13:56

@Sirius: Yours is even worse, it reboots before any files are read. Even before the number of files to read is known!!

This is very odd, I do not get these symptoms.

This all started when I added the INF data. My working theory is that you have some characters that are causing a problem, or perhaps your INF file has subtle differences that cause the reboots. If we can narrow down the problem to some specific recordings, please post the INFs so that I can take a closer look. This may be true for Isarwolf, but Sirius has no data yet and it still reboots.

I'll check any new logs posted tomorrow morning (my time) and see if anything helpful shows up.

Thanks to all for helping with this one.

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#168

Beitrag von FireBird » Sa 14. Sep 2013, 14:03

I've just tried A019 and while the channel list is empty, I don't get a reboot on the other pages. If there's something I can test, then I need to do quickly because starting tomorrow, I'll be away for the next two weeks.

Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2429
Registriert: So 8. Apr 2007, 10:05
Receivertyp: SRP-2100(TMS) / TF5500
Receiverfirmware: 08.Apr.2014 / 22.Dez.2011 PHUD
Wohnort: Hessen

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#169

Beitrag von Sirius » Sa 14. Sep 2013, 14:13

With A019 the log ends also with this line:

Code: Alles auswählen

Processing API-Files-Get request '/api?function=files&action=get!dir=/DataFiles&'.
Freeze and after 2 seconds the reboot ... before any file is read.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#170

Beitrag von Isarwolf » Sa 14. Sep 2013, 15:01

"All good things go by threes".
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#171

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 22:53

@Isarwolf

The reboot is caused by a simple buffer overflow. The allocation that I make for the JSON returned is too small. But it's not that simple.

Something is very wrong with the INF file and/or the STRUCT that I use to read it.

I am seeing negative numbers for bookmark locations. Also, there should only be a maximum of 177 bookmarks, whereas your PVR is reporting 17771 or 15056, etc.

Can you please post a copy of the following INF?

"Bloch Die Geisel - 2013-03-09 20-12.rec.inf"
"Das Leuchten der Stille - 2013-08-20 02-17.rec.inf"

Also perhaps also a few more random ones of your choosing.

If you want to send via email instead, send me a PM and I will send you my email address.

@Firebird - Are you aware of INFs from different models having different formats?

Towards the end of the log, I am seeing dates like "32009/109/101 49:49:00" which are clearly wrong. For now, I am attributing that to a side-effect of the buffer overflow because at the beginning of the log, those dates seem OK.

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#172

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 22:54

[quote="FireBird"]I've just tried A019 and while the channel list is empty[/quote]

When you type in the channels command manually, do you get a listing?

http://<PVR IP>:8000/api?function=channels&action=get!

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#173

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 23:25

I have uploaded version A-020 that I hope will stop the reboots for now.

I do a simple bounds check on the number of bookmarks that the INF thinks it contains, I only read the bookmarks section if the number is reported as between 0 and 177. The underlying problem still exists, I have just tried to prevent the reboot.

Ultra-detailed logging is still enabled.

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#174

Beitrag von FireBird » Sa 14. Sep 2013, 23:32

[quote="DeltaMikeCharlie"]Are you aware of INFs from different models having different formats?[/quote]
There are minor differences in the transponder structs of DVBs, -t and -c models but they are at the end of the interessting part (just before the bookmarks) but the function HDD_DecodeRECHeader() should take care about this.

[quote="DeltaMikeCharlie"]When you type in the channels command manually, do you get a listing?

http://<PVR IP>:8000/api?function=channels&action=get![/quote]

IE downloads a file called api.json. But I've just found out that the missing list is only valid for IE. Firefox displays the channels as expected.

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#175

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 23:36

Sirius hat geschrieben:With A019 the log ends also with this line:

Code: Alles auswählen

Processing API-Files-Get request '/api?function=files&action=get!dir=/DataFiles&'.
Freeze and after 2 seconds the reboot ... before any file is read.


I'm working on a debugging version for this issue too. For now, if you have access to the telnet console, can you try again and look for messages about keywords and directories:

Function = [files], Action = [get], Module = [default], Session = [].
Processing API-Files-Get request '/api?function=files&action=get!dir=/DataFiles&'.
theKeyword = [dir], theValue = [/DataFiles].
fullDir = [/DataFiles]
tempDir = [/DataFiles]

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#176

Beitrag von DeltaMikeCharlie » Sa 14. Sep 2013, 23:46

[quote="FireBird"]There are minor differences in the transponder structs of DVBs, -t and -c models but they are at the end of the interessting part (just before the bookmarks) but the function HDD_DecodeRECHeader() should take care about this.[/quote]

Would this difference also change the offset of the snapshot images? If so, this could impact INFplus.

[quote="FireBird"]IE downloads a file called api.json. But I've just found out that the missing list is only valid for IE. Firefox displays the channels as expected.[/quote]

I don't recall a file called "api.json" for TMA1. Curious.

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#177

Beitrag von FireBird » Sa 14. Sep 2013, 23:53

I'm not 100% sure but I think that the previews start at a fixed offset.

Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2429
Registriert: So 8. Apr 2007, 10:05
Receivertyp: SRP-2100(TMS) / TF5500
Receiverfirmware: 08.Apr.2014 / 22.Dez.2011 PHUD
Wohnort: Hessen

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#178

Beitrag von Sirius » So 15. Sep 2013, 00:54

Bad news, the A020 crashes on my toppy when I looked for the Records list.

The Telnet window (putty) shows the 'Alive' message and f.e. Timers output, but when I pressed the Records button my toppy freezes and putty closed immediately (??), so that I can't see the things you asked for.

The log is about 750K big (because of the channel infos).
In the attachment is a small log. This was created when the browser window of TMA was already opened and after restarting I pressed only the Records button.
.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Sirius am So 15. Sep 2013, 00:59, insgesamt 4-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#179

Beitrag von Isarwolf » So 15. Sep 2013, 07:09

I have three info-files in the Zip-file.
Die Stille I have just deleted yesterday evening.
I have seen that this info files are bigger than normal, normally the have 8,0 KiB, this one have 129,5 KiB. Exactly the same for all.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Isarwolf am So 15. Sep 2013, 07:10, insgesamt 1-mal geändert.
Grund: Korr.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#180

Beitrag von DeltaMikeCharlie » So 15. Sep 2013, 07:38

I have uploaded A-021.
  • This version has extra-super-improved-mega-logging(TM) for Sirius.
  • It also uses FireBird's HDD_DecodeRECHeader to read the INF file and hopefully stop the reboots. It seems to work OK for me, but then so did the previous versions.

Gesperrt

Zurück zu „SRP/CRP TAP-Bereich“