ArgumentException: The data buffer was empty

3 weeks ago
Hi everyone

After payment, when I want to complete order this Error occured.
I'm using nopcommerce 4.6


await _orderProcessingService.MarkOrderAsPaidAsync(order);


ArgumentException: The data buffer was empty.
SkiaSharp.SKImage.FromEncodedData(byte[] data)
3 weeks ago
Probably related to this issue:
https://www.nopcommerce.com/en/boards/topic/95950/generate-invoice-pdf-containing-graphical-logo

Would you post your entire logged message stack trace?
2 weeks ago
Thank you, that worked
5 days ago
I can confirm this remains a problem in 4.60.6.

System.ArgumentException: The data buffer was empty.
   at SkiaSharp.SKImage.FromEncodedData(Byte[] data)
   at QuestPDF.Fluent.ImageExtensions.Image(IContainer parent, Byte[] imageData, ImageScaling scaling)
   at Nop.Services.Common.Pdf.InvoiceDocument.<ComposeHeader>b__4_1(RowDescriptor row)
   at QuestPDF.Fluent.RowExtensions.Row(IContainer element, Action`1 handler)
   at Nop.Services.Common.Pdf.InvoiceDocument.ComposeHeader(IContainer container)
   at QuestPDF.Fluent.ElementExtensions.Element[TParent](TParent parent, Action`1 handler)
   at Nop.Services.Common.Pdf.InvoiceDocument.<Compose>b__11_0(PageDescriptor page)
   at QuestPDF.Fluent.PageExtensions.Page(IDocumentContainer document, Action`1 handler)
   at Nop.Services.Common.Pdf.InvoiceDocument.Compose(IDocumentContainer container)
   at QuestPDF.Drawing.DocumentGenerator.RenderDocument[TCanvas](TCanvas canvas, IDocument document)
   at QuestPDF.Drawing.DocumentGenerator.GeneratePdf(Stream stream, IDocument document)
   at QuestPDF.Fluent.GenerateExtensions.GeneratePdf(IDocument document, Stream stream)
   at Nop.Services.Common.PdfService.PrintOrderToPdfAsync(Stream stream, Order order, Language language, Store store, Vendor vendor)
   at Nop.Services.Common.PdfService.PrintOrderToPdfAsync(Stream stream, Order order, Language language, Store store, Vendor vendor)
   at Nop.Services.Common.PdfService.SaveOrderPdfToDiskAsync(Order order, Language language, Vendor vendor)
   at Nop.Services.Common.PdfService.SaveOrderPdfToDiskAsync(Order order, Language language, Vendor vendor)
   at Nop.Services.Orders.OrderProcessingService.SendNotificationsAndSaveNotesAsync(Order order)
   at Nop.Services.Orders.OrderProcessingService.PlaceOrderAsync(ProcessPaymentRequest processPaymentRequest)