Behavior
Main window displays, but then a second later crashes with the standard dialog "NAPS2 (Not Another PDF Scanner 2) has stopped working".
Version Information
Tried a couple 6.x releases, including latest 6.1.2, which does not work.
5.8.2 works great.
Application event log shows:
Application: NAPS2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.PipeExceptionException Info: System.ServiceModel.EndpointNotFoundException
Server stack trace:
at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)
at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)
at NAPS2.Worker.IWorkerService.Init(System.String)
at NAPS2.DI.NinjectWorkerServiceFactory.Create()
at NAPS2.WinForms.FDesktop.RenderThumbnails()
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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
I've got the same/simmilar problem - unhandled exception - with several entries in the evnet log:
NAPS CRASH
EVENT LOG
Application: NAPS2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ServiceModel.EndpointNotFoundException
Server stack trace:
at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)
at NAPS2.Worker.IWorkerService.Init(System.String)
at NAPS2.DI.NinjectWorkerServiceFactory.Create()
at NAPS2.WinForms.FDesktop.RenderThumbnails()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
EVENT LOG
Názov chybovej aplikácie: NAPS2.exe, verzia: 6.1.2.25834, časová značka: 0x5d3c9614
Názov chybového modulu: KERNELBASE.dll, verzia: 6.1.7601.24511, časová značka: 0x5d3fa908
Kód výnimky: 0xe0434352
Odstup chyby: 0x0000845d
Identifikácia chybného procesu: 0x17c4
Čas spustenia chybnej aplikácie: 0x01d56273c454fd0a
Cesta chybnej aplikácie: C:\Program Files\NAPS2\NAPS2.exe
Cesta chybného modulu: C:\Windows\system32\KERNELBASE.dll
Identifikácia hlásenia: 04a44262-ce67-11e9-b4c9-0019bb57358c
WER
Chybový sektor , typ 0
Názov udalosti: CLR20r3
Odozva: Nie je k dispozícii
Identifikácia kabinetu: 0
Podpis problému:
P1: NAPS2.exe
P2: 6.1.2.25834
P3: 5d3c9614
P4: System.ServiceModel
P5: 4.8.3928.0
P6: 5d390720
P7: 4c96
P8: 55
P9: DI4EQZGVCWKDLTHKQTZWPXE3YRFKN1I2
P10:
Priložené súbory:
C:\Users\Asistentka\AppData\Local\Temp\WERC1FC.tmp.WERInternalMetadata.xml
Tieto súbory môžu byť dostupné tu:
C:\Users\Asistentka\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_NAPS2.exe_acc3c5be7356a15b1bd927fb307043cf11ca8a6_0f65c8a3
Symbol analýzy:
Opätovná kontrola pre nájdenie riešenia: 0
Identifikácia správy: 04a44262-ce67-11e9-b4c9-0019bb57358c
Stav správy: 1
Some texts are in Slovak language, but if necessary, I'll translate them.
All are just generic event log texts, so its "readable" by context.
The 5.8.2 works just fine on the particular system.
Its a Windows 7 Pro x86 system (all updates applied) with ESET NOD32 Antivirus.
When I ran NAPS2 as a different user, the application started just fine. It just had no config files.
So I've tried to remove the config files from %APPDATA% of the primary user, but it had no effect.
This system has a Samsung SCX-3400 Series Multi functional Printe which is connected via USB,
It looks like NAPS2 is doing some evals of the user settings after the startup and failes here.
And I had no antivirus installed other than Defender.
I am unsure if @selfman 's issue is the same as mine or not.
In my case, the following error was in
AppData\Roaming\NAPS2\errorlog.txtwhich I had not checked months ago:So I looked at
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.configand found IIRC 2 references toMicrosoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior. The last modified date for this file was years old. Further, these 2 references were not present inmachine.config.default, so I restored the default configuration, and NAPS launches fine now. I wonder if these references were still in there from a previous Visual Studio install that was uninstalled years ago?