Random-Photo-Screensaver icon indicating copy to clipboard operation
Random-Photo-Screensaver copied to clipboard

Bug: System.NullReferenceException

Open CageFox opened this issue 9 years ago • 15 comments

RPS often falls with this exception:

Сигнатура проблемы: CLR20r3 01: RPS4.exe 02: 4.5.9.0 03: 55b67214 04: RPS4 05: 4.5.9.0 06: 55b67214 07: 14b 08: 6e 09: System.NullReferenceException Version: 6.3.9600.2.0.0.256.48 Lang1049 1: 5809 2: 580900b529c7dbbc59a95eaef54aadb0 3: 6837 4: 6837a3a0b5aaa4c8bda65825368f8a17

CageFox avatar Sep 27 '15 21:09 CageFox

Are there any particular circumstances that this occurs?

marijnkampf avatar Sep 28 '15 07:09 marijnkampf

No, just randomly. It shows raw blue screen instead of photo and when I try to see my desktop back the error window appears

CageFox avatar Sep 28 '15 07:09 CageFox

Which version of Windows are you running?

marijnkampf avatar Sep 28 '15 07:09 marijnkampf

Windows 8 64bit

CageFox avatar Sep 28 '15 07:09 CageFox

Is there any way to find which of my thousands pictures causes the error? May be some debug log "showing picture .1.. ok\nshowing picture ..2. ok" ?

CageFox avatar Sep 28 '15 07:09 CageFox

Yes there is:

  • In the RPS Configuration screen (Press S whilst screensaver is running or Right click desktop > Personalize > Screen Saver > Settings...)
  • Select Slideshow tab
  • Show advanced settings...
  • Check Debug log

If you identify particular images / files that cause a crash I would really appreciate it if you would be able to post (a selection of) them to GitHub or email ( see http://www.abscreensavers.com/contact ), so I can create a fix for RPS.

marijnkampf avatar Sep 28 '15 07:09 marijnkampf

Ok. And where is this debug log location?

CageFox avatar Sep 28 '15 07:09 CageFox

BTW. This exception unhandled, but you can handle it and display informative message on the screen ;)

CageFox avatar Sep 28 '15 07:09 CageFox

Next to the Check Debug log checkbox there is a button "Open log location in Explorer". Typically this is C:\users[user name]\AppData\Local\Random Photo Screensaver\debug_#date#.txt.

BTW That is why I'm hoping you can send me a sample file so I can fix the issue :)

marijnkampf avatar Sep 28 '15 07:09 marijnkampf

Ok. Thou the sample picture may contain very explicit content ;)

CageFox avatar Sep 28 '15 07:09 CageFox

Please keep it PG rated on GitHub, if the explicit content are the only ones causing a crash please use email address from contact page :/

marijnkampf avatar Sep 28 '15 09:09 marijnkampf

The trouble image not appears in the debug log. Last image in the log is ok, and then screensaver falling in blue screen without record in log So, I still unable to detect one

CageFox avatar Oct 15 '15 20:10 CageFox

The debug log is written before the file is accessed so it should have written it before it crashed. It could be that the issue isn't a particular file as I expected. Would you either be able to run RPS on a subset of images and keep removing images until it crashes or navigate through your images in RPS using the shortcuts and seeing whether it crashes on a particular image?

marijnkampf avatar Oct 16 '15 08:10 marijnkampf

No, this not possible. I've got about 8000 pictures, it will take too long time to find buggy one. May be you can add some debug code and may be send me debug version with extended trace of exception stack?

CageFox avatar Oct 16 '15 08:10 CageFox

Fair enough, I've opened a separate issue to for adding a global exception catch https://github.com/marijnkampf/Random-Photo-Screensaver/issues/49

I'll let you know when it's available.

marijnkampf avatar Oct 16 '15 08:10 marijnkampf