Skip to content
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

X11 crashes in Live ISO and disk installation on VirtualBox 7.0.x and GNOME Boxes #86

Closed
UriHerrera opened this issue Dec 3, 2022 · 4 comments
Labels
upstream-bug Issues that are determined to not be caused by our configuration.

Comments

@UriHerrera
Copy link
Member

UriHerrera commented Dec 3, 2022

Describe the bug
When the distribution boots, either from the Live ISO or an installation using VirtualBox 7.0.x or GNOME Boxes, the graphical session does not start because X11 crashed and can't be started.

To Reproduce
Steps to reproduce the behavior:

  1. Download ISO
  2. Create VM or import an existing installation to either hypervisor
  3. Start VM
  4. VM boots, but there's no graphical session

Expected behavior
Graphical session starts

Screenshots
VirtualBox_Nitrux_02_12_2022_08_15_28

Desktop (please complete the following information):

  • Nitrux (=> 2.5.0)

Additional context
All I can find on the internet are multiple mentions of errors similar to this. They recall updates to X11 and MESA; however, I have already tried with previous versions of MESA, and there's no difference. I have also tried with multiple kernels, including the kernel from Debian and Ubuntu and the Canonical-built mainline kernels.

I have tried changing the adapter in the VM from VMSVGA to VBoxVGA and VBoxSVGA, and the latter results in a different error; however, the problem remains that X11 continues to crash. In either case, there are various messages that no DRI device was found in the log of Xorg. I also tried installing the guest utils Debian package to see if there was any difference; however, there isn't, although I did notice that a new service was added to OpenRC.

What is most incredible and strange is that using VirtualBox 6.1.40 and prior versions, there is no problem whatsoever. The graphical session starts fine; even 3D acceleration can be enabled in the VM settings.

I have used an ISO of the distribution before version 2.5.0, and the graphical session starts in both VirtualBox 7.0.x and GNOME Boxes, so even more mystery.


I want to point out that VMWare Workstation 17 does not have this problem, as the graphical session starts. However, it is indeed required to have the VMWare Tools installed to avoid other graphical problems with KWin (like a black screen when maximizing a window.)

Captura de pantalla 2022-12-03 060433

I have also tested with VMWare and VirtualBox on Windows, and just adding to the utter mystery, both use the same display driver, vmwgfx and device, and yet If I use inxi, the output is entirely different. From the output, it's visible that VirtualBox is not creating a DRI device for whatever reason, basically "no GPU" so X11 crashes.

I've only found a single person with a similar problem on the VirtualBox forums. However, I do not have 3D acceleration enabled in VirtualBox because it makes no difference. Also different in this case is that there are files in /dev/dri like renderD128, but there are no control files.

VirtualBox_Nitrux_03_12_2022_06_19_03

VirtualBox_Nitrux_03_12_2022_06_19_35

Using EFI or Legacy BIOS also makes no difference.

This issue is in addition to #81 No graphical session in Gnome Boxes when booting Live ISO

@UriHerrera UriHerrera added bug Issues caused by flaws, faults or unexpected behavior in the software. bountysource Issues that offer a reward for fix them through Bountysource. labels Dec 3, 2022
@UriHerrera UriHerrera pinned this issue Dec 3, 2022
@UriHerrera
Copy link
Member Author

UriHerrera commented Dec 3, 2022

Update

I seem to have found the problem. The images below are from Nitrux 2.4.0, which includes packages from MESA 22.3, albeit a development version. The upgrade to these packages, as shown in the images, is to packages from Debian; coincidentally, these are also version 22.3. Nonetheless, after applying the upgrades and login out, X11 crashes.

So I believe the problem is specifically with these packages:

libegl-mesa0
libgbm1
libgl1-mesa-dri
libglapi-mesa
libglx-mesa0
libxatracker2

VirtualBox_Nitrux_03_12_2022_05_35_23

VirtualBox_Nitrux_03_12_2022_05_35_52

VirtualBox_Nitrux_03_12_2022_05_35_58


Now the thing is that even if I didn't choose to use the packages from Debian, but from the Oibaf PPA (version 23.0), X11 still crashes in VirtualBox, so maybe it's just a problem with MESA. I have also upgraded XOrg, the kernel, libllvm, GLibc, and X11 will work correctly until I upgrade those packages.


Update II

I confirmed it is a problem with MESA 22.3 and 23.0 (at least with the packages we have access to).

I uploaded version 22.2.1 of these packages to our repository; then, I downgraded the packages et voila!, X11 works in VirtualBox 7.0.4

It is essential to mention that MESA 23.0 works on bare metal; the problem above is exclusively occurring in VirtualBox and GNOME Boxes.

Also, disclaimer: We do not develop MESA.

@UriHerrera UriHerrera added upstream-bug Issues that are determined to not be caused by our configuration. and removed bountysource Issues that offer a reward for fix them through Bountysource. bug Issues caused by flaws, faults or unexpected behavior in the software. labels Dec 3, 2022
@philmmanjaro
Copy link

Most likely a git-bisect on mesa between 22.2.x and 22.3.x is needed. Similar as the niche issue we had with it: calamares/calamares#2074 (comment)

@UriHerrera
Copy link
Member Author

UriHerrera commented Dec 5, 2022

This problem is solved today with MESA 23.0 commit 64d584b for VirtualBox; GNOME Boxes still doesn't work.


@philmmanjaro Looks like that commit also fixes the problem you mentioned with Calamares. I didn't have a black screen when launching Calamares, but the window was unresponsive when using sudo.

@UriHerrera UriHerrera reopened this Dec 5, 2022
@UriHerrera
Copy link
Member Author

GNOME Boxes works now with version 2.7.1.

imagen

@UriHerrera UriHerrera unpinned this issue Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream-bug Issues that are determined to not be caused by our configuration.
Projects
None yet
Development

No branches or pull requests

2 participants
  翻译: