SOLVED: How to deal with "Failed to launch GPU process"?

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

SOLVED: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Tue Jun 09, 2020 1:20 pm

I am getting the "Failed to launch GPU process" message when actually trying to create the first window containing a browser.

I also observe the application still updating its windows in real time (it is showing real-time data), but pretty unresponsive in its reactions to mouse movements, let alone clicks.
The debugger tells me that the AWT message loop is exlusively in CefApp.N_DoMessageLoopWork, though I'm pretty sure it's still processing other events.

1) What might be the cause of the GPU process crashing?
2) How can my application stay responsive even if the GPU crash happens?

My colleague reported that the windowless rendering mode will make the effect go away; for me, it would crash whether windowless rendering is on or off, so I'm taking that report with a grain of salt.

Technical detail follows.

Log output from application start-up:

Code: Select all
2020-06-09T19:50:13.832+0200 [main                        ] [INFO ] com.rolotec.vega.base.MainFrame          - Using java-cef version: JCEF Version = 81.2.24.0
CEF Version = 81.2.24
Chromium Version = 81.0.4044.113
...
2020-06-09T19:50:30.730+0200 [AWT-EventQueue-0            ] [INFO ] org.cef.CefApp                           - initialize on Thread[AWT-EventQueue-0,6,main] with library path ./src/main/resources/lib
[0609/195030.873:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 1 time(s)
[0609/195030.874:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 2 time(s)
[0609/195030.876:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 3 time(s)
[0609/195030.877:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 4 time(s)
[0609/195030.878:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 5 time(s)
[0609/195030.878:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 6 time(s)
[0609/195030.879:ERROR:browser_gpu_channel_host_factory.cc(153)] Failed to launch GPU process.
[0609/195031.156:ERROR:browser_gpu_channel_host_factory.cc(153)] Failed to launch GPU process.


Later I made some log output by placing a breakpoint in EventQueue.dispatchEvent and have it print the AWTEvent being processed:

Code: Select all
sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=javax.swing.JComponent$$Lambda$468/179761235@55ecc1f7,notifier=null,catchExceptions=false,when=1591725944390] on javax.swing.JPanel[,1497,16,257x24,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=javax.swing.JComponent$$Lambda$468/179761235@73a962ea,notifier=null,catchExceptions=false,when=1591725944390] on javax.swing.JPanel[,1640,0,114x15,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1bd9027b,notifier=null,catchExceptions=false,when=1591725944262] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6a889f5c,notifier=null,catchExceptions=false,when=1591725944277] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@59d80883,notifier=null,catchExceptions=false,when=1591725944277] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725944308] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.service.data.chart.AbstractChartDataAdaptor$$Lambda$355/1894505292@324783fa,notifier=null,catchExceptions=false,when=1591725944379] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725944389] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1ac38e1e,notifier=null,catchExceptions=false,when=1591725944490] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@59e0781,notifier=null,catchExceptions=false,when=1591725944644] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@102ebdcd,notifier=null,catchExceptions=false,when=1591725944663] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@1e78a461,notifier=null,catchExceptions=false,when=1591725944663] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725944809] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.browser.CefBrowserWr$1$1@4e954e03,notifier=null,catchExceptions=false,when=1591725944877] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1595b01c,notifier=null,catchExceptions=false,when=1591725945012] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@74520481,notifier=null,catchExceptions=false,when=1591725945028] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@5db8ef40,notifier=null,catchExceptions=false,when=1591725945028] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725945077] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725945129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@11405d9,notifier=null,catchExceptions=false,when=1591725945259] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@65867f76,notifier=null,catchExceptions=false,when=1591725945275] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@7fde4e69,notifier=null,catchExceptions=false,when=1591725945275] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725945311] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@2d32f4f6,notifier=null,catchExceptions=false,when=1591725945509] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@7b9953e9,notifier=null,catchExceptions=false,when=1591725945524] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@76b9f7f5,notifier=null,catchExceptions=false,when=1591725945524] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@8e82e15,notifier=null,catchExceptions=false,when=1591725945716] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@395f22fa,notifier=null,catchExceptions=false,when=1591725945732] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@607c7b,notifier=null,catchExceptions=false,when=1591725945733] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725945813] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@44b4ea26,notifier=null,catchExceptions=false,when=1591725945863] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@43c58b8,notifier=null,catchExceptions=false,when=1591725945878] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@7bc6fe0,notifier=null,catchExceptions=false,when=1591725945878] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@46d524f5,notifier=null,catchExceptions=false,when=1591725946058] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725946064] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@204a5d0f,notifier=null,catchExceptions=false,when=1591725946079] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@44ede589,notifier=null,catchExceptions=false,when=1591725946079] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725946129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@16e32576,notifier=null,catchExceptions=false,when=1591725946260] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@64b3a080,notifier=null,catchExceptions=false,when=1591725946277] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4fd9d032,notifier=null,catchExceptions=false,when=1591725946278] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725946315] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@4b4a17cf,notifier=null,catchExceptions=false,when=1591725946457] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@32841986,notifier=null,catchExceptions=false,when=1591725946475] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@335d17a4,notifier=null,catchExceptions=false,when=1591725946476] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725946566] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@6843bd5,notifier=null,catchExceptions=false,when=1591725946661] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@145e5aaa,notifier=null,catchExceptions=false,when=1591725946676] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4f659fb2,notifier=null,catchExceptions=false,when=1591725946676] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725946817] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@28adc8d9,notifier=null,catchExceptions=false,when=1591725946859] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4e405c6c,notifier=null,catchExceptions=false,when=1591725946876] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@2dbbd219,notifier=null,catchExceptions=false,when=1591725946876] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@64ca5376,notifier=null,catchExceptions=false,when=1591725947057] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725947067] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@28a5c0bf,notifier=null,catchExceptions=false,when=1591725947074] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@5bfde4a8,notifier=null,catchExceptions=false,when=1591725947075] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725947129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@7285f119,notifier=null,catchExceptions=false,when=1591725947258] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@74a367ce,notifier=null,catchExceptions=false,when=1591725947281] on sun.awt.windows.WToolkit@4b9006e
sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=javax.swing.JComponent$$Lambda$468/179761235@404f0556,notifier=null,catchExceptions=false,when=1591725947380] on javax.swing.JPanel[,1640,0,114x15,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@16a36c84,notifier=null,catchExceptions=false,when=1591725947281] on sun.awt.windows.WToolkit@4b9006e
sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=javax.swing.JComponent$$Lambda$468/179761235@2481d9d7,notifier=null,catchExceptions=false,when=1591725947480] on javax.swing.JPanel[,1497,16,257x24,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725947318] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725947380] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1c5c0da4,notifier=null,catchExceptions=false,when=1591725947460] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.service.data.chart.AbstractChartDataAdaptor$$Lambda$355/1894505292@111695e7,notifier=null,catchExceptions=false,when=1591725947480] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6a82dbd5,notifier=null,catchExceptions=false,when=1591725947525] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@16cfca0c,notifier=null,catchExceptions=false,when=1591725947525] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725947776] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725947819] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@3080f5ad,notifier=null,catchExceptions=false,when=1591725947860] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@5877d61b,notifier=null,catchExceptions=false,when=1591725947877] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@756ddeae,notifier=null,catchExceptions=false,when=1591725947877] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725947987] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725948070] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@881f074,notifier=null,catchExceptions=false,when=1591725948125] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725948129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6e202871,notifier=null,catchExceptions=false,when=1591725948142] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@752303b5,notifier=null,catchExceptions=false,when=1591725948142] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725948321] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@176514f1,notifier=null,catchExceptions=false,when=1591725948420] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@78e9d5cc,notifier=null,catchExceptions=false,when=1591725948434] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@15ba5fcf,notifier=null,catchExceptions=false,when=1591725948435] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725948572] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@3893492d,notifier=null,catchExceptions=false,when=1591725948622] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@e62bc46,notifier=null,catchExceptions=false,when=1591725948639] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4961ce62,notifier=null,catchExceptions=false,when=1591725948640] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1cbd9748,notifier=null,catchExceptions=false,when=1591725948820] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725948822] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@7a69815,notifier=null,catchExceptions=false,when=1591725948836] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4073445d,notifier=null,catchExceptions=false,when=1591725948837] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@25080474,notifier=null,catchExceptions=false,when=1591725949018] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@16dd56f0,notifier=null,catchExceptions=false,when=1591725949037] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@4c56b9da,notifier=null,catchExceptions=false,when=1591725949037] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725949073] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725949129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@2f1ada21,notifier=null,catchExceptions=false,when=1591725949153] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@7c99253,notifier=null,catchExceptions=false,when=1591725949180] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6247eac3,notifier=null,catchExceptions=false,when=1591725949206] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@168f2a3f,notifier=null,catchExceptions=false,when=1591725949206] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725949324] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.RepaintManager$ProcessingRunnable@10f472d0,notifier=null,catchExceptions=false,when=1591725949377] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@1ac38e1e,notifier=null,catchExceptions=false,when=1591725949478] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@3da79e05,notifier=null,catchExceptions=false,when=1591725949516] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@5296955c,notifier=null,catchExceptions=false,when=1591725949540] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@203791dc,notifier=null,catchExceptions=false,when=1591725949540] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.browser.CefBrowserWr$1$1@1a382c14,notifier=null,catchExceptions=false,when=1591725949695] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725949824] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@7c62767a,notifier=null,catchExceptions=false,when=1591725949829] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@60c7a15b,notifier=null,catchExceptions=false,when=1591725949846] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@db2ab07,notifier=null,catchExceptions=false,when=1591725949846] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725950075] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@398f0323,notifier=null,catchExceptions=false,when=1591725950076] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@649fa030,notifier=null,catchExceptions=false,when=1591725950096] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@7cedd537,notifier=null,catchExceptions=false,when=1591725950096] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.rolotec.vega.swing.util.ScreenConfiguration$1$$Lambda$160/106258994@4f251f3f,notifier=null,catchExceptions=false,when=1591725950129] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725950326] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@602735a3,notifier=null,catchExceptions=false,when=1591725950458] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@792097b7,notifier=null,catchExceptions=false,when=1591725950524] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6bf6b1c9,notifier=null,catchExceptions=false,when=1591725950525] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@650566e1,notifier=null,catchExceptions=false,when=1591725950828] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoPostEvent@16948360,notifier=null,catchExceptions=false,when=1591725950954] on sun.awt.windows.WToolkit@4b9006e
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.cef.CefApp$6@6b74232a,notifier=null,catchExceptions=false,when=1591725951012] on sun.awt.windows.WToolkit@4b9006e


It seems like some resizing isn't reaching a stable state, so AWT never gets around to processing mouse clicks or keyboard presses.
The application needs to be terminated through Task Manager if that happens. Terminating it through the debugger takes 10 seconds of "waiting for debugger response", another 35 seconds for IntelliJ to actually report disconnect from the VM, and an unknown time until application termination (more than five minutes, I shut the appliation down using Task Manager at that point).
Last edited by joachimdurchholzsix on Thu Aug 20, 2020 4:40 am, edited 2 times in total.
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby magreenblatt » Tue Jun 09, 2020 2:55 pm

What OS and Java version? Does the problem reproduce with the sample apps?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Wed Jun 10, 2020 12:54 am

Win 7, Java 1.8.162. (Migrating to Java 9 or later is not an option currently.)
Does not happen with the detailed test (tried simple test but the class wasn't there, can't easily run the unit tests because we don't have jupiter, didn't bother to make these tests work yet).
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Wed Jun 10, 2020 1:59 am

viewtopic.php?f=10&t=15941 told me we have to add the swiftshader/ subdirectory to java.library.path, so I did that.
Didn't see the GPU process crash on the first debugging run and thought I had solved at least that issue, but got it again on the next call. Maybe because I aborted the previous run from within the debugger, and there's GPU deinitialization that needs to happen before the GPU can be used again?
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Wed Jun 10, 2020 2:55 am

Switching off off-screen rendering solved the looping. We suspect it's related to not having jogl on the classpath.
Is there an authoritative description what artifacts need to be present in classpath and libary path under which circumstances? I couldn't find any, but I might have used the wrong search keywords.

The GPU process crash warning is still there, so something is still flaky.
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Wed Jun 10, 2020 2:58 am

Another option but I don't know how to apply it: https://simpleit.rocks/linux/ubuntu/fix ... -in-linux/ is telling me that I might want to disable GPU rendering.

I am willing to take the performance hit if I can't solve the GPU issue differently.
Should I try that?
How would I pass those parameters to CEF? The String[] args parameter in CefApp initialization?
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby magreenblatt » Wed Jun 10, 2020 10:20 am

You say it works with the detailed test app. I suggest looking at or running the make_distrib script to see what it includes, and then comparing to your app setup.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Thu Jun 11, 2020 1:42 am

make_distrib.bat gives me a list of files, yep - I have the files, I'm just not 100% sure what to do with each, so here we go.
I tried to put them into groups but feel free to answer summarily where appropriate.
Essentially, I need to know whether I lost files (we checked but mistakes can happen), which of these files are actually needed, and how to configure things so the files are found.

A) jar files - will be found if on the classpath.
Which of these are needed under what circumstances?

Code: Select all
./gluegen-rt.jar
./gluegen-rt-natives-windows-amd64.jar
./jcef.jar
./jcef-tests.jar
./jogl-all.jar
./jogl-all-natives-windows-amd64.jar


B) DLLs and EXEs - I understand they need to be findable through java.library.path; do I need to add swiftshader/ to java.library.path as well?
Which of these are needed under what circumstances?

Code: Select all
./lib/win64/chrome_elf.dll
./lib/win64/d3dcompiler_47.dll
./lib/win64/jcef.dll
./lib/win64/jcef_helper.exe
./lib/win64/libcef.dll
./lib/win64/libEGL.dll
./lib/win64/libGLESv2.dll
./lib/win64/swiftshader/libEGL.dll
./lib/win64/swiftshader/libGLESv2.dll


C) PAK files - are they found through java.library.path, or via some other mechanism? (What kind of files are these - just string tables, or something else?)
Which of these are needed under what circumstances?

Code: Select all
./lib/win64/cef.pak
./lib/win64/cef_100_percent.pak
./lib/win64/cef_200_percent.pak
./lib/win64/cef_extensions.pak
./lib/win64/devtools_resources.pak

./lib/win64/locales/*.pak


D) Other files - are they found through java.library.path, or via some other mechanism?
Which of these are needed under what circumstances?

Code: Select all
./lib/win64/icudtl.dat
./lib/win64/snapshot_blob.bin
./lib/win64/v8_context_snapshot.bin


(Note: Presentation to stakeholders and decision-makers is tomorrow 11:00 am CEST.
I'll be staying online until today 10:00 pm CEST, so that's roughly the time window I have left for investigating this.
There will be a clear recommendation for java-cef if I am confident that the GPU crash issue can be solved.)
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby joachimdurchholzsix » Thu Jun 11, 2020 8:21 am

(Heh. We reviewed the competition and found that even with that crash, java-cef is still lacking a showstopper that the competition has.)
joachimdurchholzsix
Techie
 
Posts: 29
Joined: Mon Jun 08, 2020 3:52 am

Re: How to deal with "Failed to launch GPU process"?

Postby magreenblatt » Thu Jun 11, 2020 9:12 am

All of the above files are required (except jcef-tests.jar which is replaced by your application), depending on what you’re doing in/with the browser. The jar files need to be in the classpath and the dll/exe files need to be in the path. They should be organized as shown by the distribution (relative to the location of libcef.dll), but some of that organization is also configurable.

joachimdurchholzsix wrote:(Heh. We reviewed the competition and found that even with that crash, java-cef is still lacking a showstopper that the competition has.)

Well, don’t keep us in suspense. What is this showstopper? :)
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Next

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 17 guests