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

Bug: Files crashes if startup folder is wsl directory #15772

Closed
ElinLiu0 opened this issue Jul 7, 2024 · 19 comments · Fixed by #16617
Closed

Bug: Files crashes if startup folder is wsl directory #15772

ElinLiu0 opened this issue Jul 7, 2024 · 19 comments · Fixed by #16617
Assignees
Labels
crash Bug reports involving a crash

Comments

@ElinLiu0
Copy link

ElinLiu0 commented Jul 7, 2024

Description

I want to call the files.exe binary directly from my WSL Ubuntu vm,it can call but will be crash.
Instead of using files.exe in WSL Ubuntu vm,using explorer.exe just wokring fine as expect.
Just like below:

2024-07-08.00-42-53.mp4

Steps To Reproduce

1.Install a WSL Distro on your machine
2.Call files.exe directly in WSL Distro

Requirements

Files will be start with a called wsl path.

Files Version

3.5.0.0

Windows Version

10.0.22631.3810

Log File

N/A

@ElinLiu0 ElinLiu0 added the bug label Jul 7, 2024
@Josh65-2201
Copy link
Member

Josh65-2201 commented Jul 7, 2024

Thanks for the report,

  • Please upload (Do not copy and paste content) the debug.log file directly to GitHub (email attachments don't work) . You can get it in Files settings > About > Open log folder.
  • Please also try preview version https://files.community/download

@Josh65-2201 Josh65-2201 added needs - additional info Needs more information from the reporter crash Bug reports involving a crash labels Jul 7, 2024
@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

Thanks for the report, can you please upload (Do not copy and paste content) the debug.log file directly to GitHub (email attachments don't work) . You can get it in Files settings > About > Open log folder.

debug.log
Here it is mate,the original log.Hope you guys can fix that :)

@0x5bfa
Copy link
Member

0x5bfa commented Jul 7, 2024

Log has nothing to indicate a crash occurred.

  • Could you try to find Files app from Windows logs > Application > sort by Source > .NET Runtime in Event Viewer?
  • Check if you can call Files via files.exe from command prompt

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

Log has nothing to indicate a crash occurred.

  • Could you try to find Files app from Windows logs > Application > sort by Source > .NET Runtime in Event Viewer?
  • Check if you can call Files via files.exe from command prompt

Sorry i don't understand.Where can i find Windows logs for you?

@Josh65-2201
Copy link
Member

It's in event viewer you can open that from the start menu search

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

It's in event viewer you can open that from the start menu search

image
Only one error i can found here.

@0x5bfa
Copy link
Member

0x5bfa commented Jul 7, 2024

The time this exception occurred is the same when you launched the app via the alias ‘files.exe’?

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

It's in event viewer you can open that from the start menu search

Also there is a lot of warnning here:
image
Is it matter with this issue?

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

The time this exception occurred is the same when you launched the app via the alias ‘files.exe’?

Sure.

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 7, 2024

The time this exception occurred is the same when you launched the app via the alias ‘files.exe’?

image

@0x5bfa
Copy link
Member

0x5bfa commented Jul 7, 2024

Please also try preview version https://files.community/download

Is it matter with this issue?

No.

@el-ev
Copy link
Contributor

el-ev commented Jul 8, 2024

The issue can be triggered as follows in Powershell:

PS C:\Users> cd \\wsl.localhost\Arch\
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Arch> files.exe .

Arch is the name of any WSL distribution.

So the issue is related to the startup directory being a WSL directory.

Files stuck at Files.App\Helpers\Application\AppLifecycleHelper.cs:140, in ConfigureHost.

@ElinLiu0
Copy link
Author

ElinLiu0 commented Jul 8, 2024

The issue can be triggered as follows in Powershell:

PS C:\Users> cd \\wsl.localhost\Arch\
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Arch> files.exe .

Arch is the name of any WSL distribution.

So the issue is related to the working directory being a WSL directory.
那这个事情就很邪门了,它能加载WSL的虚拟机文件树,但是不能在WSL中调用?😂

@yaira2 yaira2 changed the title Cross platform can't be access Bug: Files crashes if startup folder is wsl directory Jul 25, 2024
@yaira2
Copy link
Member

yaira2 commented Jul 25, 2024

@Qin-shihuang can you navigate to the location in question if you open Files first?

@yaira2 yaira2 moved this from 🆕 New to 🔖 Ready to build in Files task board Jul 25, 2024
@el-ev
Copy link
Contributor

el-ev commented Jul 26, 2024

@yaira2 Yes, in that case Files works well
image

@yaira2
Copy link
Member

yaira2 commented Jul 26, 2024

Thank you for checking

@yaira2 yaira2 removed the needs - additional info Needs more information from the reporter label Aug 29, 2024
@yaira2
Copy link
Member

yaira2 commented Sep 9, 2024

The issue can be triggered as follows in Powershell:

PS C:\Users> cd \\wsl.localhost\Arch\
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Arch> files.exe .

Arch is the name of any WSL distribution.

So the issue is related to the startup directory being a WSL directory.

Files stuck at Files.App\Helpers\Application\AppLifecycleHelper.cs:140, in ConfigureHost.

@Qin-shihuang do you know if there is a specific service causing the issue?

@el-ev
Copy link
Contributor

el-ev commented Sep 11, 2024

do you know if there is a specific service causing the issue?

I'm not sure.

@github-project-automation github-project-automation bot moved this from 🔖 Ready to build to ✅ Done in Files task board Dec 19, 2024
@yaira2
Copy link
Member

yaira2 commented Dec 19, 2024

A fix will be included in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Bug reports involving a crash
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants