Android Question VideoRecordd App

Francisco Barbosa

Member
Licensed User
Longtime User
Hi,

I use VideoRecordApp library, and I made test simple code:

Global Process
Dim the video VideoRecordApp

Create Sub ...
video.Initialize ("video")
video.Record (File.DirRootExternal, "video.mp4")
end sub

In some devices the message appeared. These used the 2.3.5 version of Android:
"Sorry. The application Camera (process com.andoid.camera) has stopped unexpectedly.

Other two device run Android 4 and are OK.

Could you help me?

Thanks.
 

Francisco Barbosa

Member
Licensed User
Longtime User
Hi Erel,

Thanks once more for your cooperation.
For your guidance, camera (image) runs OK, the problem is camera (video).


Follows the error message:

[DCT(0) ] mDataActivityErrorCount = 0
Starting: Intent { act=android.media.action.VIDEO_CAPTURE cmp=com.android.camera/.VideoCamera (has extras) } from pid 17758
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40a30170
** Activity (chat) Pause, UserClosed = false **
Start proc com.android.camera for activity com.android.camera/.VideoCamera: pid=17950 uid=10010 gids={1006, 1015}
Setting rotation to 1, animFlags=1
Config changed: { scale=1.0 imsi=724/31 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=18 uiMode=17 seq=26}
updateProximitySensorMode: state = IDLE
width is: 480
Process com.android.vending (pid 17897) has died.
Low Memory: No more background processes.
Found a matching camera info for ID 0
HAL_getCameraInfo: orientation = 90
HAL_getCameraInfo: modes supported = 5
Found a matching camera info for ID 0
HAL_getCameraInfo: orientation = 90
HAL_getCameraInfo: modes supported = 5
Found a matching camera info for ID 0
HAL_getCameraInfo: orientation = 90
HAL_getCameraInfo: modes supported = 5
modes supported for camera id 0 = 5
open camera 0
seconds=5,quality=high
openCameraHardware: call createInstance
openCameraHardware:Valid camera ID 0
openCameraHardware:camera mode 1
HAL_openCameraHardware: HAL_currentSnapshotMode = 4
createInstance: E
QualcommCameraHardware constructor E
MMCameraDL: E
Open MM camera DL libeomcamera loaded at 0xb000e660
MMCameraDL: X
Storing the current target type as 3
constructor EX
createInstance: created hardware=0x23fa8
openCamera : E
startCamera E
loading liboemcamera at 0xb000e660
Cannot find resource
Cannot find resource
Cannot find resource
sensor_load_chromatix: Sensor name: ov2655 cnt=14
ov2655_process_start
ov2655_register
ov2655_setup_camctrl_tbl
config_proc_CAMERA_GET_CAPABILITIES:lilonghui prop->yuv_output= 1
config_proc_CAMERA_GET_CAPABILITIES:lilonghui ctrl->sensorCtrl.chromatixAnd3a.af_enable= 0
openCamera : X
startCamera picture_sizes 0xa7788500 PICTURE_SIZE_COUNT 15
startCamera preview_sizes 0xa7788588 previewSizeCount 9
startCamera hfr_sizes 0xa77884f0 hfrSizeCount 2
startCamera X
initDefaultParameters E
config_proc_ctrl_command:
dimension.picture_width = 640
dimension.picture_height = 480
dimension.display_width = 0
dimension.display_height = 0
ov2655_video_config, ctrl->sfd = 24
AutoFocus is not supported
DISABLE DIS
camera_sensor_type_is_supported: camera sensor type:yuv is_supported 1
is_yuv_sensor? =1
updateFocusDistances: IN
updateFocusDistances: setting KEY_FOCUS_DISTANCES as 1.000000,1.000000,Infinity
config_proc_CAMERA_GET_PARM_ZOOMRATIOS: E
Maximum zoom value is 61
max zoom is 60
initDefaultParameters: setting num-snaps-per-shutter to 1
setParameters: E params = 0x23fb8
requested preview size 640 x 480
No Record Size requested, use the preview dimensions
setRecordSize: preview dimensions: 640x480
setRecordSize: video dimensions: 640x480
requested picture size 640 x 480
requested jpeg thumbnail size 512 x 384
is_yuv_sensor? =1
setEffect value =0
ov2655_set_effect, ctrl->sfd = 24, op_mode = 3
Setting effect to 0
native_set_parms status = 0
In config_proc_CAMERA_SET_PARM_ZOOM
Parameter Rolloff is not supported for this sensor
Parameter MCE is not supported for this sensor
setting sharpness 10
ov2655_set_sharpness, ctrl->sfd = 24
Setting saturation 5
ov2655_set_saturation, ctrl->sfd = 24
native_set_parms status = 0
Parameter Scenemode is not supported for this sensor
setting contrast 5
strtextures = OFF
config_proc_CAMERA_SET_PARM_PREVIEW_FORMAT: Preview format 1
In config_proc_CAMERA_SET_PARM_ANTIBANDING output_format=1
ov2655_set_antibanding, ctrl->sfd = 24, op_mode = 3
Setting antibanding to 0
config_proc_CAMERA_SET_PARM_ANTIBANDING, 0x4116b490, 0
native_set_parms status = 0
setRedeyeReduction: setting Redeye Reduction value of disable
config_proc_CAMERA_SET_REDEYE_REDUCTION: mode =37726208
config_proc_CAMERA_SET_REDEYE_REDUCTION: FAILED
native_set_parms failed: type 50 length 1 error No such file or directory
Wavelet Denoise is not supported for this sensor
FPS Range Values: 5000x31000
Zsl is not enabled
Set fps is not supported for this sensor
set fps mode is not supported for this sensor
Auto Exposure not supported for this sensor
Exposure Compensation numerator = 0
Exposure Compensation value = 0
In config_proc_CAMERA_SET_PARM_EXPOSURE_COMPENSATION
ov2655_set_exposure_compensation
config_proc_CAMERA_SET_PARM_EXPOSURE_COMPENSATION, 0x4116b490, 0
ov2655_set_wb_oem param = 1
set ioctl to camera driver

native_set_parms status = 0
setFlash: flash not supported
Set Brightness not supported for this sensor
ov2655_set_iso, ctrl->sfd = 24
Parameter HFR is not supported for this sensor
setParameters: X
Using Overlay : NO
initDefaultParameters X
createInstance: X
Found a matching camera info for ID 0
HAL_getCameraInfo: orientation = 90
HAL_getCameraInfo: modes supported = 5
Using Overlay : NO
getParameters: EX
setDataSource(/system/media/audio/ui/camera_click.ogg)
Client(37) constructor
Create new client(37) from pid 93, url=/system/media/audio/ui/camera_click.ogg, connId=37, audioSessionId=48
setDataSource(/system/media/audio/ui/camera_click.ogg)
startPreview
Found a matching camera info for ID 0
HAL_getCameraInfo: orientation = 90
HAL_getCameraInfo: modes supported = 5
getParameters: EX
usePVPlayer: did not detect file to be with LPA implementation
The Default player that is returned is STAGEFRIGHT**************
player type = 4
create StagefrightPlayer
threadid=8: thread exiting with uncaught exception (group=0x402bd560)
AudioOutput(48)
setDataSource
[37] setAudioStreamType(10)
[37] prepareAsync
FATAL EXCEPTION: Thread-9
java.lang.NullPointerException
at com.android.camera.VideoCamera.updateProfileInHud(VideoCamera.java:871)
at com.android.camera.VideoCamera.setCameraParameters(VideoCamera.java:2958)
at com.android.camera.VideoCamera.startPreview(VideoCamera.java:1705)
at com.android.camera.VideoCamera.access$1700(VideoCamera.java:127)
at com.android.camera.VideoCamera$1.run(VideoCamera.java:553)
at java.lang.Thread.run(Thread.java:1019)
Force finishing activity com.android.camera/.VideoCamera
[37] notify (0x223b8, 5, 0, 0)
[37] notify (0x223b8, 1, 0, 0)
setDataSource(/system/media/audio/ui/VideoRecord.ogg)
Client(38) constructor
Create new client(38) from pid 93, url=/system/media/audio/ui/VideoRecord.ogg, connId=38, audioSessionId=49
setDataSource(/system/media/audio/ui/VideoRecord.ogg)
usePVPlayer: did not detect file to be with LPA implementation
The Default player that is returned is STAGEFRIGHT**************
player type = 4
create StagefrightPlayer
AudioOutput(49)
setDataSource
[38] setAudioStreamType(10)
[38] prepareAsync
[38] notify (0x2ef28, 5, 0, 0)
[38] notify (0x2ef28, 1, 0, 0)
Setting rotation to 0, animFlags=1
updateProximitySensorMode: state = IDLE
Config changed: { scale=1.0 imsi=724/31 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=18 uiMode=17 seq=27}
width is: 320
Activity pause timeout for HistoryRecord{407e50a8 com.android.camera/.VideoCamera}
sending message to waiting queue (OnActivityResult)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the error:
java.lang.NullPointerException
at com.android.camera.VideoCamera.updateProfileInHud(VideoCamera.java:871)
at com.android.camera.VideoCamera.setCameraParameters(VideoCamera.java:2958)
at com.android.camera.VideoCamera.startPreview(VideoCamera.java:1705)
at com.android.camera.VideoCamera.access$1700(VideoCamera.java:127)
at com.android.camera.VideoCamera$1.run(VideoCamera.java:553)

However I don't see any references to this error so I cannot say I it happens.
 
Upvote 0
Top