NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 683 684 685 686 687 … 1231 Next »
Source of mystery crashes

 
  • 0 Vote(s) - 0 Average
Source of mystery crashes
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#1
2006-06-05, 05:33 AM (This post was last modified: 2006-06-05, 06:03 AM by Jeff.)
Hi Sub -

You may already know about his, but I just read the following on a blog

Quote:The great news about the .NET Framework 2.0 is that unhandled exceptions, no matter where they come from, now cause termination of the app. You also have the chance to debug the unhandled exception if you have a JIT debugger installed. If you haven't installed an AppDomain.UnhandledException delegate and you're using multiple threads in your console or Windows Forms applications, you'll definitely want to add one when you port your code to the .NET Framework 2.0 because you may have been silently losing threads all along.

Maybe this is what has been happening with the errors that people have reported that show up i nthe system event log but not the gbpvr.exe.log file. Do you have a AppDomain.UnhandledException delegate installed to catch errors from background threads? I assume a plugin with background threads (which I for one use) could be the culprit.

Update: I added a AppDomain.UnhandledException handler to the video archive plug-in to see what would happen and I found two unhandled exceptions in the commongbpvrutilities library that I had missed. I have corrected these for the next release of my plug-ins. Perhaps other plug-in writers have exceptions in background threads that were being missing in .net 1.1 as well.


Jeff
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#2
2006-06-05, 04:22 PM
Yes, I had read that this was the new behavior, but I was aware I could use this AppDomain.UnhandledException handler. I'll add one for the next build. Thanks for pointing it out.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#3
2006-11-02, 02:42 PM
Quote: The great news about the .NET Framework 2.0 is that unhandled exceptions, no matter where they come from, now cause termination of the app.
I'm not one to pretend I understand this, but is it possible that this has not been implemented yet?

I ask as "maybe" the config locking up I reported in this thread doesn't do this i.e. terminate GBPVRRecordingService.exe??

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#4
2006-11-02, 04:18 PM
jksmurf Wrote:I'm not one to pretend I understand this, but is it possible that this has not been implemented yet?

I ask as "maybe" the config locking up I reported in this thread doesn't do this i.e. terminate GBPVRRecordingService.exe??

k.
I'm not really sure what you mean by 'not implemented yet'. The above is not something that needs to be done - just information. That information being, .NET 2.0 terminates the current process if the unhandled exception is thrown.

I used the info Jeff supplied above to add a handler that logs this type of problem occuring. If it happens, then the last few lines of a GB-PVR log will contain the following type of message:

9/4/2006 3:02:39 PM.625 ERROR [7] FATAL UNHANDLED EXCEPTION:: System.AccessViolationException: Attempted to read or write protected memory.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#5
2006-11-02, 04:26 PM
Quote:I ask as "maybe" the config locking up I reported in this thread doesn't do this i.e. terminate GBPVRRecordingService.exe??
I've looked into this and commented in the linked thread.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,111 2012-02-03, 02:41 AM
Last Post: slowtech
  HDHomerun crashes GBPVR -- not stable justonetaste2003 3 1,967 2010-12-03, 03:49 PM
Last Post: sub
  1080p dxva sometimes crashes gbpvr jam_zhou 3 1,973 2010-12-03, 03:07 PM
Last Post: jam_zhou
  Edit channel name when using xmltv as epg source Haggis 10 5,471 2010-10-18, 01:31 PM
Last Post: Haggis
  EPG Data source for Germany? Arnes 6 4,381 2010-10-09, 03:13 PM
Last Post: markbb1
  Tuning lock is a mystery in GBPVR. Why not in Windows Media Centre? togbabe 10 4,049 2010-07-08, 06:09 PM
Last Post: sub
  Recording attempting to use a non-mapped source for channel and failing. daveid 12 3,661 2010-04-24, 02:33 PM
Last Post: daveid
  Updating epg & deleting capture source zb1 0 1,231 2010-04-05, 09:25 PM
Last Post: zb1
  PVRX2 crashes when trying to timeshift specific digital channel arkennedy75 3 1,524 2010-03-17, 12:47 AM
Last Post: sub
  Adding capture source in config.xml? bluegirl 7 2,615 2010-03-01, 09:06 PM
Last Post: bluegirl

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

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

Linear Mode
Threaded Mode