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

/samples/multithread_render/engine_render_queue/ 的例子用Clion运行,叉掉窗口后,实例仍在运行,没有退出 #12

Open
CaoYouXin opened this issue Mar 28, 2024 · 7 comments

Comments

@CaoYouXin
Copy link

No description provided.

@CaoYouXin
Copy link
Author

从骨骼蒙皮动画那里开始不能自己退出。
集成lua那里退出时,会先创建出一个verFault进程,但是那会儿还能自己退出。

@CaoYouXin
Copy link
Author

image
是这个WerFualt.

@ThisisGame
Copy link
Owner

image
目前是发现两个地方有问题,这里是一个,在LuaBinding里CallFunction写死了main。

还有一个是多线程时没有正确关闭glfw

@CaoYouXin
Copy link
Author

CaoYouXin commented Mar 29, 2024

在骨骼蒙皮动画加权重那小节( samples/skinned_mesh_renderer/load_weight_file/ ),就有问题了。还没到多线程那里。我是中间有几小节没跑examples,直接跳到多线程那小节,刚好发现了问题。

@ThisisGame
Copy link
Owner

┗|`O′|┛ 嗷~~
这个是析构函数里用错了delete,在shadowmap这里才改好的。

[[](https://github.com/ThisisGame/cpp-game-engine-book/commit/67d00cb82761cbdab3e3bcb5c727bfd1d68adc0e)](67d00cb)

83a1a77

大概是这两次提交

@CaoYouXin
Copy link
Author

是因为malloc对应free,new对应delete吗?大学时好像学过,毕业后一直没用c/c++工作过。不是很确定是不是这样。

@CaoYouXin
Copy link
Author

试过了,WerFualt.exe的出现,是因为日志组件没关

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