qdrzwd / VideoRecorder

android视频录制,模仿微视,支持按下录制、抬起暂停。进度条断点显示。
Apache License 2.0
1.8k stars 563 forks source link

OOM #61

Open langyazhouwl opened 7 years ago

langyazhouwl commented 7 years ago

When I changed the recorder time ,it crashed throws OOM exception.

Throwing OutOfMemoryError "Failed to allocate a 138240019 byte allocation with 7739856 free bytes and 84MB until OOM" 12-16 15:05:30.514 7518-7632/com.qd.videorecorder E/art: Throwing OutOfMemoryError "Failed to allocate a 138240019 byte allocation with 7739952 free bytes and 84MB until OOM" 12-16 15:05:30.514 7518-7632/com.qd.videorecorder E/AndroidRuntime: FATAL EXCEPTION: Thread- Process: com.qd.videorecorder, PID: 7518 java.lang.OutOfMemoryError: Failed to allocate a 138240019 byte allocation with 7739952 free bytes and 84MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) atjava.nio.MemoryBlock.allocate(MemoryBlock.java:131)at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:73) at com.qd.recorder.RecorderThread.run(RecorderThread.java:49) 12-16 15:06:10.144 7745-7745/com.qd.videorecorder E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present 12-16 15:06:10.514 7745-7745/com.qd.videorecorder E/MediaPlayer: Should have subtitle controller already set 12-16 15:06:10.584 7745-7745/com.qd.videorecorder E/MediaPlayer: Should have subtitle controller already set