Page 1 of 2

Re: Chromium slows down the start of excel or word

Posted: Wed Oct 24, 2018 3:13 pm
by salvadordf
It's the first time I read something like that. :?

I'm a LibreOffice user and I can't test this issue but I would suggest that you open the task manager in Windows to see what's the process hogging your CPU.

The usual suspects causing this issue are :
  • Antivirus
  • Microsoft Compatibility Telemetry
  • Windows Update

Re: Chromium slows down the start of excel or word

Posted: Fri Nov 02, 2018 3:07 pm
by salvadordf
As I commented earlier, this is the first time I see something like this.

If you search "excel slow startup" you will see many web pages with possible solutions like this one :
http://www.brucebnews.com/2017/07/a-pos ... ening-bug/

As a last resort, I would try to disable every possible property in GlobalCEFApp and TChromium to see if there's some improvement.

I'm sorry, but I can't test this issue and the fact that nobody else has reported anything remotely like this makes me think that it could be caused by external reasons like virus infections, system or office corruption, etc.

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 7:27 am
by andreas michelberger
Hallo Salvador, I build SimpleBrowser from the CEF4Delphi-Demos (Current Version, Chromium 70)
I have the same behavior as in our genesisWorld-Integration

CommandLine:
"D:\github\CEF4Delphi\bin\SimpleBrowser.exe" --no-sandbox --lang=en-US --log-file="D:\github\CEF4Delphi\bin\debug.log" --log-severity=disable --enable-accelerated-plugins --enable-system-flash --enable-media-stream=1 --enable-speech-input=1 --disable-gpu --disable-gpu-compositing --disable-gpu-shader-disk-cache --site-per-process

1. Start SimpleBrowser and doubleclick on xlsx-File in Explorer -> Excel starts after about 50 seconds
2. Start SimpleBrowser and doubleclick on xlsx-File in Explorer and close SimpleBrowser -> Excel starts immediately after quitting SimpleBrowser
3. Start SimpleBrowser, wait about 50 seconds and doubleclick on xlsx-File in Explorer -> Excel starts immediatelly

Now I reduce the commands by following modifications in SimpleBrowser.dpr:
GlobalCEFApp := TCefApplication.Create;
// In case you want to use custom directories for the CEF3 binaries, cache, cookies and user data.
// If you don't set a cache directory the browser will use in-memory cache.
//start modification
GlobalCEFApp.EnableGPU := true;
GlobalCEFApp.FlashEnabled := false;
GlobalCEFApp.Cache := 'cef\cache';
GlobalCEFApp.SitePerProcess := false;
//end modification
to
CommandLine:
"D:\github\CEF4Delphi\bin\SimpleBrowser.exe" --no-sandbox --lang=en-US --log-file="D:\github\CEF4Delphi\bin\debug.log" --log-severity=disable --enable-media-stream=1 --enable-speech-input=1
-> Same behavior as described above

I checked the behavior with AOL Desktop Gold (It is a program that also contains the chromium embedded framework (with chromium 67))
CommandLine:
"C:\Users\andreas.michelberger\AppData\Local\AOLDesktop\app-11.0.2052\AolDesktop.exe" --preload --browser-subprocess-path=CefSharp.BrowserSubprocess.exe --no-sandbox --product-version="Chrome/67.0.3396.79 AOL/11.0 AOLBUILD/11.0.2052" --lang=de --log-file="C:\Users\andreas.michelberger\AppData\Local\AOLDesktop\app-11.0.2052\debug.log" --log-severity=error --uncaught-exception-stack-size=10 --enable-system-flash=1 --enable-media-stream=1 --enable-widevine-cdm=1 --no-proxy-server=1
-> excel starts immediatelly

Excel is an important product for our customers
Do you have another idea how we can improve the behavior

Best regards from Karlsruhe
Andreas

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 8:01 am
by salvadordf
Please, repeat the test using the official CEF3 sample application : Provide all the details you can about :
  • Windows version
  • Excel version
  • Delphi version
  • build configuration : debug or release.
  • target platform : 32 or 64 bits.
Did you noticed this problem with previous CEF4Delphi versions?

Do you have the same results if you disable the antivirus?

Do you notice the same problem with an empty Delphi application? Create a new VCL application project, build it and try to open an excel file.

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 12:49 pm
by andreas michelberger
Hallo Salvador,
I switched to the current master in cef4delphi (SHA1 ID=428ae519b9aae713ce06ff28d5fe415666df2162)
I use [32 bits](http://opensource.spotify.com/cefbuilds ... 32.tar.bz2)

I have Tested with
Windows Versions: Windows 10 PRO (64-Bit) and Windows 8.1 (64 bit)
Excel Version: Microsoft Office Standard 2013 and Microsoft Office Standard 2016
Delphi Versions: Delphi 10 Seattle Subscription Update 1 and Delphi 10.2 Update 3
buildconfiguration: both
target platform: 32 bit

Switched to "Update to CEF 3.2987.1599.g495fb8c" (SHA1 ID 5945ec8d49519892768bf4a71e36cc7bdb7cf9b3)
Loaded cef_binary_3.2987.1599.g495fb8c_windows32 and Build SimpleBrowser
-> Same Problem

Empty Delphi-Application -> Excel starts immediately

Additional description: excel.exe is not in the taskmanager during the 50 seconds waittime

Kindly regards
Andreas

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 1:02 pm
by andreas michelberger
I have a screencast that shows the behavior
But the file size of the zip (includes the flv-file) is 5000KB (To great for Upload)
How can I make this available to you?

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 1:32 pm
by salvadordf
Thank very much!

Please, download this file, decompress it and execute "cefclient.exe" :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2

All the information you gave is very useful but it would be perfect if you could run "cefclient.exe" and then try to open an xlsx file.

Use any of these services to share the screencast :
https://www.google.com/drive/
https://mega.nz/

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 1:51 pm
by andreas michelberger
Hallo Salvador, this cefclient is perfect.
Excel starts immediately

My SimpleBrowser still has the problem in this environment (copied paralle to cefclient)
How can I solve the Problem?

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 1:59 pm
by salvadordf
I'll have to ask some favors to test the demos with Office.

I'll fix this as soon as I can.

Re: Chromium slows down the start of excel or word

Posted: Wed Nov 14, 2018 2:08 pm
by andreas michelberger
Thank you very much