Android 4.3 Issues thread

NJDude

Expert
Licensed User
Longtime User
There's another thread HERE but I think it would be better to consolidate the issues into one.

Another problem with 4.3 is the Camera, for example, if you use B4A VideoRecordApp, it just doesn't work, I found out via one of my apps (which uses a different code but it's camera related), after upgrading I get null point errors.
 
Last edited:

canalrun

Well-Known Member
Licensed User
Longtime User
I developed a small test app to illustrate the problem that appeared with the VideoRecordApp on my Nexus 7 after it upgraded to Android 4.3. Recording a video no longer worked. Initially I thought it was not entering the _RecordComplete event but that's not the case. It enters this subroutine but the Success flag is set to false. At this time I had been using the now older version of the Audio library, version 1.34.

Erel updated the library to 1.51. Using this library version on the Android 4.3 Nexus, it works sometimes, although about every third or fourth attempt I get the error "Unfortunately, Gallery has stopped working".

I also need to support earlier versions of Android. The test devices I am using include the Nexus 7 (Android 4.3), an HTC Amaze (Android version 4.0.3) and an LG Optimus One (Android version 2.2.1). The audio library version 1.51 did not work with the HTC amaze, but it did work with the LG Optimus.

I have attached my test application. I have also included results of testing my test app, compiled with the two versions of the Audio library, on my three test devices.

In summary:

Compiled with the Audio library version 1.51, the test app works unreliably on the Nexus, not at all on the Amaze, and seems to work correctly and reliably on the Optimus.

Compiled with the Audio library version 1.34, the test app does not work on the Nexus, but works reliably on both the Amaze and Optimus.

The 4.3 Android update seems to have introduced some kind of problem. I have read Google posts indicating others are having trouble with 4.3. Does anyone know what the root cause of the trouble is? In addition to this VideoRecordApp stuff I have encountered other little glitches when using 4.3. I think earlier in this thread someone mentioned a problem with pressing the Back button – I have encountered this also.

Thanks,
Barry.


==============
I ran the test app on my Nexus 7 which has the android 4.3 upgrade.
For this series of tests I am using the updated Audio Library version 1.51 dated July 28, 2013.
The B4A compiler is version 2.71.

The first time I ran it I got the "Unfortunately, Gallery has stopped" android error.

B4X:
Nexus 7, Android 4.3, Audio lib 1.51 (7/28), ' Unfortunately, Gallery has stopped - note 3. success = false

Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
3. **> Vid Rec Comp, Success = false,
** Activity (main) Resume **
** Service (contentsrv) Destroy **
Service Destroy

The next few times it succeeded on my Nexus. Every so often it would fail with the "Unfortunately" error.
It definitely does not work reliably.

B4X:
Nexus 7, Android 4.3, Audio lib 1.51 (7/28), ' Note 3. success = true

Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///storage/emulated/0/Android/data/b4a.example.vrtst/files/1375574337815.mp4
** Service (contentsrv) Destroy **
Service Destroy

I also tried the same test app on my LG Optimus One (android 2.2.1), and my HTC Amaze (android 4.0.3).
The updated Audio library, 1.5.1, is being used.

On my HTC Amaze running the test several times, I never encountered the "Unfortunately" problem.
Every time I save the video it does enter the _RecordComplete event, but the success flag is false.

B4X:
HTC Amaze, Android 4.0.3, Audio lib 1.51 (7/28), ' Note 3. success = false

Installing file.
PackageAdded: package:b4a.example.vrtsthim him
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = false,
** Service (contentsrv) Destroy **
Service Destroy

On my LG Optimius One, I ran the test several times. I also never encountered the "Unfortunately" problem.
This seems to work. The _RecordComplete event is entered with success = true.
I ran this test several times, always successfully, on the LG Optimius One.

B4X:
LG Optimius One, Android 2.2.1, Audio lib 1.51 (7/28), ' Note 3. success = true

Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375576406783.mp4
** Service (contentsrv) Destroy **
Service Destroy



=========================
For the next series of tests I am using the older Audio Library version 1.34. On my development system it's dated June 25, 2013.
I am using the same test app. The B4A compiler is version 2.71.

Testing on the Nexus when I press the "Video Record" button, the video recorder opens as if getting ready to record but then immediately closes and returns to my test app. The _RecordComplete event runs with success = false.
Running this test several times produced the same result each time.

B4X:
Nexus 7, Android 4.3, Audio lib 1.34 (6/25), ' Note 3. success = false

Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
3. **> Vid Rec Comp, Success = false,
** Activity (main) Resume **
** Service (contentsrv) Destroy **
Service Destroy

I ran the test app on my HTC Amaze compiling with the old Audio library, 1.34. This worked reliably each time.

B4X:
HTC Amaze, Android 4.0.3, Audio lib 1.34 (6/25), ' Note 3. success = true

Installing file.
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375578245066.mp4
** Service (contentsrv) Destroy **
Service Destroy

Finally I repeated the test using the old Audio library on my LG Optimus One. This succeeded reliably.

B4X:
LG Optimius One, Android 2.2.1, Audio lib 1.34 (6/25), ' Note 3. success = true

Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375578677637.mp4
** Service (contentsrv) Destroy **
Service Destroy
 

Attachments

  • vrtst.zip
    6.9 KB · Views: 157
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,

Thanks.

1.52 works on all three of my test devices; Nexus 7 (Android 4.3), HTC Amaze (Android 4.0.3) and LG Optimus One (Android 2.2.1).

On the Amaze and Optimus it works reliably.

On the Nexus, more times than not I would get the "Unfortunately, Gallery has stopped" error. When the video recorder opens and just starts to show the preview image it closes returning to my VRtst app. It seems as though it worked slightly more reliably if I held the tablet in portrait mode than if I was holding the tablet in landscape mode. I was able to record a video and have it return with success, but it failed probably 70% of the time.

I see this "Gallery" instability is a widely reported problem, for example: http://www.androidorigin.com/nexus-4-nexus-7-android-4-3-updates-more-bugs-reported/

I am trying to understand the technical reasons why the audio library needs an update to work with Android 4.3 and why the Gallery would be involved in recording a video?

I am guessing here – the web article I listed above said the native camera API Implementation changed in 4.3. That may account for the Audio library change. I guess the Gallery comes into play when the native video recorder saves the video in a temporary location.

Hopefully Google will fix the Gallery instability, but as the last sentence of the article states:"... will be released anytime soon to resolve these bugs, but considering Google’s history with the Galaxy Nexus, we don’t have our hopes high."

Barry.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
VideoRecordApp works by sending an intent with the MediaStore.ACTION_VIDEO_CAPTURE action. The intent includes several extra parameters. Previous versions didn't respect the "output" parameter which specifies where the file should be saved to. So it was left empty. Starting from Android 4.3 (at least on the Nexus devices...) it doesn't work without the output parameter and it behaves slightly differently.

http://code.google.com/p/android/issues/detail?id=57996

Can you post the error message from the unfiltered logs when it doesn't work?
 
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
Here is the un-filtered log showing a failed execution where the "Unfortunately, Gallery has stopped" error dialog pops open. I tried to upload an MP4 in a zip file, but at 877 kB it says it's too large.

I press the "Video Record" button, the video recorder opens showing a preview screen and almost immediately closes going back to my app. The "Unfortunately…" Error dialog pops up.

B4X:
Installing file.
GC_CONCURRENT freed 443K, 8% free 7636K/8280K, paused 3ms+2ms, total 36ms
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
GC_FOR_ALLOC freed 397K, 8% free 7621K/8280K, paused 32ms, total 32ms
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
3. **> Vid Rec Comp, Success = false,
** Activity (main) Resume **
** Service (contentsrv) Destroy **
Service Destroy

Barry.
 
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
Sorry, I may have inadvertently checked the filter box.

When trying to respond I get the Forum error "Message is too long to be processed".

I attached a text file with the response.

Barry.
 

Attachments

  • ScrnCap.jpg
    ScrnCap.jpg
    150.1 KB · Views: 308
  • reply.txt
    235.7 KB · Views: 293
Upvote 0

rgately

Member
Licensed User
Longtime User
There isn't any known issue with IME and older target values. It is most probably a bug in the new OS.

Erel,

Have you learned anything new about how Android 4.3 is affecting the IME? and do you have a recommendation for how to fix it or work around it? I'm at the point where I need to deal with it.

Again, the problem is that certain portions of the screen are not properly redrawn when the keyboard is closed.

If I cannot fix it in code (somehow?), I think my next best option is to specify Android: SdkTargetVersion = 14 in the Manifest, but I do not like the look of the sliders, checkboxes, and of course the menu is different.

Thanks for any illuminations on the subject,
Bob
 
Upvote 0

rgately

Member
Licensed User
Longtime User
Putting this line into the Manifest,
SetApplicationAttribute(android:hardwareAccelerated, "true") makes the problem go away. But it creates problems of its own. Adding this line is probably the same thing as making the setting change in Developer Options (Force GPU rendering).
 
Last edited:
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I am still getting some weird issues with the 4.3 update on my Nexus 7. Earlier in this thread I reported that an app I have that uses the VideoRecordApp sometimes succeeds and sometimes fails. Sometimes it will fail 7 out of 10 tries, but other times it will succeed 50 tries in a row. When my Nexus 7 tablet ran 4.2.2 it never failed. Other devices running Android 2.2 to 4.0.2 never fail.

I have attached a test app that demonstrates the problem.

Using B4A I tried capturing the unfiltered logs, but on the 4.3 device it doesn't matter whether the "Filter" checkbox is checked or unchecked the log output is the same - appearing to be the filtered logs. On other devices the filter checkbox works as expected – I never tried to produce unfiltered logs when the Nexus 7 ran 4.2.2.

To produce logs I ran DDMS via USB debugging. I have listed the debug logs obtained for a successful attempt and unsuccessful attempt below.

Typically for an unsuccessful attempt: I press the "Record Video" button of my test app, the video recorder opens and begins to show the preview screen, then immediately closes returning to my test app displaying the error "Unfortunately, the gallery has stopped".

Comparing the two log printouts the error seems to occur when the video recorder tries to start preview.

I am using the 1.52 Audio library. version 1.72 of B4A.

This test app works 100% reliably on devices with Android versions ranging from 2.2 to 4.0.2 and was also 100% reliable when my Nexus 7 ran 4.2.2. It only became unreliable after the Android 4.3 OTA upgrade on my Nexus 7.

Any ideas how to solve this problem? Since 4.3 users are rare, its not a problem now, but on-going I think it may become an issue.

Nexus 7 4.3 success = true
B4X:
08-13 15:15:07.869: I/B4A(9437): 4. **> btnVR_Click()
08-13 15:15:07.879: I/B4A(9437): 5. **> VideoRec.Record()
08-13 15:15:07.879: I/ActivityManager(428): START u0 {act=android.media.action.VIDEO_CAPTURE cmp=com.google.android.gallery3d/com.android.camera.VideoCamera (has extras)} from pid 9437
08-13 15:15:07.959: D/dalvikvm(428): GC_FOR_ALLOC freed 754K, 26% free 19886K/26568K, paused 73ms, total 74ms
08-13 15:15:07.979: I/B4A(9437): ~i:** Service (contentsrv) Create **
08-13 15:15:07.979: I/B4A(9437): Service Create
08-13 15:15:07.979: I/B4A(9437): ~i:** Service (contentsrv) Start **
08-13 15:15:07.979: I/B4A(9437): Service Start
08-13 15:15:07.979: I/B4A(9437): ~i:** Activity (main) Pause, UserClosed = false **
08-13 15:15:08.079: I/AwesomePlayer(124): setDataSource_l(URL suppressed)
08-13 15:15:08.089: I/AwesomePlayer(124): setDataSource_l(URL suppressed)
08-13 15:15:08.109: I/CameraClient(124): Opening camera 0
08-13 15:15:08.109: I/NvOmxCamera(124): HAL_camera_device_open: open camera 0
08-13 15:15:08.119: E/(124): ioctl SetWhiteBalance failed: -1
08-13 15:15:08.119: E/NvOmxCameraSettingsParser(124): Param type 70 not supported
08-13 15:15:08.119: I/NvOmxCamera(124): HAL_camera_device_open: opened camera 0 (0x4001e6d0)
08-13 15:15:08.129: I/CAM_ScreenNail(23249): aspect ratio clamping disabled
08-13 15:15:08.129: I/CAM_ScreenNail(23249): aspect ratio clamping enabled, surfaceTexture scale: 1.0, 1.0
08-13 15:15:08.279: D/dalvikvm(23249): GC_FOR_ALLOC freed 2363K, 20% free 15518K/19376K, paused 32ms, total 32ms
08-13 15:15:08.369: D/CameraStorage(23249): External storage state=mounted
08-13 15:15:08.459: I/CAM_ScreenNail(23249): preview layout size: 736/1216
08-13 15:15:08.459: I/CAM_ScreenNail(23249): aspect ratio clamping enabled, surfaceTexture scale: 0.80701756, 1.0
08-13 15:15:08.489: I/GLRootView(23249): onSurfaceChanged: 1216x736, gl10: com.google.android.gles_jni.GLImpl@41f74af8
08-13 15:15:08.489: I/GLRootView(23249): layout content pane 1216x736 (compensation 0)
08-13 15:15:08.489: D/PhotoView(23249): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 0, 0), mCameraRect = Rect(0, 0 - 0, 0)
08-13 15:15:08.519: I/ActivityManager(428): Displayed com.google.android.gallery3d/com.android.camera.VideoCamera: +532ms
08-13 15:15:08.539: D/dalvikvm(23249): GC_FOR_ALLOC freed 885K, 16% free 16343K/19376K, paused 26ms, total 26ms
08-13 15:15:08.589: D/dalvikvm(23249): GC_FOR_ALLOC freed 4K, 13% free 16960K/19376K, paused 39ms, total 39ms
08-13 15:15:08.649: D/dalvikvm(23249): GC_FOR_ALLOC freed 676K, 16% free 16872K/19868K, paused 46ms, total 46ms
08-13 15:15:08.709: D/dalvikvm(23249): GC_FOR_ALLOC freed <1K, 12% free 17493K/19868K, paused 48ms, total 48ms
08-13 15:15:08.789: D/dalvikvm(23249): GC_FOR_ALLOC freed 676K, 15% free 17404K/20360K, paused 49ms, total 49ms
08-13 15:15:08.849: D/dalvikvm(23249): GC_FOR_ALLOC freed <1K, 12% free 18025K/20360K, paused 48ms, total 49ms
08-13 15:15:09.089: D/(124): Camera fd open as: 132
08-13 15:15:09.569: E/NvOmxCamera(124): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0.
08-13 15:15:09.569: E/NvOmxCamera(124): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): getCameraStereoMode failed with 0x00000000
08-13 15:15:11.479: D/CameraStorage(23249): External storage state=mounted
08-13 15:15:11.489: W/StagefrightRecorder(124): Max file duration is not positive: 0 us. Disabling duration limit.
08-13 15:15:11.489: W/StagefrightRecorder(124): Target duration (0 us) too short to be respected
08-13 15:15:11.489: I/LocalDevicePlayback(3427): pause: transient=false, currentPos=-1
08-13 15:15:11.569: D/NvOsDebugPrintf(124): NvMMLiteOpen : Block : BlockType = 4
08-13 15:15:11.569: D/NvOsDebugPrintf(124): NvRmPowerModuleClockControl on MOD[29] INST[0]
08-13 15:15:11.569: D/NvOsDebugPrintf(124): NvRmModuleResetWithHold deassert MOD[29] INST[0]
08-13 15:15:11.569: D/NvOsDebugPrintf(124): NvMMLiteBlockCreate : Block : BlockType = 4
08-13 15:15:11.579: W/MPEG4Writer(124): 32-bit file size limit (13108547456 bytes) too big. It is changed to 2147483647 bytes
08-13 15:15:11.579: I/MPEG4Writer(124): limits: 2147483647/0 bytes/us, bit rate: 4096000 bps and the estimated moov size 405000 bytes
08-13 15:15:11.579: I/MPEG4Writer(124): Start time offset: 1000000 us
08-13 15:15:11.579: D/NvOsDebugPrintf(124): +NvxVideoEncoderSetNvMMAttributes
08-13 15:15:11.579: D/NvOsDebugPrintf(124): -NvxVideoEncoderSetNvMMAttributes
08-13 15:15:11.579: W/CameraSource(124): Failed to set video buffer count to 4 due to -38
08-13 15:15:11.589: I/MPEG4Writer(124): Start time offset: 1000000 us
08-13 15:15:12.749: I/MPEG4Writer(124): setStartTimestampUs: 6119
08-13 15:15:12.749: I/MPEG4Writer(124): Earliest track starting time: 6119
08-13 15:15:12.809: I/MPEG4Writer(124): setStartTimestampUs: 29559
08-13 15:15:15.949: D/MPEG4Writer(124): Stopping Video track
08-13 15:15:15.969: I/MPEG4Writer(124): Received total/0-length (99/0) buffers and encoded 98 frames. - video
08-13 15:15:15.969: D/MPEG4Writer(124): Stopping Video track source
08-13 15:15:16.159: D/NvOsDebugPrintf(124): NvRmPowerModuleClockControl off MOD[29] INST[0]
08-13 15:15:16.159: D/CameraSource(124): reset: E
08-13 15:15:16.209: D/CameraSource(124): reset: X
08-13 15:15:16.209: D/MPEG4Writer(124): Video track stopped
08-13 15:15:16.209: D/MPEG4Writer(124): Stopping Audio track
08-13 15:15:16.299: I/MPEG4Writer(124): Received total/0-length (154/0) buffers and encoded 153 frames. - audio
08-13 15:15:16.299: I/MPEG4Writer(124): Audio track drift time: 0 us
08-13 15:15:16.299: D/MPEG4Writer(124): Stopping Audio track source
08-13 15:15:16.329: D/MPEG4Writer(124): Audio track stopped
08-13 15:15:16.329: D/MPEG4Writer(124): Duration from tracks range is [3266039, 3552660] us
08-13 15:15:16.329: D/MPEG4Writer(124): Stopping writer thread
08-13 15:15:16.329: D/MPEG4Writer(124): 0 chunks are written in the last batch
08-13 15:15:16.329: D/MPEG4Writer(124): Writer thread stopped
08-13 15:15:16.329: D/MPEG4Writer(124): Stopping Video track
08-13 15:15:16.329: D/MPEG4Writer(124): Stopping Audio track
08-13 15:15:16.339: D/OrientationManager(23249): unlock orientation
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvxLiteH264DecoderInit : Opening TVMR H264 block
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvMMLiteOpen : Block : BlockType = 261
08-13 15:15:16.379: D/NvOsDebugPrintf(124): ++++++ NvAvpOpen +++++++
08-13 15:15:16.379: D/NvOsDebugPrintf(124): ++++++++++++ TVMRFrameDelivery +++++++++++++++
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvMMLiteBlockCreate : Block : BlockType = 261
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvMMDecTVMRDestroyParser Begin
08-13 15:15:16.379: D/NvOsDebugPrintf(124): --------- Closing TVMR Frame Delivery Thread -------------
08-13 15:15:16.379: D/NvOsDebugPrintf(124): ------- NvAvpClose -------
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvMMDecTVMRDestroyParser Done
08-13 15:15:16.379: D/NvOsDebugPrintf(124): NvMMLiteTVMRDecPrivateClose Done
08-13 15:15:16.389: I/OMXCodec(124): [OMX.google.h264.decoder] AVC profile = 66 (Baseline), level = 41
08-13 15:15:16.389: I/OMXCodec(124): [OMX.google.h264.decoder] video dimensions are 320 x 240
08-13 15:15:16.389: I/OMXCodec(124): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)
08-13 15:15:16.419: I/OMXCodec(124): [OMX.google.h264.decoder] video dimensions are 640 x 480
08-13 15:15:16.419: I/OMXCodec(124): [OMX.google.h264.decoder] Crop rect is 640 x 480 @ (0, 0)
08-13 15:15:16.489: D/dalvikvm(23249): GC_FOR_ALLOC freed 1007K, 13% free 18721K/21456K, paused 23ms, total 23ms
08-13 15:15:17.809: D/transwclock(3817): -----------------------------------------------------------------
08-13 15:15:17.809: D/transwclock(3817): ClockService.onReceive, android.intent.action.BATTERY_CHANGED
08-13 15:15:17.819: D/transwclock(3817): PowerManager.screenOn = true
08-13 15:15:17.819: D/transwclock(3817): isScreenOn returning true
08-13 15:15:17.819: D/transwclock(3817): ClockService.onReceive, updating widget
08-13 15:15:17.819: D/transwclock(3817): Updater.update, called from ClockService.onReceive
08-13 15:15:17.849: D/dalvikvm(3817): GC_EXPLICIT freed 62K, 8% free 7598K/8208K, paused 1ms+3ms, total 25ms
08-13 15:15:17.849: D/transwclock(3817): Updating widget
08-13 15:15:17.899: D/dalvikvm(23607): GC_FOR_ALLOC freed 1077K, 23% free 12085K/15516K, paused 20ms, total 20ms
08-13 15:15:17.899: D/dalvikvm(3817): GC_EXPLICIT freed 197K, 8% free 7602K/8208K, paused 1ms+3ms, total 24ms
08-13 15:15:18.039: D/dalvikvm(428): GC_FOR_ALLOC freed 847K, 26% free 19832K/26568K, paused 69ms, total 69ms
08-13 15:15:18.119: D/dalvikvm(428): GC_FOR_ALLOC freed 509K, 26% free 19813K/26568K, paused 68ms, total 68ms
08-13 15:15:18.169: D/CAM_VideoModule(23249): Effects are already closed. Nothing to do
08-13 15:15:18.259: D/(124): Camera fd close (MI1040)
08-13 15:15:18.299: E/NvOmxCamera(124): Already called release()
08-13 15:15:18.299: I/CameraClient(124): Destroying camera 0
08-13 15:15:18.299: W/NvOmxCamera(124): Already called release()
08-13 15:15:18.299: W/AudioFlinger(124): session id 1733 not found for pid 124
08-13 15:15:18.299: W/AudioFlinger(124): session id 1734 not found for pid 124
08-13 15:15:18.299: W/AudioFlinger(124): session id 1734 not found for pid 124
08-13 15:15:18.379: I/B4A(9437): sending message to waiting queue (OnActivityResult)
08-13 15:15:18.409: I/B4A(9437): running waiting messages (1)
08-13 15:15:18.409: I/B4A(9437): ~i:** Activity (main) Resume **
08-13 15:15:18.439: D/MediaScannerReceiver(7915): action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /storage/emulated/0/Android/data/b4a.example.vrtst/files/1376421307886.mp4
08-13 15:15:18.459: I/B4A(9437): 6. **> Vid Rec Comp, Success = true, file:///storage/emulated/0/Android/data/b4a.example.vrtst/files/1376421307886.mp4
08-13 15:15:18.459: I/B4A(9437): ~i:** Service (contentsrv) Destroy **
08-13 15:15:18.459: I/B4A(9437): Service Destroy

Nexus 7 4.3 success = false
B4X:
08-13 15:25:04.489: I/B4A(9437): 148. **> btnVR_Click()
08-13 15:25:04.489: I/B4A(9437): 149. **> VideoRec.Record()
08-13 15:25:04.489: I/ActivityManager(428): START u0 {act=android.media.action.VIDEO_CAPTURE cmp=com.google.android.gallery3d/com.android.camera.VideoCamera (has extras)} from pid 9437
08-13 15:25:04.569: D/dalvikvm(428): GC_FOR_ALLOC freed 306K, 25% free 20154K/26568K, paused 69ms, total 70ms
08-13 15:25:04.639: D/dalvikvm(428): GC_FOR_ALLOC freed 499K, 26% free 19900K/26568K, paused 65ms, total 65ms
08-13 15:25:04.649: I/B4A(9437): ~i:** Service (contentsrv) Create **
08-13 15:25:04.649: I/B4A(9437): Service Create
08-13 15:25:04.649: I/B4A(9437): ~i:** Service (contentsrv) Start **
08-13 15:25:04.649: I/B4A(9437): Service Start
08-13 15:25:04.669: I/B4A(9437): ~i:** Activity (main) Pause, UserClosed = false **
08-13 15:25:04.749: D/dalvikvm(530): GC_CONCURRENT freed 602K, 12% free 9583K/10820K, paused 3ms+19ms, total 78ms
08-13 15:25:04.809: I/AwesomePlayer(124): setDataSource_l(URL suppressed)
08-13 15:25:04.829: I/AwesomePlayer(124): setDataSource_l(URL suppressed)
08-13 15:25:04.839: I/CameraClient(124): Opening camera 0
08-13 15:25:04.839: I/NvOmxCamera(124): HAL_camera_device_open: open camera 0
08-13 15:25:04.869: E/(124): ioctl SetWhiteBalance failed: -1
08-13 15:25:04.869: E/NvOmxCameraSettingsParser(124): Param type 70 not supported
08-13 15:25:04.869: I/NvOmxCamera(124): HAL_camera_device_open: opened camera 0 (0x40f2f8a0)
08-13 15:25:04.889: I/CAM_ScreenNail(23249): aspect ratio clamping disabled
08-13 15:25:04.889: I/CAM_ScreenNail(23249): aspect ratio clamping enabled, surfaceTexture scale: 1.0, 1.0
08-13 15:25:05.089: D/CameraStorage(23249): External storage state=mounted
08-13 15:25:05.169: I/CAM_ScreenNail(23249): preview layout size: 736/1216
08-13 15:25:05.169: I/CAM_ScreenNail(23249): aspect ratio clamping enabled, surfaceTexture scale: 0.80701756, 1.0
08-13 15:25:05.199: I/GLRootView(23249): onSurfaceChanged: 1216x736, gl10: com.google.android.gles_jni.GLImpl@49690808
08-13 15:25:05.209: I/GLRootView(23249): layout content pane 1216x736 (compensation 0)
08-13 15:25:05.219: D/PhotoView(23249): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 0, 0), mCameraRect = Rect(0, 0 - 0, 0)
08-13 15:25:05.259: I/ActivityManager(428): Displayed com.google.android.gallery3d/com.android.camera.VideoCamera: +592ms
08-13 15:25:05.619: D/dalvikvm(23249): GC_FOR_ALLOC freed 5044K, 4% free 132236K/137444K, paused 274ms, total 277ms
08-13 15:25:05.789: D/CAM_VideoModule(23249): Effects are already closed. Nothing to do
08-13 15:25:05.889: D/(124): Camera fd open as: 132
08-13 15:25:06.379: E/NvOmxCamera(124): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0.
08-13 15:25:06.379: E/NvOmxCamera(124): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): getCameraStereoMode failed with 0x00000000
08-13 15:25:06.519: D/(124): Camera fd close (MI1040)
08-13 15:25:06.559: E/NvOmxCamera(124): Already called release()
08-13 15:25:06.559: I/CameraClient(124): Destroying camera 0
08-13 15:25:06.559: W/NvOmxCamera(124): Already called release()
08-13 15:25:06.559: W/dalvikvm(23249): threadid=25: thread exiting with uncaught exception (group=0x417da700)
08-13 15:25:06.559: W/AudioFlinger(124): session id 1946 not found for pid 124
08-13 15:25:06.559: W/AudioFlinger(124): session id 1947 not found for pid 124
08-13 15:25:06.629: E/AndroidRuntime(23249): FATAL EXCEPTION: Thread-2184
08-13 15:25:06.629: E/AndroidRuntime(23249): java.lang.RuntimeException: startPreview failed
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoModule.startPreview(VideoModule.java:867)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoModule.access$800(VideoModule.java:73)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoModule$4.run(VideoModule.java:411)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at java.lang.Thread.run(Thread.java:841)
08-13 15:25:06.629: E/AndroidRuntime(23249): Caused by: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
08-13 15:25:06.629: E/AndroidRuntime(23249):    at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:5908)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:869)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at android.view.ViewGroup.invalidateChild(ViewGroup.java:4250)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at android.view.View.invalidate(View.java:10539)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at android.view.View.setEnabled(View.java:5865)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoUI.enableShutter(VideoUI.java:341)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoModule.onPreviewStarted(VideoModule.java:884)
08-13 15:25:06.629: E/AndroidRuntime(23249):    at com.android.camera.VideoModule.startPreview(VideoModule.java:858)
08-13 15:25:06.629: E/AndroidRuntime(23249):    ... 3 more
08-13 15:25:06.629: W/ActivityManager(428):  Force finishing activity com.google.android.gallery3d/com.android.camera.VideoCamera
08-13 15:25:06.719: D/dalvikvm(428): GC_FOR_ALLOC freed 300K, 25% free 20191K/26568K, paused 74ms, total 74ms
08-13 15:25:06.719: I/WindowManager(428): Screenshot Window{42790d88 u0 com.google.android.gallery3d/com.android.camera.VideoCamera} was all black! mSurfaceLayer=21040 minLayer=21040 maxLayer=21040
08-13 15:25:06.789: D/dalvikvm(428): GC_FOR_ALLOC freed 522K, 26% free 19916K/26568K, paused 67ms, total 67ms
08-13 15:25:06.839: D/CAM_VideoModule(23249): already stopped.
08-13 15:25:06.929: I/B4A(9437): sending message to waiting queue (OnActivityResult)
08-13 15:25:06.959: I/B4A(9437): running waiting messages (1)
08-13 15:25:06.959: I/B4A(9437): 150. **> Vid Rec Comp, Success = false,
08-13 15:25:06.969: I/B4A(9437): ~i:** Activity (main) Resume **
08-13 15:25:06.979: I/B4A(9437): ~i:** Service (contentsrv) Destroy **
08-13 15:25:06.979: I/B4A(9437): Service Destroy

Barry.
 

Attachments

  • vrtst.zip
    6.9 KB · Views: 152
Upvote 0
Top