Page 1 of 1

JCEF suddenly consuming all memory and crashing

PostPosted: Thu Oct 07, 2021 2:19 pm
by Adriaanse
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 ?

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Thu Oct 07, 2021 2:32 pm
by magreenblatt
What changed recently in your JCEF usage? Did you update the version, change the content loaded, etc?

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 3:57 am
by Adriaanse
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.

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 4:30 am
by magreenblatt
Some change in DNS config or network proxy?

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 8:50 am
by Adriaanse
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...

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 9:03 am
by magreenblatt
Impossible to say without knowing the cause.

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 9:31 am
by Adriaanse
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 ...

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 9:50 am
by Adriaanse
My collegue just points out to me it may be related to this: viewtopic.php?f=6&t=17247

Re: JCEF suddenly consuming all memory and crashing

PostPosted: Fri Oct 08, 2021 10:23 am
by Adriaanse
Someone posted an invalid WPAD config in our network, brilliant !!!

Thanks for your support, have a nice weekend !