Canceling printing crashes the application (using Microsoft Print to PDF)
Posted: Tue Jan 21, 2025 2:41 pm
Hello again, everyone.
I have a problem when canceling a print job. The application closes abruptly.
I am using version 109 of CEF. I don't know if the problem has been fixed in newer versions, but I can't update at the moment for commercial reasons. Anyway, I tested it on versions 111 and 116. The same problem occurred in these versions.
To simulate this, I used the MiniBrowser demo.
- Open any page (I used google.com).
- Click on the Print option in the drop-down menu opened by the button next to the address bar;
- For the destination, I selected 'Microsoft Print to PDF';
- Click on Print (a dialog box will open to select the location);
- In this dialog box, click on Cancel.
At this point, an internal error occurs and the application crashes.
If the operation is not canceled or if it is canceled beforehand, the error does not occur.
In case it's helpful, the last console log message is this:
[0121/113313.017:WARNING:alloy_constrained_window_views_client.cc(63)] No likely focused browser
If this has been fixed in newer versions, could anyone help me apply a fix locally that doesn't require updating CEF and the framework?
If it hasn't been fixed, could anyone help me find a workaround?
I have a problem when canceling a print job. The application closes abruptly.
I am using version 109 of CEF. I don't know if the problem has been fixed in newer versions, but I can't update at the moment for commercial reasons. Anyway, I tested it on versions 111 and 116. The same problem occurred in these versions.
To simulate this, I used the MiniBrowser demo.
- Open any page (I used google.com).
- Click on the Print option in the drop-down menu opened by the button next to the address bar;
- For the destination, I selected 'Microsoft Print to PDF';
- Click on Print (a dialog box will open to select the location);
- In this dialog box, click on Cancel.
At this point, an internal error occurs and the application crashes.
If the operation is not canceled or if it is canceled beforehand, the error does not occur.
In case it's helpful, the last console log message is this:
[0121/113313.017:WARNING:alloy_constrained_window_views_client.cc(63)] No likely focused browser
If this has been fixed in newer versions, could anyone help me apply a fix locally that doesn't require updating CEF and the framework?
If it hasn't been fixed, could anyone help me find a workaround?