-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error launch in linux #163
Comments
I have same error on both ubuntu 24.04 and debian 12 |
@Haltroy can you help? |
Never tried the NuGet package version (we used the demo app for our PR). I'll try but I need more than just this log (some system information like GPU name, distribution name and version etc.) so I can look at it properly. |
I doesn't use nuget , use the latest code , also tried Linux support (Final) #153 , but the same error occured . os : Debian GNU/Linux 12 (bookworm) my error is : MESA-INTEL: warning: Haswell Vulkan support is incomplete |
Made a simple C# Avalonia project with nothing but a textbox (so I can navigate to a website) and the browser control (added to a panel right after the InitializeComponent(); line in the main constructor of the window). I don't see any issues so far. Will try that on a Debian VM. |
OK I installed Debian 12 with GNOME and it gave this error:
I'm installing KDE Plasma next (to same machine) and will try other video options. |
I tested on kde on debian , it run like a charm, but failed with gnome . |
GNOME is just weird. They have a different philosophy than other DEs. They only implement stuff that they are going to use and nothing else. This is a well known issue in the Linux community. |
Coming from this thread OutSystems/WebView#355. |
I'm not the linux expert here. Can't help on that matter. |
Is |
No, I just couldn't figure out why GNOME is doing this. It should work fine since anything that is Chrome/Chromium/CEF based works fine.
Electron uses CEF. To keep is simple, every Electron app is like a tab on a Chromium website that happens to be the only tab to display. These issues are nothing to do about CEF or Electron. It's kinda our fault or something is not working as expected that I couldn't find it. Looking at the error code. Looks like some of libraries are still not copied to the output of example app (or apps in this case since this repo's example app does the same thing too) for some reason using dotnet cli. As far as I know somehow my Rider installation is the only one who can build it properly and I haven't figured out why yet. Anyways, your issue is different than this one. This is GPU process dying and yours is build process not copying the output files of libraries to the output of example app. This is a kinda known issue on here so try copying missing DLLs to the bin folder of example app and if the CefGlueBrowserProcess folder is missing in the example app copy it from BrowserProcess's bin folder. If you still want to try out CefGlue on Avalonia my advice is to create a new clean Avalonia project and add CefGlue.Avalonia package there. Then just add the browser programmatically via code (not as inside the axaml file since Avalonia can't find a default constructor for it) (should be added to view right after InitializeComponent(); called) and it should work. I'm still on process of finding the actual root cause of GPU crash issue while also figuring out how to build the example app properly using dotnet cli. |
Just tested on an Arch VM (I had one laying around I kinda forgot why I made that VM) which bas just base (nothing was installed) so I installed GNOME into it and made a super basic app that creates AvaloniaCefBrowser and sets it as window's content. It worked without any issues. TL;DL I have no idea what's causing it and issue fixes itself out of nowhere but I'm not giving up on that yet. |
I have an error in astra linux |
OK so whats the issue? What's it saying? Same log or something different this time? Also if you are running the example app make sure that required DLLs are copied to the bin folder. Sometimes dotnet CLI can't copy them I have no idea why (IMO everything is set up correctly in the solution). I though the link was logs from an astralinux machine but nope that's just straight up the whole installation ISO of astralinux. |
This is the console output when running the example, see message 1. The libraries are all in place. |
Hello there! I`ve also Astra Linux and had same problem. |
So I guess this issue solved itself. (Except the Example app deciding to not copy stuff randomly at build sometimes and debuggers aren't working on the Example app). The executable flag getting removed might be because NuGet packages are basically ZIP files which doesn't store Unix codes (such as executable flags). There's nothing we can do on that part aside form just telling the dotnet to re-mark the BrowserProcess executable as executable on Linux. Also for AstraLinux users: If the AstraLinux's .NET didn't work just use the Debian instructions for installing .NET on official Microsoft. That's how I got it working. |
The text was updated successfully, but these errors were encountered: