Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Issue on linux Virtual machine #396

Open
ghost opened this issue Oct 17, 2023 · 3 comments
Open

Issue on linux Virtual machine #396

ghost opened this issue Oct 17, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 17, 2023

The code runs on base ubuntu machine it works properly but when the same is run on vm ubuntu it is crashing.
Even the example code provided is crashing and giving the following output:
go run example/main.go
2023/10/18 00:21:42 astikit: starting worker...
2023/10/18 00:21:42 Starting...
2023/10/18 00:21:42 Provisioning...
2023/10/18 00:21:42 Astilectron has already been provisioned to version 0.57.0, moving on...
2023/10/18 00:21:42 Electron has already been provisioned to version 11.4.3, moving on...
2023/10/18 00:21:42 Listening...
2023/10/18 00:21:42 Executing...
2023/10/18 00:21:42 Starting cmd /home/roshan/Documents/go-astilectron-master/example/vendor/electron-linux-amd64/electron /home/roshan/Documents/go-astilectron-master/example/vendor/astilectron/main.js 127.0.0.1:33487 false
2023/10/18 00:21:43 Astilectron says: {"name":"app.event.ready","targetID":"app","displays":{"all":[{"id":33,"bounds":{"x":0,"y":0,"width":1832,"height":972},"workArea":{"x":70,"y":27,"width":1762,"height":945},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":1832,"height":972},"workAreaSize":{"width":1762,"height":945},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}],"primary":{"id":33,"bounds":{"x":0,"y":0,"width":1832,"height":972},"workArea":{"x":70,"y":27,"width":1762,"height":945},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":1832,"height":972},"workAreaSize":{"width":1762,"height":945},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}},"supported":{"notification":true}}
2023/10/18 00:21:43 Sending to Astilectron: {"name":"window.cmd.create","targetID":"1","sessionId":"2","url":"file:///home/roshan/Documents/go-astilectron-master/example/index.html","windowOptions":{"center":true,"height":700,"title":"Test","width":700}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.move","targetID":"1","bounds":{"x":601,"y":186,"width":700,"height":700}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.focus","targetID":"1"}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:43 Astilectron says: {"name":"window.event.leave.full.screen","targetID":"1","windowOptions":{"fullscreen":false}}
2023/10/18 00:21:44 Stderr says: [3853:1018/002144.745617:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.
2023/10/18 00:21:44 '/home/roshan/Documents/go-astilectron-master/example/vendor/electron-linux-amd64/electron' exited with code: -1
2023/10/18 00:21:44 App has crashed
2023/10/18 00:21:44 Stopping...
2023/10/18 00:21:44 astikit: stopping worker...
2023/10/18 00:21:44 astikit: worker is now waiting...
2023/10/18 00:21:44 Closing...
2023/10/18 00:21:44 accept tcp 127.0.0.1:33487: use of closed network connection while TCP accepting
2023/10/18 00:21:44 Stopping...

@asticode
Copy link
Owner

It seems that Chromium is looking for GPU but can't find it on the VM: Stderr says: [3853:1018/002144.745617:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.. Can you try to add the disable-gpu switch?

@ghost
Copy link
Author

ghost commented Oct 18, 2023

did'nt work

@asticode
Copy link
Owner

Unfortunately this is an issue with Chromium, there's not much this lib can do about it 😭

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant