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

seg fault on some global objects upon cleanup #435

Closed
gewang opened this issue Mar 14, 2024 · 1 comment
Closed

seg fault on some global objects upon cleanup #435

gewang opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
bug high priority pr-lab chuck team pull-request lab

Comments

@gewang
Copy link
Member

gewang commented Mar 14, 2024

general template:

global Object foo;
<<< Machine.refcount(foo) >>>;
// possible crash at this point

global GPlane foo; (crashes; refcount 1)
GPlane foo; (recount 1)
NOTE: has additional refcounting

global GGen foo; (crashes; refcount 1)
GGen foo; (recount 1)
NOTE: has additional refcounting

global FileTexture foo; (crashes; refcount 1)
FileTexture foo; (recount 1)
NOTE: has additional refcounting

global Geometry foo; (crashes; refcount 1)
Geometry foo; (recount 1)
NOTE: has additional refcounting

global UI_Button foo; (refcount 1)
UI_Button foo; (recount 1)

global OscIn foo; (crashes; refcount 1)
OscIn foo; (refcount 2)

global OscOut foo; (refcount 1)
OscOut foo; (refcount 1)

global Event foo; (refcount 1)
Event foo; (refcount 1)

@gewang
Copy link
Member Author

gewang commented Mar 15, 2024

possible cause: global objects are not checking for default ctors (newly added as 1.5.2.0)
possible fix pushed a0d1786
unit test (for OscIn) fe922d9

@gewang gewang closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug high priority pr-lab chuck team pull-request lab
Projects
None yet
Development

No branches or pull requests

4 participants