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

WSL2 ubuntu in Win 10, imports crash #73711

Open
JustCruising opened this issue Feb 21, 2023 · 11 comments
Open

WSL2 ubuntu in Win 10, imports crash #73711

JustCruising opened this issue Feb 21, 2023 · 11 comments

Comments

@JustCruising
Copy link

JustCruising commented Feb 21, 2023

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
Copy link
Member

Calinou commented Feb 21, 2023

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 godotengine/godot-proposals#1602.

@ghost
Copy link

ghost commented Feb 21, 2023

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
Copy link

ghost commented Feb 21, 2023

Nevermind, just reread.

@JustCruising
Copy link
Author

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
Copy link
Member

Calinou commented Feb 21, 2023

The demo you're trying to import is not importable because not all the files are included in the repository yet: gdquest-demos/godot-4-3d-third-person-controller#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
Copy link
Author

Hi Calinou.

This is the truck response.

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

.
terminal 2

@Calinou
Copy link
Member

Calinou commented Feb 21, 2023

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

No, this is enough for now.

@akien-mga
Copy link
Member

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
Copy link
Author

Hi Calinou, ok.

Akien-mga

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

@akien-mga
Copy link
Member

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
Copy link
Author

JustCruising commented Feb 21, 2023

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. :)

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

No branches or pull requests

3 participants