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

Invalid memory access when adding child to stack #562

Open
xigoi opened this issue Dec 5, 2023 · 0 comments
Open

Invalid memory access when adding child to stack #562

xigoi opened this issue Dec 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@xigoi
Copy link

xigoi commented Dec 5, 2023

V version: 0.4.3 dbdd96f
UI version: 459eb3b
OS: Debian GNU/Linux

What did you do?

Minimal example:

import ui

fn main() {
	mut row := ui.row()
	row.add(child: ui.label())
}

What did you expect to see?
Nothing

What did you see instead?

/tmp/v_1000/foo.14760059955841381417.tmp.c:58784: at ui__Label_load_style: RUNTIME ERROR: invalid memory access
/tmp/v_1000/foo.14760059955841381417.tmp.c:52872: by ui__Label_init                                       
/tmp/v_1000/foo.14760059955841381417.tmp.c:58256: by ui__Stack_add                                        
/tmp/v_1000/foo.14760059955841381417.tmp.c:444: by main__main                                             
/tmp/v_1000/foo.14760059955841381417.tmp.c:1046: by main 
@xigoi xigoi added the bug Something isn't working label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant