godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.2k stars 21.21k forks source link

WSL2 ubuntu in Win 10, imports crash #73711

Open JustCruising opened 1 year ago

JustCruising commented 1 year ago

Godot version

4.0.RC3

System information

WSL2, ubuntu 20.04.5 LTS, under Windows 10 Pro 22H2, os build 19045.2604 AMD Ryzen 7 5700X 8-Core Processor 3.40 GHz RAM: 32.0 GB (31.9 GB usable) NVIDIA GeForce RTX 3060 driver 526.98

Issue description

I have not been able to successfully import anything created under win 10 into WSL2 ubuntu (including 3rd party demos, etc). Import and edit crashes. The project then appears in the project list. Loading crashes. There is a delay as the editor window appears and a load attempt is made, but before you can use the editor it crashes.

Note that 3.5 has no crashing issues and apart from sound works okay on stuff I have tried.

If you need an example, try this one: https://gdquest-demos.github.io/godot-4-3d-third-person-controller/ from gdquest.

Screenshot of terminal attached.

I am a long way away from being a technical person so I hope this is valid and that this helps. :)

image

PS and probably not related: How can you fix an editor options issue (say like blender path not available) if you have to enter the editor to do so and that issue is the reason for the crash? Maybe another option button on the project manager: "Edit", "Run", "Rename", "Remove", and also Editor "Preferences".

Steps to reproduce

Minimal reproduction project

https://gdquest-demos.github.io/godot-4-3d-third-person-controller

Calinou commented 1 year ago

Please don't paste the same link and screenshot 3 times.

Out of curiosity, why not use native Windows builds? You are missing hardware acceleration when running Godot through WSL2, which means nothing will run with playable performance. Hardware acceleration should be available through WSL2 in the future once Dozen (Vulkan over Direct3D 12) becomes available in mainline Windows 11 builds, but I'm not sure if it'll be made available in Windows 10.

PS and probably not related: How can you fix an editor options issue (say like blender path not available) if you have to enter the editor to do so and that issue is the reason for the crash? Maybe another option button on the project manager: "Edit", "Run", "Rename", "Remove", and also Editor "Preferences".

See https://github.com/godotengine/godot-proposals/issues/1602.

ghost commented 1 year ago

Hi,

It's Ubuntu "under" Windows... How are you running Ubuntu? in a Virtual Machine? If yes then which VM software are you using in Windows?

Jesse

ghost commented 1 year ago

Nevermind, just reread.

JustCruising commented 1 year ago

Calinou

Re screenshots, ok I understand.

Re curiosity: I do use windows however I wanted to try the linux version (out of my curiosity).

re proposal: Good to see :)

Jesse:

ok :)

Calinou commented 1 year ago

The demo you're trying to import is not importable because not all the files are included in the repository yet: https://github.com/gdquest-demos/godot-4-3d-third-person-controller/issues/15

Can you reproduce this issue using one of the official demos instead (try 3d/platformer or 3d/truck_town in the 4.0-dev branch)?

JustCruising commented 1 year ago

Hi Calinou.

This is the truck response.

Shall I try others and post screenshots of each if they fail?

. terminal 2

Calinou commented 1 year ago

Shall I try others and post screenshots of each if they fail?

No, this is enough for now.

akien-mga commented 1 year ago

See the message:

WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

As it says, it's using lavapipe, which is a software renderer for Vulkan. If it works, it's going to be very slow. But it seems not to work and to crash.

Windows WSL2 probably ships with an old version of Mesa/lavapipe, or it's simply not compatible with WSL2 yet, at least to run complex Vulkan applications.

You should likely use the GL Compatibility renderer on WSL2 for now.

JustCruising commented 1 year ago

Hi Calinou, ok.

Akien-mga

I am not sure how to do that on an import. I will see if I can.

akien-mga commented 1 year ago

You might need to force it from the command line:

cd /to/project/folder
/path/to/godot --rendering-driver opengl --editor

Then if it opens fine, go the project settings and change the renderer to GL Compatibility.

JustCruising commented 1 year ago

Hi Akien-mga

I did that (replace 'opengl' with 'opengl3) and it loaded with one dependency error as per the screenshot below. Haven't tried more.

WSL2TruckTown

Edited to append the promised screenshot. :)