electron.net-api-demos icon indicating copy to clipboard operation
electron.net-api-demos copied to clipboard

Program window launches but is blank on Linux

Open andrewschuler opened this issue 1 year ago • 0 comments

Hello I'm trying to get this program to run on Linux. Specifically this is Kubuntu

Here is my dotnet info: .NET SDK (reflecting any global.json): Version: 6.0.116 Commit: b605cc131f

Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: ubuntu.22.04-x64 Base Path: /usr/lib/dotnet/sdk/6.0.116/

global.json file: Not found

Host: Version: 6.0.16 Architecture: x64 Commit: 1e620a42e7

.NET SDKs installed: 6.0.116 [/usr/lib/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 6.0.16 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.16 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Download .NET: https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info

Node version: v18.12.1

NPM version 8.19.2

CLI version ElectronNET.CLI Version: 23.6.1.0

Steps:

  1. cloned repository
  2. ran 'electronize start'

The window starts but is blank. Here is the output from the command ElectronHostHook handling started... Invoke electron - in dir: /home/andy/Documents/github/electron.net-api-demos/obj/Host/node_modules/.bin ./electron "../../main.js" Electron Socket IO Port: 8000 libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [3289:0425/115724.828466:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization Electron Socket started on port 8000 at 127.0.0.1 ASP.NET Core Port: 8001 stdout: Use Electron Port: 8000

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [3324:0425/115724.987426:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [3360:0425/115725.058525:ERROR:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported. [3323:0425/115725.061926:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. ASP.NET Core Application connected... global.electronsocket Qy2I1YSWUyLQFfWvAAAC 2023-04-25T18:57:25.183Z stdout: BridgeConnector connected!

stdout: Called Event BrowserWindowCreated - data 2

stdout: ASP.NET Core host has fully started. Hosting environment: Production Content root path: /home/andy/Documents/github/electron.net-api-demos/obj/Host/bin Now listening on: http://localhost:8001 Application started. Press Ctrl+C to shut down.

(node:3260) electron: Failed to load URL: http://localhost:8001/ with error: ERR_CONNECTION_REFUSED (Use electron --trace-warnings ... to show where the warning was created) [3260:0425/115725.378586:ERROR:interface_endpoint_client.cc(695)] Message 3 rejected by interface blink.mojom.Widget stdout: Application is shutting down...

andrewschuler avatar Apr 25 '23 19:04 andrewschuler