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

运行时奔溃问题 #841

Open
caitou2019 opened this issue Jun 20, 2023 · 1 comment
Open

运行时奔溃问题 #841

caitou2019 opened this issue Jun 20, 2023 · 1 comment

Comments

@caitou2019
Copy link

错误日志: image_g2d.c:107: image_clear: Assertion `dst_r->y >= 0 && (dst_r->y + dst_r->h) <= bitmap_get_physical_height(dst)' failed

我的项目是GO语言, 走的是awtk-go的项目.

由于业务层是go语言, 我无法直接查看image_clear这个函数是怎么触发进去的, 在项目中全局搜索了这个函数, 是不在这个函数的,所以可能是某个某个控件底层回去调用它(包括awtk.go文件[cgo交互文件]也搜索了,没有找到该函数的直接调用)

程序运行一段时间异常奔溃,出现上述错误日志, 长的几天,短的几个小时,比较难确定问题点,所以想请问一下,可能触发该断言的原因.

提前谢谢答复!

@xianjimli
Copy link
Member

通常是内存问题。这个没有固定的办法,有条件的话用valgrind等内存检测工具跑一下。可以尝试:
1.用最新的AWTK试试。
2.去掉一部分界面,缩小问题出现的范围。

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