Open PaduaPlay opened 1 month ago
Same problem here but on windows 10
This seems to be a known issue with various 'forks' of Chromium _ Brave, Chromium itself, Ungoogled Chromium, Google Chrome etc. - but only in the 125.x versions. The, earlier, 124.x versions work fine.
https://github.com/ungoogled-software/ungoogled-chromium-windows/issues/353
The reason for the 'print preview failed' error seems to be some permissions which are not set when the portable / packed files are unpacked. Apparently it is fine with installed versions.
There is also a solution posted to set these permissions needed for the Ctrl P command and print preview to work.
Running icacls from Powershell..
icacls X:\directorywherethebrowserisinstalled\ /grant "ALL APPLICATION PACKAGES:(OI)(CI)(RX)" /t
Of course, replacing X:\directorywherethebrowserisinstalled with the folder where the browser is installed.
Have tried it, and print preview works.
Hopefully the upcoming releases of the various Chromium forks, including Brave, will take care of any such required permissions so all of this extraneous permission setting is not needed.
I am one of those affected by this problem. Even tried resetting my Brave Desktop browser to default factory settings, but it has no effect.
CTRL-P
Print preview failed
, blank preview panePrint menu options
& Save
button all disabledCTRL-SHIFT-P
The selected printer is not available or not installed correctly. Check your printer or try selecting another printer.
D:\Software\BravePortable\
(ie. "non-standard" location)After CTRL-P fails to function correctly, loading brave://histograms/ChildProcess.LaunchFailed
always shows the following. The stats are identical regardless of the number of tests.
- Histogram: ChildProcess.LaunchFailed.UtilityProcessErrorCode recorded 1 samples (flags = 0x41) [#]
44 -O (1 = 100.0%)
- Histogram: ChildProcess.LaunchFailed.UtilityProcessHash recorded 1 samples (flags = 0x41) [#]
-657129659-O (1 = 100.0%)
- Histogram: ChildProcess.LaunchFailed.WinLastError recorded 1 samples (flags = 0x41) [#]
0 -O (1 = 100.0%)
brave://histograms/ChildProcess.LaunchFailed
:@PaduaPlay: Running icacls from Powershell.. icacls X:\directorywherethebrowserisinstalled\ /grant "ALL APPLICATION PACKAGES:(OI)(CI)(RX)" /t
For my Brave Desktop browser, the above icacls
command has no effect in resolving the Print Preview & Save as PDF failure -- even though the command completed successfully in elevated PowerShell console (run as Administrator & as SYSTEM user), & the ACL permissions are indeed correctly applied (as verified by checking Brave's working folder via File Explorer's Security
tab).
Although I didn't test the below, this pair of icacls
commands (must run both) apparently works for some users:
https://issues.chromium.org/issues/339994760#comment33
icacls "X:\BraveBrowserPath\" /grant *S-1-15-3-1024-3424233489-972189580-2057154623-747635277-1604371224-316187997-3786583170-1043257646:(OI)(CI)(RX)
icacls "X:\BraveBrowserPath\" /grant *S-1-15-3-1024-2302894289-466761758-1166120688-1039016420-2430351297-4240214049-4028510897-3317428798:(OI)(CI)(RX)
Slightly different icacls
command pair:
https://github.com/ungoogled-software/ungoogled-chromium-windows/issues/353#issuecomment-2132210216
What works for me is running Brave Desktop's main executable brave.exe
(or its portable launcher helper) using the switch --disable-features=PrintCompositorLPAC
.
LNK
file for brave.exe
.Target
field, set:
"D:\BraveDesktop\brave.exe" --disable-features=PrintCompositorLPAC
LNK
file for the portable launcher file (eg. brave-portable.exe
).Target
field, set:
"D:\BravePortable\brave-portable.exe" --disable-features=PrintCompositorLPAC
Description
The Ctrl P print dialog opens a 'print preview failed' window.
Forcing printing Ctrl Shift P causes a browser hang.
With any printer selected as the default printer.
Steps to reproduce
Actual result
Expected result
Ctrl P should show a print preview.
Reproduces how often
Easily reproduced
Brave version (brave://version info)
Release Version 1.66.115 Chromium: 125.0.6422.112 (Official Build) (64-bit) on Windows 11
https://github.com/brave/brave-browser/releases/download/v1.66.115/brave-v1.66.115-win32-x64.zip (portable version - not the setup.exe version)
Channel information
Reproducibility
Miscellaneous information
Seems to be a new issue, with the new version of Chromium?
Printing works fine with other Windows apps , Firefox etc.