NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 71 72 73 74 75 … 433 Next »
Non-numeric value in Edit Digital Channel form throws exception and causes problems

Non-numeric value in Edit Digital Channel form throws exception and causes problems
David Lowndes
Offline

Junior Member

Posts: 1
Threads: 1
Joined: Dec 2017
#1
2017-12-10, 12:58 AM
It also gives rise to a situation that's not straightforward to recover as something is corrupted and you can no longer get back to that form to correct the information.
Also, once in this state, several UI operations encountered similar exceptions, though I didn't keep all those stack traces.

I did eventually find that I could re-edit the channel via Devices to recover the situation.

Here's the exception stack trace:

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at NUtility.ChannelMapping.ParseInt(String val)
at NUtility.ChannelMapping.ExtractTuningCache()
at NUtility.ChannelMapping.get_Locator()
at NextPVR.Settings.ChannelDetailsForm.ChannelDetailsForm_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I'd encountered this by typing a hex ONID value because my TV shows the channel SID, TSID, & ONID as hex values, and at the time I hadn't recognised that NPVR was using the decimal value, so I typed the hex ONID (233a) that my TV showed and got into a mess.
Looking at the call stack, I'd recommend using TryParse() rather than Parse(), and handling the error appropriately.

Background - several SD channels (such as ITV) show fine on the TV (the TV diagnostic shows no errors and a good signal strength) but break up terribly and are unwatchable in NPVR (& Media Centre), and seeing the different hex/decimal numbers I thought the PC tuner was tuning to the wrong signal for those channels - though I now realise I was mistaken in that assumption.

Additionally, can I suggest that all the UI form's behaviour with the OK (Enter) and Cancel (Esc) keyboard handling be sorted out please. It should be an easy matter of setting the correct properties of the forms & OK/Cancel button controls, no code changes needed.

I'm using NPVR 4.0.5 (171208)

Other than these small points - great work!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IR Server Suite Channel Changer BTJustice 26 27,259 2023-01-11, 08:49 PM
Last Post: Frapo
  Device Update - Channel Mapping chezmorris 10 4,699 2022-07-01, 01:59 PM
Last Post: mvallevand
  Mouse Click on TV Guide throws an error mlopez1007 2 1,451 2021-03-22, 11:33 AM
Last Post: Graham
  IPTV Channel Mapping jrockow 15 7,837 2021-03-07, 09:45 PM
Last Post: jrockow
  channel icon location Brucek2839 2 1,720 2021-03-04, 10:30 PM
Last Post: Brucek2839
  UK channel More4 - tunes but cannot view? prothed 7 2,750 2021-02-17, 02:59 PM
Last Post: Graham
  send channel chanes via winLIRC?? chef Paula 67 13,434 2021-02-11, 07:38 PM
Last Post: mvallevand
  NextPVR hangs when tuning to offline channel? CormacBaptiste 2 1,941 2021-02-03, 01:29 PM
Last Post: Graham
  Directory dropdown on the recording edit dialog MicahMakenzie 1 1,500 2021-01-11, 04:37 PM
Last Post: Graham
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,077 2020-12-06, 02:15 AM
Last Post: pitbull1969

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode