JVM crash when printing PDFs
Posted: Tue Feb 28, 2017 9:24 am
We are using JCEF to embed all kinds of web content in our product, especially showing and printing PDF documents.
Now we have the problem that we get sporadically crashes if we cancel the printing dialog with the "cancel" button or via "X". Our application crashes and is closed immediately, but we get an hs_err.logfile with an EXCEPTION ACCESS VIOLATION in the COMCTL32.dll. The problem also occurs if the pdf is printed, not only if I cancel the printing dialog. But unfortunately this usecase (printing the pdf), also crashes sporadically.
I already have posted a part of my problem under this topic viewtopic.php?f=17&t=14750, because I wanted to disable the debug checks within the Debug DLLs.
But after I didn't get any response, and I did some additional analysis, I wanted to describe my problem in a new topic with all the information I could collect so far, I hope that is OK.
Details:
Windows 7 32 bit
JCEF Version = 3.2704.150
CEF Version = 3.2704.1434
Chromium Version = 51.0.2704.103
Used JVM arguments: -Xmx512m
Used Application arguments: --ppapi-flash-path=\\pepflashplayer32.dll --allow-outdated-plugins --noerrdialogs --log-file=D:\Temp\head_ci\CEF_DUMMY.log
Our problem is only reproducible with Windows 7 (32bit), it is not reproducible with Windows 8 (64bit) or with Windows 10 (64bit). Unfortunately we could not test this problem with a Windows 7 64bit oder Windows 10 (32bit), so I don't
know if our problem occurs because of Windows 7 or because of 32bit or because of both (Win 7 and 32bit).
Use case (cancel print dialog) and reproduction with Windows 7:
Open any PDF, click the print button, print dialog is opened. Cancel the print dialog with "Cancel" button or with "X". It does not occur everytime, sometimes I have to click the print button and click the cancel button several times,
before the application crashes and is closed immediately. A hs_err.logfile is created with an EXCEPTION ACCESS VIOLATION in the COMCTL32.dll. See attached hs_err.logfile "hs_err_win7_ReleaseDLLs.log".
Unfortunately I don't get any further information or some stack with the Release pdb file or with the Debug pdb file.
Does anyone know, why I sporadically get such crashes with an EXCEPTION ACCESS VIOLATION in the COMCTL32.dll?
I really would appreciate your help!
Thank you!