CameraX orientation lead to memory leak

67 views
Skip to first unread message

Ali safwat - علي صفوت

unread,
Jul 14, 2025, 7:25:39 AMJul 14
to Android CameraX Discussion Group
i am using cameraX and rotate the mobile with lead to memory leak and the leak screen shots attached 
and this i my code  i use 

link: https://github.com/ali72-20/CameraXApp.git

Screenshot_20250713_165211.png
Screenshot_20250713_165155.png
Screenshot_20250713_165227.png

Scott Nien

unread,
Jul 14, 2025, 11:39:19 AMJul 14
to Ali safwat - علي صفوت, Android CameraX Discussion Group
Hi I believe this is fixed by our upcoming 1.5.0-beta02 release.  Please update the latest version once it is available and try again then. 

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/f7241edc-4180-40e9-b270-45fbb38bd6cen%40android.com.

Ali safwat - علي صفوت

unread,
Jul 14, 2025, 12:03:36 PMJul 14
to Android CameraX Discussion Group, scot...@google.com, Android CameraX Discussion Group, Ali safwat - علي صفوت‎

Thank you for the update regarding the upcoming 1.5.0-beta02 release.

I just wanted to clarify that the issue I’m encountering seems to be related to the current version of CameraX itself, rather than any problem in my camera setup code. I’ve reviewed my implementation, and everything appears to be correctly configured.

I'll keep an eye out for the beta release and will test it as soon as it's available to confirm if the issue is resolved.

Scott Nien

unread,
Jul 16, 2025, 6:26:49 AMJul 16
to Ali safwat - علي صفوت, Android CameraX Discussion Group
You are right. The memory leak is caused by CameraX code. We have identified it, fixed it  and added tests to ensure that won't happen again. 
Reply all
Reply to author
Forward
0 new messages