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

The examples does not run properly #51

Closed
yaoye6262 opened this issue Dec 15, 2022 · 9 comments
Closed

The examples does not run properly #51

yaoye6262 opened this issue Dec 15, 2022 · 9 comments
Labels
question Not a problem with the library, but a question regarding usage.

Comments

@yaoye6262
Copy link

After trying cargo build:

截屏2022-12-15 18 09 21

@Bromeon
Copy link
Member

Bromeon commented Dec 15, 2022

Seems to work for me:

cargo build
cd examples/dodge-the-creeps
godot4

Which Godot version are you using? A lot has changed in the last few days, you may need to get the latest nightly builds from here or build Godot master from source.

@yaoye6262
Copy link
Author

yaoye6262 commented Dec 15, 2022

Seems to work for me:

cargo build
cd examples/dodge-the-creeps
godot4

Which Godot version are you using? A lot has changed in the last few days, you may need to get the latest nightly builds from here or build Godot master from source.

Godot version: Godot4 Beta4
I'm using the latest master
It was normal the day before yesterday

It's not working right after using Cargo Update today

My English is not very good. I'm sorry

@Bromeon
Copy link
Member

Bromeon commented Dec 15, 2022

Godot version: Godot4 Beta4

This one is quite outdated, being released 1.5 months ago. Godot's GDExtension API currently changes at a very fast pace 😉

As mentioned, you should try the latest nightly build or wait until next Beta is released.

@Bromeon Bromeon added the question Not a problem with the library, but a question regarding usage. label Dec 15, 2022
@yaoye6262
Copy link
Author

yaoye6262 commented Dec 16, 2022

As mentioned, you should try the latest nightly build or wait until next Beta is released.

In fact, I also used Gogo4 Beta8
But, It still doesn't work
After the Bate8 version is opened, a flash back problem occurs

@yaoye6262
Copy link
Author

yaoye6262 commented Dec 16, 2022

Godot version: Godot4 Beta4

This one is quite outdated, being released 1.5 months ago. Godot's GDExtension API currently changes at a very fast pace 😉

As mentioned, you should try the latest nightly build or wait until next Beta is released.

Just checked Beta8, Beta7, Beta6, Beta5,Godot all crashed. Only Beta4 can open normally, but the examples cannot run


Translated Report (Full Report Below)

Process: Godot [3434]
Path: /Applications/Godot.app/Contents/MacOS/Godot
Identifier: org.godotengine.godot
Version: 4.0 (4.0)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-12-16 14:55:37.2343 +0800
OS Version: macOS 12.2.1 (21D62)
Report Version: 12
Anonymous UUID: 5300B3D6-2802-6515-E59C-9CED07542521

Time Awake Since Boot: 5400 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: UNKNOWN_0xD at 0x0000000000000000
Exception Codes: 0x000000000000000d, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

VM Region Info: 0 is not in any region. Bytes before following region: 4372697088
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104a21000-10b01f000 [102.0M] r-x/r-x SM=COW ...s/MacOS/Godot

Application Specific Information:
abort() called

@Bromeon
Copy link
Member

Bromeon commented Dec 16, 2022

As mentioned, you should try the latest nightly build or wait until next Beta is released.

Just checked Beta8, Beta7, Beta6, Beta5,Godot all crashed. Only Beta4 can open normally, but the examples cannot run

I said "wait until next Beta is released" -- past betas are all incompatible. And Beta 4 for sure is, there have been loads of changes in the GDExtension API since then. The fact that it seems to open normally doesn't matter, you'd still have UB all over the place. So it doesn't make sense to spend time trying to debug that.

So I can only repeat myself, you have these options:

@yaoye6262
Copy link
Author

yaoye6262 commented Dec 16, 2022

As mentioned, you should try the latest nightly build or wait until next Beta is released.

Just checked Beta8, Beta7, Beta6, Beta5,Godot all crashed. Only Beta4 can open normally, but the examples cannot run

I said "wait until next Beta is released" -- past betas are all incompatible. And Beta 4 for sure is, there have been loads of changes in the GDExtension API since then. The fact that it seems to open normally doesn't matter, you'd still have UB all over the place. So it doesn't make sense to spend time trying to debug that.

So I can only repeat myself, you have these options:

I'm sorry. Maybe I'm stupid. I didn't understand yesterday. Now it's clear. Thank you.

@Bromeon
Copy link
Member

Bromeon commented Dec 16, 2022

No worries 🙂 glad I could help! I will clarify this in the Readme once Beta 9 is out.

I'll then close this issue.

@Bromeon Bromeon closed this as completed Dec 16, 2022
@yaoye6262
Copy link
Author

No worries 🙂 glad I could help! I will clarify this in the Readme once Beta 9 is out.

I'll then close this issue.

Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a problem with the library, but a question regarding usage.
Projects
None yet
Development

No branches or pull requests

2 participants