[Captivate Android Development] moikop:
Not Rendering Panorama (Camera2)

In camera app, when you want to take a panorama picture, the image is not rendered (just shows a black screen with the shutter). However, you can in fact take the picture (the screen remains black, but the picture is saved correctly).

I'm using 20131213 CM11 Nightly, with Dalvik runtime.

Here's the most important bit of logcat:

V/CAM_PhotoModule( 9759): On pause.
V/CAM_PhotoModule( 9759): stopPreview
I/CameraHardwareSec( 144): int android::CameraHardwareSec::previewThreadWrapper(): calling mSecCamera->stopPreview() and waiting
V/CAM_PhotoModule( 9759): Close camera device.
I/CameraHardwareSec( 144): void android::CameraHardwareSec::stopPreviewInternal() : preview not running, doing nothing
W/CAM_UI ( 9759): SurfaceTexture destroyed
D/Sensors ( 507): Smb380Sensor::~setDelay(0, 200000000)
D/CAM_WidePanoModule( 9759): camera preview h = 480 , w = 640
D/CAM_WidePanoModule( 9759): preview fps: 15000, 30000
D/AwesomePlayer( 144): Before reset_l
D/AwesomePlayer( 144): printFileName fd(64) -> /system/media/audio/ui/VideoRecord.ogg
V/MosaicFrameProcessor( 9759): setupMosaicer w, h=640,480,460832
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c167d8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c169e8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c16b28 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c16c50 successful
D/CameraStorage( 9759): External storage state=mounted
D/Sensors ( 507): Smb380Sensor::~setDelay(0, 200000000)
D/CAM_WidePanoModule( 9759): layout change: 480/400
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f840 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f788 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f6b8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40ffc2b0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c180e0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c16a18 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c168d8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c16cc0 successful
D/AwesomePlayer( 144): Before reset_l
D/AwesomePlayer( 144): printFileName fd(64) -> /system/media/audio/ui/VideoRecord.ogg
V/CAM_SurfaceTextureRenderer( 9759): EGL version: 1.0
I/Renderer( 9759): Program Linked (210003)!
I/Renderer( 9759): Program Linked (420006)!
I/Renderer( 9759): Program Linked (630009)!
I/Renderer( 9759): Program Linked (840012)!
I/Renderer( 9759): Program Linked (1050015)!
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c84558 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c84768 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c848a8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c849d0 successful
I/Renderer( 9759): Program Linked (1260018)!
I/Renderer( 9759): Program Linked (1470021)!
[B]E/MosaicRenderer( 9759): Error after bind/teximage(). glError: NOT_LISTED_YET (0x501) in line 42 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp
E/MosaicRenderer( 9759): Error after bind/teximage(). glError: NOT_LISTED_YET (0x501) in line 42 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp[/B]
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c843d0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c84318 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c84248 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c84090 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c83a80 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008e7d0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40094348 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40094270 successful
D/AwesomePlayer( 144): Before reset_l
D/AwesomePlayer( 144): printFileName fd(64) -> /system/media/audio/ui/camera_focus.ogg
[B]E/MosaicRenderer( 9759): Error after glUseProgram(). glError: NOT_LISTED (0x506) in line 158 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/Renderer.cpp[/B]
S/MOSAIC ( 9759): Initialize 160 120
S/MOSAIC ( 9759): Frame width 160,120
S/MOSAIC ( 9759): Max num frames 200
S/FEATURE_MOS_JNI( 9759): Init[0]: 1.97778 ms [100 frames]
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f300 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f510 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f650 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f778 successful
S/MOSAIC ( 9759): Initialize 160 120
S/MOSAIC ( 9759): Frame width 160,120
S/MOSAIC ( 9759): Max num frames 200
S/FEATURE_MOS_JNI( 9759): Init[0]: 3.4458 ms [100 frames]
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f1b8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f100 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f030 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009eee0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40093718 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x400935f0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x400934e8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40093410 successful
D/AwesomePlayer( 144): Before reset_l
D/AwesomePlayer( 144): printFileName fd(56) -> /system/media/audio/ui/camera_click.ogg
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008f8f0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008fb00 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008fc40 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008fd68 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008f7a8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008f6f0 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008f620 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4008f548 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x4009f250 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40c82758 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40041cd8 successful
I/OMXNodeInstance( 144): OMX_FreeBuffer for buffer header 0x40ffb008 successful
D/CameraHardwareSec( 144): mPreviewHeap(fd(51), size(460800), width(640), height(480))
I/CameraHardwareSec( 144): int android::CameraHardwareSec::previewThreadWrapper(): return from wait
I/CameraHardwareSec( 144): int android::CameraHardwareSec::previewThreadWrapper(): calling mSecCamera->stopPreview() and waiting
I/Exchange( 1681): Ping task ending with status: 2
I/Exchange( 1681): Ping task starting for 2
I/Exchange( 1681): onPerformSync: Bundle[{__mailboxCount__=1, sync_priority=0, __mailboxId0__=22}]
D/CameraHardwareSec( 144): mPreviewHeap(fd(51), size(460800), width(640), height(480))
I/CameraHardwareSec( 144): int android::CameraHardwareSec::previewThreadWrapper(): return from wait
[B]E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp[/B]
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
E/MosaicRenderer( 9759): Error after glDrawElements(). glError: NOT_LISTED (0x506) in line 150 of packages/apps/Camera2/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp
....