Hi,

I am trying to create PVMediaRecorder from my application which
includes JAVA as well as JNI layer.
I am able to create video surface in Java and also able to pass that
to native code through JNI.
Hence camera preview is working and audio transfer is also happening
continuously.
But when opencore tries to read camera buffer, the one of the memory
management function fails.
Please find the log as below:

/QualcommCameraHardware(   33): PREVIEW FRAME CALLBACK base 0x40724000
addr 0x40724000 offset 0 framesz 176x144=50760 (expect 38016) rotation
0 (index 0) size 38016 header_size 0x48

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/PV      (  471): PVLOG:TID
(0x1fd240):Time=6051:PVAuthorEngine::NodeUtilCommandCompleted: Exit

I/CameraInput(  471): Run

I/CameraInput(  471): DoRead

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6052:OsclError::Leave!
reason 114

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

I/QualcommCameraHardware(   33): PREVIEW FRAME CALLBACK base
0x40724000 addr 0x4073cc90 offset 101520 framesz 176x144=50760 (expect
38016) rotation 0 (index 2) size 38016 header_size 0x48

I/CameraInput(  471): recording_frame_callback

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

I/CameraInput(  471): postWriteAsync: ID = -1, base = 0xffffffff,
offset = 0x48, size = 38016 pointer 0x0

I/CameraInput(  471): postWriteAsync

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

I/CameraInput(  471): postWriteAsync: ID = -1, base = 0xffffffff,
offset = 0x48, size = 38016 pointer 0x0

I/CameraInput(  471): Run

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

I/CameraInput(  471): Ln -2137784824 ERROR null pointer

I/CameraInput(  471): Ln 768 Run writeAsync error 105 mFrameRefCount 0

I/Camera  (  471): recordingCallback

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

E/IMemory (  471): cannot map BpMemoryHeap (binder=0x2cb6f8),
size=262144, fd=50 (Invalid argument)

I/CameraInput(  471): recording_frame_callback

I/QualcommCameraHardware(   33): PREVIEW FRAME CALLBACK base
0x40724000 addr 0x407492d8 offset 152280 framesz 176x144=50760 (expect
38016) rotation 0 (index 3) size 38016 header_size 0x48

E/PV      (  471): PVLOG:TID
(0x1fd240):Time=6180:PvmfMediaInputDataBufferAlloc::allocate:
aMediaInput=0x1c6da0, aData=0x2cdff8, aDataLength=2048, aCmdId=0,
aContext=0x0

E/PV      (  471): PVLOG:TID
(0x1fd240):Time=6184:PvmfMediaInputNodeOutPort::writeAsync:StreamID=0,
TS=0, Len=2048, SN=4, MimeType=audio/L16

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:0x234340
PvmfPortBaseImpl::QueueOutgoingMsg

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:0x233da8
PvmfPortBaseImpl::Receive

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:PORT OMXEncIn In Msg
Received  MediaData SeqNum 4, SId 0, TS 0, Q-depth 1/10

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:0x22aed8
PVMFOMXEncNode-Audio_AMRNB::PortActivity: port=0x233da8, type=5

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:PVMFOMXEncNode-
Audio_AMRNB::PortActivity: IncomingMsgQueueSize=1

E/PV      (  471): PVLOG:TID(0x1fd240):Time=6184:PORT
PVMFMediaIpNodeOut Msg Sent Directly MediaData SeqNum 4, SId 0, TS 0,
Q-depth 0/10

Thanks in advance,
Yogi
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to