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

Memory leak when changing scenes #298

Open
2 tasks done
Jankon1 opened this issue Jan 13, 2025 · 2 comments
Open
2 tasks done

Memory leak when changing scenes #298

Jankon1 opened this issue Jan 13, 2025 · 2 comments

Comments

@Jankon1
Copy link

Jankon1 commented Jan 13, 2025

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

When changing from scene with zed stereo rig, Unity reports memory leaks. Fixed by adding OnDestroy method calling OnApplicationQuit() at zed-unity/blob/master/ZEDCamera/Assets/SDK/Helpers/Scripts/Display/ZEDRenderingPlane.cs, wich clears buffer.

Steps to Reproduce

1.Two scnenes, one with stereo camera
2.Change scenes from camera scene
3.Restart playmode and Unity throws leak warning
...

Expected Result

No leaks

Actual Result

Leaks

ZED Camera model

ZED2i

Environment

Win 10
ZED SDK 4.2.0

Anything else?

Added OnDestroy method calling OnApplicationQuit() at zed-unity/blob/master/ZEDCamera/Assets/SDK/Helpers/Scripts/Display/ZEDRenderingPlane.cs, wich clears buffer.

@Jankon1 Jankon1 added the bug label Jan 13, 2025
@Bvallon-sl
Copy link
Collaborator

Hi,

Thanks a lot for the feedback.

Next time, feel free to create a MR with the fix, I'd be happy to review and merge it! :)

Best regards,

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days

@github-actions github-actions bot added the Stale label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants