Android Tutorial Camera2 - Still images and videos

Status
Not open for further replies.
Camera2 library is based on the Camera2 API introduced in Android 5 (API 21).
It is designed to work together with CamEx2 class.
It is supported by B4A v7.3+. The library will be included as an internal library in the next update.

Both image capturing and video recording are supported.
CamEx2 class is built to be extended. Camera2 native API is huge.

SS-2017-09-14_17.27.38.png


The configuration steps:

1. Open the camera when the activity is resumed.
2. Prepare the surface and start preview. The preview size and capture size are set at this point.
3. Stop the camera when the activity is paused.

Take pictures with FocusAndTakePicture or TakePictureNow.

Video capturing is done by calling StartVideoRecording and StopVideoRecording.
The surface needs to be recreated after the video is recorded.

TaskIndex

When you open the camera you receive a number called TaskIndex:
B4X:
Wait For (cam.OpenCamera(front)) Complete (TaskIndex As Int)
If TaskIndex > 0 Then
   MyTaskIndex = TaskIndex 'hold this index. It will be required in later calls.
   Wait For(PrepareSurface) Complete (Success As Boolean)
End If
If the value of TaskIndex is 0 then the camera failed to open. Otherwise you need to store it in a global variable and pass it to other camera methods.

The camera can be stopped or reopened while other asynchronous tasks are running. The task index is used to cancel running tasks in such cases.

Notes & tips

- The RECORD_AUDIO is not added automatically as it is only required when recording video. In such case you need to add it with the manifest editor:
B4X:
AddPermission(android.permission.RECORD_AUDIO)

CamEx2 class is is included in the attached example.
It depends on Camera2 v1.10+.

Change log

- V1.31 - Changes the behavior of PreviewCropRegion to affect the captured image as well (previously it was inconsistent).
- V1.30 - Fixes an issue with video orientation.
- V1.20
  • Example updated and targetSdkVersion is set to 26. Permissions are handled at runtime.
  • Digital zoom feature. Note that it only affects the preview.
  • Fixed typo in getSupportedVideoSizes method.

New example:
  • Based on B4XPages (there are instructions inside if you want to use it in an Activity module).
  • Preview image is not stretched.
  • Captured image is shown with the correct orientation.
 

Attachments

  • CamEx2.zip
    22.4 KB · Views: 779
Last edited:

PhiloSophical

Member
Licensed User
Hit this problem with your example when trying to record video.

The app opens up but crashes after pressing the toggle for video/camera

Moto G5 Phone - Android 7.0 SDK24

Error occurred on line: 135 (CamEx2)
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): submitRequestList - configured surface is abandoned.

Any ideas?

Thanks

B4X:
'Starts the preview.
Public Sub StartPreview (MyTaskIndex As Int, VideoRecording As Boolean)
    Dim PreviewBuilder As JavaObject
    If VideoRecording Then
        PreviewBuilder = Camera.CreateVideoRequestBuilder      
    Else
        PreviewBuilder = Camera.CreatePreviewBuilder
    End If
    SetSettingsFromMap(PreviewBuilder, PreviewSettingsMap)
    'line 135 follows
    PreviewRequest = Camera.SetRepeatingRequest(PreviewBuilder)
    If PrintKeys Then PrintAllKeys(PreviewRequest, "Preview Capture Request")
End Sub
 
Last edited:

PhiloSophical

Member
Licensed User
Full Error below:-

Logger connected to: motorola Moto G (5)
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Start success: true
Error occurred on line: 135 (CamEx2)
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): submitRequestList - configured surface is abandoned.
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:633)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.submitRequestList(ICameraDeviceUserWrapper.java:86)
at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest(CameraDeviceImpl.java:865)
at android.hardware.camera2.impl.CameraDeviceImpl.setRepeatingRequest(CameraDeviceImpl.java:904)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:236)
at anywheresoftware.b4a.objects.Camera2.SetRepeatingRequest(Camera2.java:359)
at b4a.example3.camex2._startpreview(camex2.java:196)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:19)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:132)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1733)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: android.os.ServiceSpecificException: submitRequestList - configured surface is abandoned.
at android.hardware.camera2.legacy.LegacyCameraDevice.submitRequestList(LegacyCameraDevice.java:425)
at android.hardware.camera2.legacy.CameraDeviceUserShim.submitRequestList(CameraDeviceUserShim.java:443)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.submitRequestList(ICameraDeviceUserWrapper.java:84)
... 24 more
 

PhiloSophical

Member
Licensed User
I found an app "Camera2 probe" - output below - does this help in any way?

Model:Moto G (5)
Manufacturer:motorola
Build:7.0
SDK:24
SupportLevel:2
SupportLevel HR:Legacy
Manual exposure:0
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash redeye:0
AF Lock:1
Manual focus:1
Auto focus:1
Auto focus macro:1
Auto focus continuous picture:1
Auto focus continuous video:1
Auto focus EDOF:0
Whitebalance off:0
Automatic whitebalance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:0
 

PhiloSophical

Member
Licensed User
Good news - this seems to have fixed the problem.

The original post #1 in this thread now contains the CamEx2 v1.11 code in the attached zip.

Thanks very much.
 

jimmyF

Active Member
Licensed User
Longtime User
Logger connected to: BlackBerry BBB100-1
--------- beginning of main
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Start success: true
Start success: true
Start success: true
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)
at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
--------- beginning of crash
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Start success: true
Picture taken: (Bitmap): 1080 x 1920, scale = 1.00
Picture taken: (Bitmap): 1080 x 1920, scale = 1.00
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
Unknown const: 18
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)
at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
BB KeyOne
Android 7.1.1
I wish I could say exactly what is happening at the time but it appears to be quite random.
 

jimmyF

Active Member
Licensed User
Longtime User
No. Filtered.
 

jimmyF

Active Member
Licensed User
Longtime User
These are new, unfiltered. In Release mode.
Logger connected to: BlackBerry BBB100-1
--------- beginning of main
Starting remote logger. Port: 29707
*** Service (starter) Create ***
** Service (starter) Start **
Initialized EGL, version 1.4
Swap behavior 1
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Do partial code cache collection, code=23KB, data=30KB
After code cache collection, code=23KB, data=30KB
Increasing code cache capacity to 128KB
After accept
Do partial code cache collection, code=43KB, data=52KB
After code cache collection, code=43KB, data=52KB
Increasing code cache capacity to 256KB
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@9acaff7
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Compiler allocated 5MB to compile void android.hardware.camera2.legacy.LegacyRequestMapper.convertRequestMetadata(android.hardware.camera2.legacy.LegacyRequest)
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 7
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-14305-1] queueBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-1] cancelBuffer: BufferQueue has been abandoned
Jpeg surface is invalid, skipping...
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
Start success: true
Legacy camera service transitioning to state CAPTURING
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-14305-3] queueBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-14305-3] cancelBuffer: BufferQueue has been abandoned
Jpeg surface is invalid, skipping...
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Jpeg surface is invalid, skipping...
getNativeWindow: Surface had no valid native window.
Legacy camera service transitioning to state IDLE
Skipped 37 frames! The application may be doing too much work on its main thread.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 1
Legacy camera service transitioning to state IDLE
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Do full code cache collection, code=113KB, data=124KB
Starting a blocking GC JitCodeCache
After code cache collection, code=99KB, data=99KB
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2010)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2044)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:358)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:761)
Starting remote logger. Port: 29707
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
After accept
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Background sticky concurrent mark sweep GC freed 273742(7MB) AllocSpace objects, 1(16KB) LOS objects, 54% free, 6MB/13MB, paused 1.141ms total 102.238ms
Background partial concurrent mark sweep GC freed 297532(7MB) AllocSpace objects, 1(52KB) LOS objects, 59% free, 5MB/13MB, paused 1.263ms total 114.153ms
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Background sticky concurrent mark sweep GC freed 269539(7MB) AllocSpace objects, 5(80KB) LOS objects, 54% free, 6MB/13MB, paused 18.657ms total 114.044ms
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Background partial concurrent mark sweep GC freed 297580(7MB) AllocSpace objects, 2(32KB) LOS objects, 59% free, 5MB/13MB, paused 1.247ms total 111.439ms
Background sticky concurrent mark sweep GC freed 291574(7MB) AllocSpace objects, 0(0B) LOS objects, 57% free, 5MB/13MB, paused 1.114ms total 101.090ms
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Focus not supported
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 27
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
Received jpeg.
Producing jpeg buffer...
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Picture taken: (Bitmap): 1080 x 1920, scale = 1.00
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Focus not supported
Flushing all pending requests.
Repeating capture request cancelled.
previewProduced called with no preview request on queue!
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
** Activity (main) Pause, UserClosed = true **
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 31
Legacy camera service transitioning to state CAPTURING
swapBuffers encountered EGL error 12301 on 0x32abec23c0, halting rendering...
Thread[3,tid=14309,WaitingInMainSignalCatcherLoop,Thread*=0x32c7440e00,peer=0x12c03160,"Signal Catcher"]: reacting to signal 3
Wrote stack traces to '/data/anr/traces.txt'
Starting remote logger. Port: 29707
*** Service (starter) Create ***
After accept
-1 received
Starting remote logger. Port: 29707
Starting remote logger. Port: 29707
*** Service (starter) Create ***
** Service (starter) Start **
Initialized EGL, version 1.4
Swap behavior 1
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
After accept
Skipped 189 frames! The application may be doing too much work on its main thread.
Failed to open camera
Start success: false
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@9acaff7
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2010)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2044)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:358)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:761)
Starting remote logger. Port: 29707
After accept
** Activity (main) Pause, UserClosed = false **

It hung on me and had to reboot the device to quit the app and turn off the flash.
 

jimmyF

Active Member
Licensed User
Longtime User
In Debug mode. Unfiltered.

Logger connected to: BlackBerry BBB100-1
--------- beginning of main
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Starting remote logger. Port: 29707
Initialized EGL, version 1.4
Swap behavior 1
*** Debugger waiting for connection (0) ***
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Do partial code cache collection, code=21KB, data=30KB
After code cache collection, code=20KB, data=30KB
Increasing code cache capacity to 128KB
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Skipped 40 frames! The application may be doing too much work on its main thread.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Do partial code cache collection, code=49KB, data=62KB
After code cache collection, code=49KB, data=62KB
Increasing code cache capacity to 256KB
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee5a41c
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do full code cache collection, code=118KB, data=123KB
Starting a blocking GC JitCodeCache
After code cache collection, code=102KB, data=97KB
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do partial code cache collection, code=106KB, data=100KB
After code cache collection, code=106KB, data=100KB
Increasing code cache capacity to 512KB
Compiler allocated 5MB to compile void android.hardware.camera2.legacy.LegacyRequestMapper.convertRequestMetadata(android.hardware.camera2.legacy.LegacyRequest)
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
** Activity (main) Pause, UserClosed = false **
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 21
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-9216-1] queueBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
Jpeg surface is invalid, skipping...
 

jimmyF

Active Member
Licensed User
Longtime User
None of the two modes above were in video mode. Camera only.

This is in Video Mode:
Logger connected to: BlackBerry BBB100-1
--------- beginning of main
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Starting remote logger. Port: 29707
Initialized EGL, version 1.4
Swap behavior 1
*** Debugger waiting for connection (0) ***
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Do partial code cache collection, code=21KB, data=30KB
After code cache collection, code=20KB, data=30KB
Increasing code cache capacity to 128KB
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Skipped 40 frames! The application may be doing too much work on its main thread.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Do partial code cache collection, code=49KB, data=62KB
After code cache collection, code=49KB, data=62KB
Increasing code cache capacity to 256KB
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee5a41c
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do full code cache collection, code=118KB, data=123KB
Starting a blocking GC JitCodeCache
After code cache collection, code=102KB, data=97KB
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do partial code cache collection, code=106KB, data=100KB
After code cache collection, code=106KB, data=100KB
Increasing code cache capacity to 512KB
Compiler allocated 5MB to compile void android.hardware.camera2.legacy.LegacyRequestMapper.convertRequestMetadata(android.hardware.camera2.legacy.LegacyRequest)
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Unknown const: 18
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
** Activity (main) Pause, UserClosed = false **
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 21
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-9216-1] queueBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9216-1] cancelBuffer: BufferQueue has been abandoned
Jpeg surface is invalid, skipping...
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Starting remote logger. Port: 29707
After accept
Initialized EGL, version 1.4
Swap behavior 1
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Do partial code cache collection, code=21KB, data=30KB
After code cache collection, code=20KB, data=30KB
Increasing code cache capacity to 128KB
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Do partial code cache collection, code=49KB, data=61KB
After code cache collection, code=49KB, data=61KB
Increasing code cache capacity to 256KB
Background sticky concurrent mark sweep GC freed 287152(7MB) AllocSpace objects, 0(0B) LOS objects, 57% free, 5MB/13MB, paused 1.623ms total 107.308ms
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee5a41c
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Jpeg surface is invalid, skipping...
getNativeWindow: Surface had no valid native window.
Legacy camera service transitioning to state IDLE
Skipped 37 frames! The application may be doing too much work on its main thread.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
Do full code cache collection, code=120KB, data=123KB
Starting a blocking GC JitCodeCache
After code cache collection, code=106KB, data=99KB
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do partial code cache collection, code=110KB, data=105KB
After code cache collection, code=110KB, data=105KB
Increasing code cache capacity to 512KB
Compiler allocated 5MB to compile void android.hardware.camera2.legacy.LegacyRequestMapper.convertRequestMetadata(android.hardware.camera2.legacy.LegacyRequest)
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Flushing all pending requests.
Repeating capture request cancelled.
Buffer drop error reported for unknown Surface
previewProduced called with no preview request on queue!
Legacy camera service transitioning to state IDLE
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)
at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
[SurfaceTexture-1-9969-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9969-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9969-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9969-3] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-9969-3] cancelBuffer: BufferQueue has been abandoned
--------- beginning of crash
FATAL EXCEPTION: LegacyCameraCallback
Process: b4a.example3, PID: 9969
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)
at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Sending signal. PID: 9969 SIG: 9
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Starting remote logger. Port: 29707
Initialized EGL, version 1.4
Swap behavior 1
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Do partial code cache collection, code=21KB, data=30KB
After code cache collection, code=20KB, data=30KB
Increasing code cache capacity to 128KB
** Activity (main) Resume **
Connecting to camera service
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Do partial code cache collection, code=49KB, data=61KB
After code cache collection, code=49KB, data=61KB
Increasing code cache capacity to 256KB
After accept
w:1080/h:1620
get realw:1080
mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee5a41c
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Jpeg surface is invalid, skipping...
getNativeWindow: Surface had no valid native window.
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do full code cache collection, code=116KB, data=123KB
Starting a blocking GC JitCodeCache
After code cache collection, code=102KB, data=98KB
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
BoostFramework() : mPerf = com.qualcomm.qti.Performance@a159f50
--------- beginning of system
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
Boost for CKB!!!
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Do partial code cache collection, code=118KB, data=119KB
After code cache collection, code=118KB, data=119KB
Increasing code cache capacity to 512KB
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 26
Legacy camera service transitioning to state IDLE
Skipped 31 frames! The application may be doing too much work on its main thread.
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 27
Legacy camera service transitioning to state IDLE
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 28
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Jpeg surface is invalid, skipping...
getNativeWindow: Surface had no valid native window.
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
b4a.example3 try to getCameraCharacteristics
Repeating capture request cancelled.
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 39
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-10235-9] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-9] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-9] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-9] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-9] cancelBuffer: BufferQueue has been abandoned
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
Start success: true
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
Legacy camera service transitioning to state CAPTURING
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 1
Legacy camera service transitioning to state IDLE
Handler (android.graphics.SurfaceTexture$1) {57a1c34} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.graphics.SurfaceTexture$1) {57a1c34} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:643)
at android.os.Handler.sendMessageAtTime(Handler.java:612)
at android.os.Handler.sendMessageDelayed(Handler.java:582)
at android.os.Handler.sendEmptyMessageDelayed(Handler.java:546)
at android.os.Handler.sendEmptyMessage(Handler.java:531)
at android.graphics.SurfaceTexture.postEventFromNative(SurfaceTexture.java:380)
[SurfaceTexture-1-10235-13] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-13] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-13] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-13] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-13] cancelBuffer: BufferQueue has been abandoned
b4a.example3 try to getCameraCharacteristics
b4a.example3 try to getCameraCharacteristics
Using legacy camera HAL.
b4a.example3 try to getCameraCharacteristics
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Capture failed for request: 0
Legacy camera service transitioning to state IDLE
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
configureOutputs - set take picture size to 1920x1080
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Legacy camera service transitioning to state CAPTURING
** Activity (main) Pause, UserClosed = false **
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 1
Legacy camera service transitioning to state IDLE
[SurfaceTexture-1-10235-17] queueBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-17] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-17] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-10235-17] cancelBuffer: BufferQueue has been abandoned
Jpeg surface is invalid, skipping...
 

rboeck

Well-Known Member
Licensed User
Longtime User
I get a crash after switching from photo mode to video mode, when i try to take the first or a second video.

This is my filtred log:
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Start success: true
Unknown const: 18
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference
    at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)
    at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)
    at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:179)
    at android.os.HandlerThread.run(HandlerThread.java:61)
** Activity (main) Pause, UserClosed = true **
Ignoring event: camera_surfaceready
Ignoring event: camera_previewcapturecomplete

Sometimes i see a short message near the camera icon, with something like "camera not ready", but currently i cannot reproduce it.
Mobile is Axon 7, Android 7.1.1
 
Status
Not open for further replies.
Top