Crash during scan

The best solution for finding and removing duplicate files.
greatidea311
Posts: 1
Joined: Sat Apr 09, 2022 2:00 am

Crash during scan

Post by greatidea311 »

I've been able to scan fine previously but app is crashing sometime during the scan. I'm got a number of files across many locations so it takes a while and is difficult to know at what point it crashes exactly. I will selectively disable some of the locations to see if that fixes the issue, but it's very time consuming.

From the log, this is the entry for the scan, followed by a list of the file locations.

Scanning
- Video mode: Match thumbnails
- All file types
- Ignore zero size files

Event viewer does have a .NET runtime error associated with the crash:

Code: Select all

Application: Duplicate Cleaner 5.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at MediaInfo.NativeMethods.MediaInfo_Open(IntPtr, System.String)
   at MediaInfo.MediaInfo.Open(System.String)
   at   .(System.String)
   at   .(System.IProgress`1<> ByRef, System.Threading.CancellationToken ByRef,  ByRef, System.Text.StringBuilder ByRef)
   at   .(System.IProgress`1<> ByRef, System.Threading.CancellationToken ByRef,  ByRef)
   at System.Threading.Tasks.Task`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

I see the 'access violation' exception message, but there are not any permission settings that would cause this. This is the second event that comes immediately after the first:

Code: Select all

Faulting application name: Duplicate Cleaner 5.exe, version: 5.15.0.0, time stamp: 0x622f964e
Faulting module name: MediaInfo.dll, version: 21.9.0.0, time stamp: 0x615426f8
Exception code: 0xc0000005
Fault offset: 0x00000000003f1350
Faulting process id: 0x1db8
Faulting application start time: 0x01d84b9ed01e6086
Faulting application path: C:\Program Files (x86)\Duplicate Cleaner 5\Duplicate Cleaner 5.exe
Faulting module path: C:\Program Files (x86)\Duplicate Cleaner 5\x64\MediaInfo.dll
Report Id: 6ee066c6-514b-4d0e-bf20-c82e9e1b2b44
Faulting package full name: 
Faulting package-relative application ID:
User avatar
DigitalVolcano
Site Admin
Posts: 1863
Joined: Thu Jun 09, 2011 10:04 am

Re: Crash during scan

Post by DigitalVolcano »

It looks like the external MediaInfo library has crashed on a particular file, taking DC down with it.
Unfortunately with this type of crash the .NET framework doesn't allow the program to continue. I'm currently looking at how to get it to log the last file read before the crash to help with this type of problem.

The only thing you can do currently is to narrow down the search. You can also run in Regular Mode to find exact duplicates only - this doesn't read the video metadata so will not trigger the crash.
Post Reply