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

Bad address index. #80714

Closed
Tracked by #80877
rr13k opened this issue Aug 17, 2023 · 6 comments
Closed
Tracked by #80877

Bad address index. #80714

rr13k opened this issue Aug 17, 2023 · 6 comments

Comments

@rr13k
Copy link

rr13k commented Aug 17, 2023

Godot version

4.1

System information

macOS12.1

Issue description

func test():
if self is Player:
pass

Impossible code that prevents it from running

Steps to reproduce

run main.tscn

Minimal reproduction project

bug.zip

@rr13k
Copy link
Author

rr13k commented Aug 17, 2023

supplement The following modifications still have the same error

if is_instance_of(self,Player):

@rr13k
Copy link
Author

rr13k commented Aug 17, 2023

error image:
image

@bitsawer
Copy link
Member

I can repro this in Godot 4.1.1, but looks like this has already been fixed in current 4.2 master (0511f9d) and 4.2 dev 3 release. Closing, but feel free to comment or reopen the issue if the problem is not solved for some reason.

@dalexeev
Copy link
Member

I reproduced in 4.1.1:

@bitsawer
Copy link
Member

bitsawer commented Aug 17, 2023

I did mention that I can also reproduce this in 4.1.1, but this has been fixed at some point since (fixed at least in 4.2 dev 3 relese) so I don't think this is a valid issue anymore as we usually close issues when they are fixed in master. Although it could be useful to find out what PR fixed this for future reference, even if it did so by accident.

edit: Possible duplicate of #74253?

@dalexeev
Copy link
Member

dalexeev commented Aug 17, 2023

Possible duplicate of #74253?

Yes, the reason is the same, circular dependencies/inheritance:

flowchart BT
    main.gd-- requires -->char.tscn
    char.tscn-- requires -->char.gd
    char.gd-- extends -->entry.gd
    entry.gd-- requires -->player.gd
    player.gd-- extends -->char.gd
Loading

I did mention that I can also reproduce this in 4.1.1

Sorry, I misread.

but this has been fixed at some point since (fixed at least in 4.2 dev 3 relese) so I don't think this is a valid issue anymore

Although it could be useful to find out what PR fixed this for future reference

I don't think this has been properly fixed, it's a complex issue. However, we can close this as a duplicate of #74253.

@dalexeev dalexeev closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
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