Brave-browser and chromium are not working inside a Virtualbox VM

Since the most recent update, those two packages aren’t working anymore:

  • extra/chromium 118.0.5993.54-1
  • extra/brave-browser 1.59.117-1

The browsers open up (invisibly … the screen just glitches in the area, where the window would have opened … so, the screen just stops updating in that area, like something froze) and then it dies with a list of errors, leading up to a fatal error.

Here’s the output of brave, when opened up inside bash (so I can see the error-output):

Summary
[1014/105439.017557:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105439.017714:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105439.494789:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105439.624546:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105439.624668:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105440.013078:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105440.117642:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105440.117844:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105440.502160:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105440.558115:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105440.558243:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105440.931076:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105440.999708:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105440.999743:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105441.344575:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105441.386525:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105441.386584:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105441.788120:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105441.842857:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105441.843072:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105442.256338:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105442.278022:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105442.278116:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105442.508013:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/105442.524311:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105442.524340:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[9931:9931:1014/105442.744937:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[9931:9931:1014/105442.744959:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[1014/105442.764436:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.765665:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.765761:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.766648:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.767954:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.772398:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.772498:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.773797:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.774370:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/105442.795358:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/105442.795383:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)```

For chromium, the output is similar:

Summary
[1014/112053.401914:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112053.401962:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112054.110964:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112054.276625:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112054.276648:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112054.789237:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112054.892940:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112054.892963:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112055.348914:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112055.433591:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112055.433614:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112055.765627:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112055.836199:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112055.836236:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112056.155494:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112056.222187:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112056.222212:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112056.539523:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112056.618139:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112056.618163:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112057.024106:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112057.072898:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112057.072930:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112057.343682:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[1014/112057.412846:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112057.412976:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[11377:11377:1014/112057.782499:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=139
[11377:11377:1014/112057.782732:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[1014/112057.824390:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.825918:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.826078:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.827156:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.828760:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.834033:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.834238:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.835785:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.836400:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1014/112057.932846:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1014/112057.933047:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)```

Both packages work fine on my actual hardware, but not inside my Virtualbox VM (both hardware and VM are running Manjaro).

Since I mentioned nvidia in the optional tags, please note:
I haven’t activated 3D-acceleration for the VM in the Virtualbox settings.
Maybe that has something to do with the strange “fatal” GPU-error, I’ve mentioned above.

I have 3D acceleration turned off due to a different problem (probably with VirtualBox?).
I’m just mentioning this as a side-note, to not leave out anything that could be part of the problem … I don’t want to accidentally mislead anyone by leaving out potentially useful information:

Summary

It’s when I activate 3D-acceleration (in the Virtualbox settings for the specific VM), the VM boots fine and then after a while just randomly freezes (nothing moves … needs a hard reset) without anything specific leading up to it.
Thus, I keep that setting turned off to prevent that from happening until I come up with a better solution … (I already tried a lot and nothing worked).

Every now and again (when packages get updated, that give me hope, that it may magically get fixed, one day), I try to activate 3D acceleration and it the VM doesn’t freeze, I’m keeping it, that way (didn’t happen, yet). Otherwise, I turn 3D acceleration off again (happened again, recently, but still before the brave-update).

If you need any details on the actual hardware, see my last post for details (hardware didn’t change, since then):

UPDATE:
I’ve also tried it with 3D-acceleration enabled, and brave still dies with the same error messages as before, so that doesn’t seem to matter.

Here is a .vbox file content from an Arch guest for comparison with your settings. I don’t experience the issues you describe; maybe this helps to an extent. Cheers.

<?xml version="1.0"?>
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.19-windows">
  <Machine uuid="{xxxxxxxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx}" name="ArchLinux" OSType="ArchLinux_64" snapshotFolder="Snapshots" lastStateChange="2023-08-24T13:40:56Z">
    <MediaRegistry>
      <HardDisks>
        <HardDisk uuid="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" location="ArchLinux.vdi" format="VDI" type="Normal"/>
      </HardDisks>
      <DVDImages></DVDImages>
    </MediaRegistry>
    <ExtraData>
      <ExtraDataItem name="GUI/LastCloseAction" value="Shutdown"/>
      <ExtraDataItem name="GUI/LastNormalWindowPosition" value="211,92,1024,808"/>
    </ExtraData>
    <Hardware>
      <CPU count="4">
        <PAE enabled="false"/>
        <LongMode enabled="true"/>
        <X2APIC enabled="true"/>
        <HardwareVirtExLargePages enabled="true"/>
      </CPU>
      <Memory RAMSize="8192"/>
      <Firmware type="EFI"/>
      <HID Pointing="USBTablet"/>
      <Boot>
        <Order position="1" device="DVD"/>
        <Order position="2" device="HardDisk"/>
        <Order position="3" device="None"/>
        <Order position="4" device="None"/>
      </Boot>
      <Display controller="VMSVGA" VRAMSize="128" accelerate3D="true"/>
      <BIOS>
        <IOAPIC enabled="true"/>
        <SmbiosUuidLittleEndian enabled="true"/>
      </BIOS>
      <TrustedPlatformModule type="v2_0" location=""/>
      <USB>
        <Controllers>
          <Controller name="OHCI" type="OHCI"/>
          <Controller name="EHCI" type="EHCI"/>
        </Controllers>
      </USB>
      <Network>
        <Adapter slot="0" enabled="true" MACAddress="XXXXXXXXXXXX" type="82540EM">
          <NAT localhost-reachable="true"/>
        </Adapter>
      </Network>
      <AudioAdapter codec="AD1980" useDefault="true" driver="WAS" enabled="true" enabledOut="true"/>
      <RTC localOrUTC="UTC"/>
      <Clipboard/>
      <GuestProperties>
        <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="152435" timestamp="1669320925402559105" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Version" value="6.1.36" timestamp="1669320925402559103" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="6.1.36" timestamp="1669320925402559104" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/MAC" value="080027690AB7" timestamp="1669320925428911400" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/Name" value="enp0s3" timestamp="1669320925428911402" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1669320925428911401" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="10.0.2.255" timestamp="1669320925427935602" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="10.0.2.15" timestamp="1669320925427935601" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.255.255.0" timestamp="1669320925427935603" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1669321075534242400" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Linux" timestamp="1669320925401584300" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="5.19.5-arch1-1" timestamp="1669320925402559100" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/ServicePack" value="" timestamp="1669320925402559102" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Version" value="#1 SMP PREEMPT_DYNAMIC Mon, 29 Aug 2022 15:51:05 +0000" timestamp="1669320925402559101" flags=""/>
        <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1692884409668400900" flags="RDONLYGUEST"/>
      </GuestProperties>
      <StorageControllers>
        <StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
          <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
            <Image uuid="{xxxxxxxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx}"/>
          </AttachedDevice>
          <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
        </StorageController>
      </StorageControllers>
    </Hardware>
  </Machine>
</VirtualBox>

Well, there are differences between our virtualbox-files.

Those are:

  1. <VirtualBox xmlns="http://www.virtualbox.org/" version="1.19-windows"> (it says 1.19-linux in my case).
  2. I had PAE and NestedHWVirt enabled.
  3. I had HardwareVirtExLargePages disabled.
  4. I had TrustedPlatformModule and EFI disabled.
  5. I have a different Virtualbox-version in the last block (e.g. VirtualBox/GuestAdd/Version is 7.0.10, in my case, which matches the Virtualbox/HostInfo/VBoxVer).

I’ve tried changing some of those things (that seemed to make sense to try and change), but the problems still persist:

  1. When I activate the 3d-acceleration, the whole VM freezes randomly (sometimes already during boot … sometimes at a later time when I’ve already opened up a browser or whatever). I haven’t figured out how to reliably reproduce the error, though … and since the VM freezes I can’t analyze it … I have to hard-reset and reboot it.
  2. The error-messages for brave and chromium are still the same … no matter if 3d-acceleration is active or not … both are still crashing with the same error-messages.

I’m suspecting, that this might have something to do with the recent update(s), maybe?
I’m on KDE+Wayland and have a nvidia-GPU. I’ve heard, trouble with that combo is not uncommon, so I assume, the root of the problem might be in that area. And since mesa got updated, and chromium and brave, too, the problem might be related to the current versions.

I’ve also tried to get rid of the folder .config/BraveSoftware, but that didn’t do anything (it got re-created, but brave still crashed before opening a (visible) window … just the usual glitch in the area, where the window would have appeared…

Yes, it was probably created on Windows, initially; it’s shared in a multiboot environment…

I have nothing else to suggest though. My VMs just work :wink: but I’m sure someone else can help. Cheers.

Update:
I’ve found, that I had the wrong Virtualbox Extension Pack still installed (v7.0.8 instead of v7.0.10). I’ve since fixed that (updated Extension Pack to correct version).

Up to now, the VM is running with 3D acceleration without crashing :slight_smile:

The browsers are still crashing/not opening, though … same errors.

1 Like

Update:
Just tried to install a current Manjaro KDE iso into a virtualbox with the following settings (see screenshot below). And when I first launched the VM (after successful install), it froze completely (so, I assumed, the 3D acceleration is still not working, correctly).

Here’s the screenshot with my settings, mentioned above:

There’s more, though:
I tried to close the VM window by hitting the “x” in the top right corner of the window (this used to get me a prompt where I could choose to power off the VM).
And that caused, all of Virtualbox freeze, too.

Yet another bug: Then the kwin killer helper window appeared, asking me, whether to close Virtualbox immediately, or wait longer. So, I tried to click the button to immediately close virtualbox, but it didn’t respond to those mouse-events (clicks … presses … nothing).
So, I tried the “wait longer” button. Same thing.
So, I tried the “x” in the top right corner of the window and that responded, but the situation was still the same.
Tried again. The kwin killer helper window appeared again … same thing.

So, I had to open yakuake and kill everything manually from the bash.

I thought, the problems, I’m experiencing would go away, when I do a fresh install of the VM from a current ISO-image, but they still persist.

Next, I tried to disable “Nested Paging” again (my CPU should be capable of it, btw).
I got to see the welcome-screen, but didn’t even get to touch the “Manjaro Hello”-window, before the VM froze.

This time, I tried the ACPI-Shutdown (didn’t do anything … at least not immediately).
Then, I tried the Reset-option next to it (didn’t do anything … at least not immediately).
Then, tried to click the “x” in the top right corner of the VM-window, again.
Then, the kwin killer helper appeared, but everything went away, less than a second after it appeared … leaving only the main Virtualbox Manager window open, that’s still responsive.

So, I re-enabled “Nested Paging” and disabled “3D Acceleration”, trying to boot the VM again. This time, I got to close the Manjaro Hello window (first deactivating the slider, so it never appears again), but the VM still froze right after the window closed.

My first idea was to install brave and see, whether it worked.
But, I’m gonna stop this excursion for today.

Interestingly, it looks like Firefox will be worth a second look, in terms of Wayland support, sooner rather than later:

[Meta] Ship the Wayland backend to release.

Here’s an article on Phoronix with a brief explanation: Mozilla Might Finally Enable Firefox’s Wayland Backend Soon.

Yet another update:
I just realized, that the issue seems to be, that I failed to activate the setting for the TPM-type in Virtualbox. I now have set it to “v2.0” and everything was running smoothely for as long as I had the VM running.

But, I’ve seen in the system info (KDE settings => About this system), that the VM is not running on wayland, but still on X11, which makes me wonder, why (I used a recent installation-medium and updated via pamac update to be perfectly up to date and I was under the impression, that wayland was the default, these days).

Still … it ran without issue for an hour, when I tried it, which is great news :slight_smile:

Thanks for the info. Firefox actually works in the old VM (the one, where the other browsers crash).

I actually use different browsers for different things (e.g. one for the usual browsing-needs … one for zoom-calls and such, that gets more permissions e.g. to access the camera and microphone … etc).
So, there’s reason to the madness :slight_smile:

It seems, activating the TPM v2.0 setting in Virtualbox has solved my problem for the VM, that’s running X11, but the issue still persists on the old VM (changing that setting made it work better than before, but it’s very laggy and slow).

So, I’ll give wayland in the new VM a try and provide another update (it may take a few days, though).

I keep all major browsers; and more; available for web dev, and other tasks. It does seem like madness at times. :crazy_face:

1 Like