marijnkampf / Random-Photo-Screensaver

Source of Random Photo Screensaver
http://www.abscreensavers.com/random-photo-screensaver/open-source
Other
44 stars 14 forks source link

Bug: System.NullReferenceException #45

Open CageFox opened 8 years ago

CageFox commented 8 years ago

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

marijnkampf commented 8 years ago

Are there any particular circumstances that this occurs?

CageFox commented 8 years ago

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

marijnkampf commented 8 years ago

Which version of Windows are you running?

CageFox commented 8 years ago

Windows 8 64bit

CageFox commented 8 years ago

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" ?

marijnkampf commented 8 years ago

Yes there is:

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.

CageFox commented 8 years ago

Ok. And where is this debug log location?

CageFox commented 8 years ago

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

marijnkampf commented 8 years ago

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 :)

CageFox commented 8 years ago

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

marijnkampf commented 8 years ago

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 :/

CageFox commented 8 years ago

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

marijnkampf commented 8 years ago

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?

CageFox commented 8 years ago

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?

marijnkampf commented 8 years ago

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.