JCEF suddenly consuming all memory and crashing

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Thu Oct 07, 2021 2:19 pm

Today all of a sudden on my company's network our existing application using JCEF consumes all memory and crashes the application.

This happens only on our company network, not on my home internet connection or elsewhere. cef.log is empty and I have no clue why this is happening ?

Does this look familiar to anyone ? could JCEF/chromium possibly be hacked ?
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: JCEF suddenly consuming all memory and crashing

Postby magreenblatt » Thu Oct 07, 2021 2:32 pm

What changed recently in your JCEF usage? Did you update the version, change the content loaded, etc?
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Fri Oct 08, 2021 3:57 am

Nothing changed in our setup, it is as if something in our corporate network environment changed, and suddenly this starts happening...
It happens as CEF client is loaded, even before any web page is loaded.
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: JCEF suddenly consuming all memory and crashing

Postby magreenblatt » Fri Oct 08, 2021 4:30 am

Some change in DNS config or network proxy?
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Fri Oct 08, 2021 8:50 am

It must be something in our network, but how can such changes make JCEF explode ? I am trying to update our JCEF version to see if that makes the problem go away...
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: JCEF suddenly consuming all memory and crashing

Postby magreenblatt » Fri Oct 08, 2021 9:03 am

Impossible to say without knowing the cause.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Fri Oct 08, 2021 9:31 am

I have put the logging into verbose mode, then startup the application without loading any URL, maybe something in this log that can provide a clue ?

[1008/162740.909:VERBOSE1:pref_proxy_config_tracker_impl.cc(186)] 00000186DAC0B9C0: set chrome proxy config service to 00000186D78996A0
[1008/162740.924:VERBOSE1:webrtc_internals.cc(118)] Could not get the download directory.
[1008/162741.431:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: http://wpad/wpad.dat
[1008/162741.435:VERBOSE1:pac_file_fetcher_impl.cc(301)] Fetched PAC script does not have a proper mime type:
[1008/162741.555:VERBOSE1:proxy_resolver_v8_tracing.cc(930)] PAC-error: line: 14: Uncaught SyntaxError: Unexpected identifier
[1008/162741.556:VERBOSE1:configured_proxy_resolution_service.cc(1139)] Failed configuring with PAC script, falling-back to manual proxy servers.
[1008/162749.559:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: http://wpad/wpad.dat
[1008/162749.561:VERBOSE1:pac_file_fetcher_impl.cc(301)] Fetched PAC script does not have a proper mime type:
[1008/162853.366:VERBOSE1:statistics_recorder.cc(430)] Collections of all histograms
Histogram: ChildProcess.FieldTrials.CreateFromShmemSuccess recorded 1 samples, mean = 1.0 (flags = 0x1)
0 O (0 = 0.0%)
1 ------------------------------------------------------------------------O (1 = 100.0%) {0.0%}
2 O (0 = 0.0%) {100.0%}

Histogram: SharedMemory.MapBlockedForSecurity recorded 1 samples, mean = 0.0 (flags = 0x1)
0 ------------------------------------------------------------------------O (1 = 100.0%)
1 ...

Histogram: ThreadPool.HeartbeatLatencyMicroseconds.ContentChild.BackgroundTaskPriority recorded 0 samples (flags = 0x1)
0 ...

Histogram: ThreadPool.HeartbeatLatencyMicroseconds.ContentChild.UserBlockingTaskPriority recorded 0 samples (flags = 0x1)
0 ...

Histogram: ThreadPool.HeartbeatLatencyMicroseconds.ContentChild.UserVisibleTaskPriority recorded 0 samples (flags = 0x1)
0 ...

Histogram: ThreadPool.NumTasksBeforeDetach.ContentChild.Background recorded 0 samples (flags = 0x1)
0 ...

Histogram: ThreadPool.NumTasksBeforeDetach.ContentChild.Foreground recorded 1 samples, mean = 0.0 (flags = 0x1)
0 ------------------------------------------------------------------------O (1 = 100.0%)
1 ...

Histogram: V8.Initializer.LoadV8Snapshot.Result recorded 1 samples, mean = 0.0 (flags = 0x1)
0 ------------------------------------------------------------------------O (1 = 100.0%)
1 ...

Histogram: V8.Initializer.OpenV8File.Result recorded 1 samples, mean = 0.0 (flags = 0x1)
0 ------------------------------------------------------------------------O (1 = 100.0%)
1 ...
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Fri Oct 08, 2021 9:50 am

My collegue just points out to me it may be related to this: viewtopic.php?f=6&t=17247
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: JCEF suddenly consuming all memory and crashing

Postby Adriaanse » Fri Oct 08, 2021 10:23 am

Someone posted an invalid WPAD config in our network, brilliant !!!

Thanks for your support, have a nice weekend !
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 3 guests