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

[PANIC] 動かし続けると次第に遅くなり最終的にPanicする #1

Closed
hyoi opened this issue Jun 6, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@hyoi
Copy link
Owner

hyoi commented Jun 6, 2021

heron 0.7.0が内部で利用しているrapier2d 0.8.0の中でPANICする。
次第に遅くなる様子から、何かしらのリークが原因だと思う。

PS C:\XXXXX\windows_rust\bevy0.5\inseki> cargo run --release
    Finished release [optimized] target(s) in 0.56s
     Running `target\release\inseki.exe`
thread 'Compute Task Pool (0)' panicked at 'assertion failed: proxy.aabb.maxs[dim] >= self.min_bound', C:\XXXXX\.cargo\registry\src\github.com-1ecc6299db9ec823\rapier2d-0.8.0\src\geometry\broad_phase_multi_sap\sap_axis.rs:55:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'task has failed', C:\XXXXX\.cargo\registry\src\github.com-1ecc6299db9ec823\async-task-4.0.3\src\task.rs:368:45       
error: process didn't exit successfully: `target\release\inseki.exe` (exit code: 0xc000041d)
PS C:\XXXXX\windows_rust\bevy0.5\inseki>

画面外に出た落下物(Entity)をbevyの標準的な方法で解放しているが(cmds.entity( id ).despawn();)、それだとheron関係の何かが解放されないとか?

@hyoi
Copy link
Owner Author

hyoi commented Jun 7, 2021

【メモ】エラーメッセージassertion failed: proxy.aabb.maxs[dim] >= self.min_boundに関連した情報。

@hyoi hyoi added the bug Something isn't working label Jun 7, 2021
@hyoi
Copy link
Owner Author

hyoi commented Jun 12, 2021

落下物をdespawn、spawnするのをやめ、spawn済みの落下物を繰り返し再利用するように変更した。
数時間動かし続けても現象が再発しないため、不具合の回避策として有効と判定。
本件はクローズ。

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