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

mvvm框架项目自定义控件调用style_get_xxx函数会crash #888

Open
Tracker647 opened this issue Aug 2, 2024 · 2 comments
Open

Comments

@Tracker647
Copy link

Tracker647 commented Aug 2, 2024

自定义控件手动用scons编译就不会,但是用designer加载之后然后重编项目就会报错,我自定义控件和项目都是用的github上的awtk来编译,非designer内置,不知道awtk designer内部加载是不是写死了。

repro控件:
awtk-widget-custom-widget.zip

repro方法:
1.designer上新建项目并加载custom_widget控件,确保项目和控件使用的都是github的awtk
2.项目编译脚本run.ps1

python ./scripts/update_res.py all
scons 
bin/demo.exe

3.运行run.ps1,窗口在启动一段时候自动关闭,日志显示binding_context_clear_bindings_of_widget:338 condition(ctx != NULL && ctx->vt != NULL && widget != NULL) failed!

@Tracker647
Copy link
Author

怀疑是不是自定义控件和项目用了不同的sdk加载,因为之前发现自定义控件默认用的designer内置sdk, 然后项目用github的awtk sdk, 结果编译同样报binding_context_clear_bindings_of_widget。之前怀疑designer就是用的内置sdk加载,然后改了自定义控件的project.json的awtk路径然后在designer加载复现,也是报binding_context_clear_bindings_of_widget,不知道是不是写死了。

@xianjimli
Copy link
Member

designer的问题,你在群里问吧。designer组的同事一般不会看github。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants