You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The problem is that every time a print job is executed, a new Electron process appears in Windows Task Manager and doesn't get terminated after printing. When I perform a large number of prints (e.g., 100) in 5 hours, 100 Electron processes accumulate in Task Manager, consuming all available RAM and eventually causing the application to crash.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The problem is that every time a print job is executed, a new Electron process appears in Windows Task Manager and doesn't get terminated after printing. When I perform a large number of prints (e.g., 100) in 5 hours, 100 Electron processes accumulate in Task Manager, consuming all available RAM and eventually causing the application to crash.
How can I fix this?
$print = $request->print;
$defaultPrinter = null;
$printers = System::printers();
foreach ($printers as $printer) {
if ($printer->isDefault) {
$defaultPrinter = $printer;
break;
}
}
if ($defaultPrinter) {
$defaultPrinter->options['pageSize'] = 'AA';
$defaultPrinter->options['silent'] = true;
System::print($print, $defaultPrinter);
echo $print;
} else {
echo 'Default printer not found!';
}
Beta Was this translation helpful? Give feedback.
All reactions