Menu

#1093 Fail to attach scan via Lotus Notes 12

7.X
open
nobody
None
7.3.0
Support
High
WIA
2024-07-17
2024-01-29
No

Hello.

We scan an document an try to use the send PDF via e-mail.
We have Lotus Notes 12 and select the HCL notes setting.
Notes is opened in background.
With notes 9-11 the menu worked fine.

An error pop-up with Notes 12:

Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses")
at async Task<bool> GrpcDotNetNamedPipes.Internal.MessageReader<tmessage>.MoveNext(CancellationToken cancellationToken)
at async Task<tmessage> GrpcDotNetNamedPipes.Internal.MessageReader<tmessage>+<>c__DisplayClass9_0.<readnextmessage>b__0(?)+(?) => { }
at async Task<mapisendmailreturncode> NAPS2.Remoting.Worker.WorkerServiceAdapter.SendMapiEmail(string clientName, EmailMessage message)
at async Task<mapisendmailreturncode> NAPS2.ImportExport.Email.Mapi.MapiDispatcher.SendEmail(string clientName, EmailMessage message)
at async Task<bool> NAPS2.ImportExport.Email.Mapi.MapiEmailProvider.SendEmail(EmailMessage message, ProgressHandler progress)+(?) => { }
at async bool NAPS2.Pdf.SavePdfOperation.Start(string fileName, Placeholders placeholders, ICollection<processedimage> images, PdfSettings pdfSettings, OcrParams ocrParams, EmailMessage emailMessage, string overwriteFile)+(?) => { } [1]</processedimage></bool></mapisendmailreturncode></mapisendmailreturncode></readnextmessage></tmessage></tmessage></tmessage></bool>

1 Attachments

Discussion

  • Ben Olden-Cooligan

    Can you follow these instructions to collect debug logs?

     
    👍
    1
  • Sebastian Strotmeyer

    Hi,
    we are using HCL Notes 12.0.1. and NAPS2 7.4.0:

    2024-03-25 16:26:18.2906 47864 Using MAPI client HCL Notes 
    2024-03-25 16:26:18.3256 47864 Loading MAPI DLL C:\Program Files (x86)\HCL\Notes\nmailman.dll 
    2024-03-25 16:26:18.3256 47864 Using ansi function MAPISendMail 
    2024-03-25 16:26:18.3876 31960 Beim Senden der E-Mail ist ein Fehler aufgetreten. Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses")
       at async Task<bool> GrpcDotNetNamedPipes.Internal.MessageReader<TMessage>.MoveNext(CancellationToken cancellationToken)
       at async Task<TMessage> GrpcDotNetNamedPipes.Internal.MessageReader<TMessage>+<>c__DisplayClass9_0.<ReadNextMessage>b__0(?)+(?) => { }
       at async Task<MapiSendMailReturnCode> NAPS2.Remoting.Worker.WorkerServiceAdapter.SendMapiEmail(string clientName, EmailMessage message)
       at async Task<MapiSendMailReturnCode> NAPS2.ImportExport.Email.Mapi.MapiDispatcher.SendEmail(string clientName, EmailMessage message)
       at async Task<bool> NAPS2.ImportExport.Email.Mapi.MapiEmailProvider.SendEmail(EmailMessage message, ProgressHandler progress)+(?) => { }
       at async bool NAPS2.Pdf.SavePdfOperation.Start(string fileName, Placeholders placeholders, ICollection<ProcessedImage> images, PdfSettings pdfSettings, OcrParams ocrParams, EmailMessage emailMessage, string overwriteFile)+(?) => { } [1]
    2024-03-25 16:26:28.3702 31960 Could not stop the worker process. It may have crashed. 
    
     

    Last edit: Sebastian Strotmeyer 2024-03-28
    • Ben Olden-Cooligan

      That indicates the MAPI process crashed. You try checking the Windows Event Log (under Application) to get more info. But it's probably a bug in HCL Notes that I might not be able to do anything about.

       
      👍
      1
  • Sebastian Strotmeyer

    Windows Event Log showing a .NET Runtime exception:

    Anwendung: NAPS2.Worker.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.AccessViolationException
       bei NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendMail(MapiSendMailDelegate, NAPS2.ImportExport.Email.EmailMessage, NAPS2.ImportExport.Email.Mapi.MapiSendMailFlags)
       bei NAPS2.ImportExport.Email.Mapi.MapiWrapper+<>c__DisplayClass3_1.<SendEmail>b__1()
       bei NAPS2.EtoForms.WinForms.WinFormsInvoker+<>c__DisplayClass4_0`1[[NAPS2.ImportExport.Email.Mapi.MapiSendMailReturnCode, NAPS2.Sdk, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null]].<InvokeGet>b__0()
    
    Ausnahmeinformationen: System.Reflection.TargetInvocationException
       bei System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
       bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
       bei System.Delegate.DynamicInvokeImpl(System.Object[])
       bei System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
       bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
       bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
       bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()
       bei System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       bei System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
       bei System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
       bei System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       bei System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
       bei System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
       bei System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
       bei System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
       bei System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
       bei NAPS2.EntryPoints.WindowsWorkerEntryPoint+<>c__DisplayClass0_0.<Run>b__2()
       bei NAPS2.EntryPoints.WorkerEntryPoint.Run(System.String[], Autofac.Module, System.Action, System.Action)
       bei NAPS2.EntryPoints.WindowsWorkerEntryPoint.Run(System.String[])
    
    Ausnahmeinformationen: System.Reflection.TargetInvocationException
       bei System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
       bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
       bei System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
       bei NAPS2.Worker.Program.Main(System.String[])
    

    We recently upgraded from the latest 6.x release to 7.40.
    In the 6.x release the error does not occur.

    Can I provide any more information?

     
  • Ben Olden-Cooligan

    Can you confirm that trying with the 6.1.2 portable works? Also, can you try the 7.2.2 portable and see if it works too?

     
    👍
    1
  • Sebastian Strotmeyer

    It is working fine with 6.1.2.

    With 7.2.2 it seems to be the same error like in 7.4.0:

    Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses")
       at async Task<bool> GrpcDotNetNamedPipes.Internal.MessageReader<TMessage>.MoveNext(CancellationToken cancellationToken)
       at async Task<TMessage> GrpcDotNetNamedPipes.Internal.MessageReader<TMessage>+<>c__DisplayClass9_0.<ReadNextMessage>b__0(?)+(?) => { }
       at async Task<MapiSendMailReturnCode> NAPS2.Remoting.Worker.WorkerServiceAdapter.SendMapiEmail(string clientName, EmailMessage message)
       at async Task<MapiSendMailReturnCode> NAPS2.ImportExport.Email.Mapi.MapiDispatcher.SendEmail(string clientName, EmailMessage message)
       at async Task<bool> NAPS2.ImportExport.Email.Mapi.MapiEmailProvider.SendEmail(EmailMessage message, ProgressHandler progress)+(?) => { }
       at async bool NAPS2.Pdf.SavePdfOperation.Start(string fileName, Placeholders placeholders, ICollection<ProcessedImage> images, PdfSettings pdfSettings, OcrParams ocrParams, EmailMessage emailMessage, string overwriteFile)+(?) => { } [1]
    

    and

    Anwendung: NAPS2.Worker.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.AccessViolationException
       bei NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendMail(MapiSendMailDelegate, NAPS2.ImportExport.Email.EmailMessage, NAPS2.ImportExport.Email.Mapi.MapiSendMailFlags)
       bei NAPS2.ImportExport.Email.Mapi.MapiWrapper+<>c__DisplayClass3_0.<SendEmail>b__0()
       bei System.Threading.Tasks.Task`1[[NAPS2.ImportExport.Email.Mapi.MapiSendMailReturnCode, NAPS2.Sdk, Version=7.2.2.0, Culture=neutral, PublicKeyToken=null]].InnerInvoke()
       bei System.Threading.Tasks.Task.Execute()
       bei System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
       bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       bei System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
       bei System.Threading.Tasks.Task.ExecuteEntry(Boolean)
       bei System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       bei System.Threading.ThreadPoolWorkQueue.Dispatch()
       bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    

    Thanks for having a look at this!

     

    Last edit: Sebastian Strotmeyer 2024-04-02
  • Ben Olden-Cooligan

    Can you try this test version and see if it makes a difference?

     
    • Björn Hamann

      Björn Hamann - 2024-06-12

      Hello,

      I have the same issue. I can confirm that the "E-Mail PDF" function works with HCL Notes in the attached version.

       
  • Ben Olden-Cooligan

    Please try this with 7.4.3.

     
  • Björn Hamann

    Björn Hamann - 2024-07-15

    i tested naps2-7.4.3-win-x64 -and naps2-7.4.3-win-x86 both are working with HCL Notes. Thank you

     
  • Sebastian Strotmeyer

    It is working for me, too! Thanks a lot!

     

Log in to post a comment.