Strange exception message

delphi package - automated exception handling
Post Reply
ertank
Posts: 10
Joined: Sat Feb 17, 2024 8:42 pm

Strange exception message

Post by ertank »

Hello,

I just received an exception report like below

Code: Select all

date/time          : 2024-03-22, 18:40:33, 375ms
computer name      : DESKTOP-82725JH
user name          : PC
registered owner   : PC
operating system   : Windows 10 x64 build 19045
system language    : Turkish
system up time     : 3 hours 4 minutes
program up time    : 3 hours 2 minutes
processors         : 4x Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz
physical memory    : 4572/7897 MB (free/total)
free disk space    : (C:) 48,98 GB
display mode       : 1366x768, 32 bit
process id         : $dc4
allocated memory   : 54,18 MB
largest free block : 1,50 GB
executable         : PrintService.exe
exec. date/time    : 2024-03-17 12:05
version            : 4.0.0.0
compiled with      : Delphi 11
madExcept version  : 5.1.4
callstack crc      : $e7ded9ec, $fac6871d, $fac6871d
exception number   : 1
exception class    : EPrintError
exception message  : İşlem başarıyla tamamlandı.

main thread ($dd0):
013a01de +082 PrintService.exe ppPrintr       TppCustomPrinter.GetDC
013a0efa +026 PrintService.exe ppPrintr       TppCustomPrinter.GetPixelsPerInch
0139da6f +017 PrintService.exe ppPrintr       TppPrinterCanvas.UpdateDeviceContext
0139ff86 +076 PrintService.exe ppPrintr       TppCustomPrinter.ResetDC
0139fd38 +060 PrintService.exe ppPrintr       TppCustomPrinter.BeginDoc
013a168c +00c PrintService.exe ppPrintr       TppPrinter.BeginDoc
013cd688 +038 PrintService.exe ppPrnDev       TppPrinterDevice.StartJob
016b78ae +0ba PrintService.exe ppDevice       TppPublisher.TakeDeviceAction
016b7be5 +00d PrintService.exe ppDevice       TppPublisher.StartJob
016a5d4c +09c PrintService.exe ppProd         TppProducer.InitializeReport
0152b8eb +00f PrintService.exe ppReport       TppBandedReport.InitializeReport
016a5e5a +066 PrintService.exe ppProd         TppProducer.PrintToDevices
0152cfdf +09b PrintService.exe ppReport       TppReport.PrintToDevices
016a683a +3be PrintService.exe ppProd         TppProducer.PrintToPrinterEnd
016a6c3a +212 PrintService.exe ppProd         TppProducer.OutputReport
016a5bf6 +07a PrintService.exe ppProd         TppProducer.Print
0152bfb9 +02d PrintService.exe ppReport       TppReport.Print
01aa1dbc +5d4 PrintService.exe Unit1          TRexpressPrintServerMainForm.FisYazdir
01aa167e +03e PrintService.exe Unit1          TRexpressPrintServerMainForm.PrintServer
01aa0448 +314 PrintService.exe Unit1          TRexpressPrintServerMainForm.SIBfibEventAlerter1EventAlert
013848c1 +049 PrintService.exe SIBEABase      TSIBEventThread.DoEvent
00e6748a +172 PrintService.exe System.Classes CheckSynchronize
010017f6 +136 PrintService.exe Vcl.Forms      TApplication.Idle
010007db +017 PrintService.exe Vcl.Forms      TApplication.HandleMessage
01000b0d +0d1 PrintService.exe Vcl.Forms      TApplication.Run
01adcb4b +06b PrintService.exe PrintService   initialization
7558fcc7 +017 KERNEL32.DLL                    BaseThreadInitThunk
Two things got my attention.
1- Exception message means "The operation completed successfully." This is normally not a usual exception message.
2- There is no line information on which the exception happened. Not even our own source lines. I checked again and there is actually detailed map file generated with the release build.

I cannot be sure if there is an exception and if yes, is it our codes causing it.

Thanks & Regards,
Ertan
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Strange exception message

Post by madshi »

Is "ppPrintr" your own unit? Or is it a 3rd party unit? Or a Delphi unit?
ertank
Posts: 10
Joined: Sat Feb 17, 2024 8:42 pm

Re: Strange exception message

Post by ertank »

It's a 3rd party unit without source.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Strange exception message

Post by madshi »

Well, that's the reason why there are no line numbers, then. Though, "Unit1" sounds like your unit, so I would expect to see line numbers for those lines.

Anyway, looking through the callstack, it seems that SIBEABase.pas in "TSIBEventThread.DoEvent" calls "TRexpressPrintServerMainForm.PrintServer", which then calls "TPpReport.Print", which then crashes somewhere within the 3rd party code. The exception message "The operation completed successfully" comes from the 3rd party code.
Post Reply