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

Run failed while open Godot from Terminal #50960

Open
strayer-ckey opened this issue Jul 28, 2021 · 4 comments
Open

Run failed while open Godot from Terminal #50960

strayer-ckey opened this issue Jul 28, 2021 · 4 comments

Comments

@strayer-ckey
Copy link

Godot version

3.3.2.stable.mono.official

System information

Macos Big Sur 11.4

Issue description

It's fine when i open godot by double click it.
But error comes when i open it from terminal.
:Applications:Godot_mono app:Contents:MacOS:Godot --path  --editor 2021-07-28 10-21-30
Godot Engine - 2 5d_t_21_07_26 - MainScene tscn 2021-07-28 10-21-14

Steps to reproduce

1./Applications/Godot_mono.app/Contents/MacOS/Godot --path /Users/chenkeyu/Desktop/Game/2.5d_t_21_07_26 --editor
2.run

Minimal reproduction project

No response

@timothyqiu
Copy link
Member

The Chinese error in the second screenshot is:

Could not resolve this reference. Could not locate the assembly "System...

@akien-mga
Copy link
Member

CC @godotengine/macos

My understanding is that applications have different access to the PATH and to their own embedded resources depending on whether they're launched using the .app bundle or directly from the CLI. So this might be an expected side effect of this macOS behavior.

@bruvzg
Copy link
Member

bruvzg commented Jul 28, 2021

It's working fine on my Mac.
Issue might be caused by multiple Mono/.Net runtime installations, which might be in the PATH for the terminal, and not for the .app.

Can you provide contents of the mono log file, which is listed on your screenshot (Mono: Log file is: ....).

@strayer-ckey
Copy link
Author

It's working fine on my Mac.
Issue might be caused by multiple Mono/.Net runtime installations, which might be in the PATH for the terminal, and not for the .app.

Can you provide contents of the mono log file, which is listed on your screenshot (Mono: Log file is: ....).

Wrong Log :
2021-07-28_16.16.12_7656.log

After i compare the wrong log with the right log, there is a leak of "Assembly Ref addref GodotTools.BuildLogger[0x7fe17f448cb0] -> Microsoft.Build.Framework[0x7fe19fde71b0]: 3 (in domain Mono, info)"

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

4 participants