Skip to content

[BUG] Copy large video from fadcam to gallery is failed #296

@6we66638

Description

@6we66638

Bug Report

Description

When I copy a large video file(13.5 GiB) from fadcam to the gallery, Fadcam crashed and return a error message. The video I copied over is just 11.4 GiB. It plays okay at the start, but it seems to be cut off​ at the end.

java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 80136 free bytes and 78KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
	at java.lang.ThreadLocal$ThreadLocalMap.set(ThreadLocal.java:511)
	at java.lang.ThreadLocal$ThreadLocalMap.-$$Nest$mset(Unknown Source:0)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:199)
	at java.lang.ThreadLocal.get(ThreadLocal.java:172)
	at android.app.AppOpsManager.pauseNotedAppOpsCollection(AppOpsManager.java:10961)
	at android.os.BinderProxy.transact(BinderProxy.java:730)
	at android.hardware.display.IDisplayManager$Stub$Proxy.getDisplayInfo(IDisplayManager.java:1493)
	at android.hardware.display.DisplayManagerGlobal$1.recompute(DisplayManagerGlobal.java:233)
	at android.hardware.display.DisplayManagerGlobal$1.recompute(DisplayManagerGlobal.java:228)
	at android.app.PropertyInvalidatedCache.query(PropertyInvalidatedCache.java:1780)
	at android.hardware.display.DisplayManagerGlobal.getDisplayInfoLocked(DisplayManagerGlobal.java:284)
	at android.hardware.display.DisplayManagerGlobal.handleDisplayEvent(DisplayManagerGlobal.java:663)
	at android.hardware.display.DisplayManagerGlobal.-$$Nest$mhandleDisplayEvent(Unknown Source:0)
	at android.hardware.display.DisplayManagerGlobal$DisplayManagerCallback.onDisplayEvent(DisplayManagerGlobal.java:1608)
	at android.hardware.display.IDisplayManagerCallback$Stub.onTransact(IDisplayManagerCallback.java:98)
	at android.os.Binder.execTransactInternal(Binder.java:1433)
	at android.os.Binder.execTransact(Binder.java:1372)

This error only happened when the video file is very large.

Steps to Reproduce

  1. Record a large video file (over 15 GiB)
  2. Copy the video to gallery
  3. See error

Expected Behavior

It should be exporting to gallery with no issues.

Environment

  • Device: Redmi K90
  • OS: Android 16
  • App Version: 3.0.1

Priority

  • Low
  • Medium
  • High

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions