Thx for your input. I analyzed further.. and i noticed the following. Looks like an interface pointer is returned NULL. 1672 is the camera process.
root@android:/ # b2g-ps APPLICATION USER PID PPID VSIZE RSS WCHAN PC NAME b2g root 771 770 222980 98212 ffffffff 400b77f0 R /system/b2g/b2g Homescreen app_1474 1474 771 120616 45868 ffffffff 40066340 S /system/b2g/plugin-container Usage app_1649 1649 771 116476 39852 ffffffff 40117340 S /system/b2g/plugin-container Camera app_1672 1672 771 134900 46948 ffffffff 4002e340 S /system/b2g/plugin-container ---------------------------------------------------------------------------------- Log pasted below: WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/xpcom/base/nsTraceRefcntImpl.cpp, line 141 WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/xpcom/base/nsTraceRefcntImpl.cpp, line 141 [Child 1672] WARNING: NS_ENSURE_TRUE(mMainThread) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/xpcom/threads/nsThreadManager.cpp, line 252 [Child 1672] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0xC1F30001: file /home/administrator/firefox_os/B2G/objdir-gecko/xpcom/build/nsThreadUtils.cpp, line 161 [Child 1672] WARNING: NS_ENSURE_TRUE(compMgr) failed: file /home/administrator/firefox_os/B2G/objdir-gecko/xpcom/build/nsComponentManagerUtils.cpp, line 58 [Parent 771] ###!!! ASSERTION: Only for chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBFactory.cpp, line 170 [Parent 771] ###!!! ASSERTION: Null window but not chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/quota/QuotaManager.cpp, line 1077 creating 1! [Child 1672] WARNING: nsWindow::GetNativeData not implemented for this type: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/widget/xpwidgets/PuppetWidget.cpp, line 670 ++DOCSHELL 0x4a8860 == 1 [id = 1] ++DOMWINDOW == 1 (0x518f94) [serial = 1] [outer = 0x0] [TabChild] SHOW (w,h)= (0, 0) ###################################### forms.js loaded ############################### browserElementPanning.js loaded ++DOMWINDOW == 2 (0x56d91c) [serial = 2] [outer = 0x518f94] ######################## BrowserElementChildPreload.js loaded loading app://camera.gaiamobile.org/index.html, 1 [Child 1649] WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/xbl/src/nsXBLDocumentInfo.cpp, line 606 [Child 1649] WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/xbl/src/nsXBLDocumentInfo.cpp, line 676 ++DOCSHELL 0x11025d8 == 2 [id = 2] ++DOMWINDOW == 3 (0x1102c94) [serial = 4] [outer = 0x0] [Child 1649] WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && subjPrincipal) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/docshell/base/nsDocShell.cpp, line 8392 [Child 1649] WARNING: NS_ENSURE_TRUE(ParseTypeAttribute(type, &version)) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsScriptLoader.cpp, line 454 [Child 1649] WARNING: NS_ENSURE_TRUE(ParseTypeAttribute(type, &version)) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsScriptLoader.cpp, line 454 [Child 1649] WARNING: NS_ENSURE_TRUE(ParseTypeAttribute(type, &version)) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsScriptLoader.cpp, line 454 [Child 1649] WARNING: NS_ENSURE_TRUE(ParseTypeAttribute(type, &version)) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsScriptLoader.cpp, line 454 [Parent 771] WARNING: Failed to get caller.: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBRequest.cpp, line 217 [Child 1649] WARNING: Subdocument container has no frame: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/layout/base/nsDocumentViewer.cpp, line 2374 ++DOMWINDOW == 4 (0x1010804) [serial = 5] [outer = 0x1102c94] [Parent 771] WARNING: Failed to get caller.: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBRequest.cpp, line 217 ++DOMWINDOW == 3 (0x622f7c) [serial = 3] [outer = 0x518f94] [Child 1672] WARNING: NS_ENSURE_TRUE(ParseTypeAttribute(type, &version)) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsScriptLoader.cpp, line 454 [Child 1672] WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/xbl/src/nsXBLDocumentInfo.cpp, line 606 [Child 1672] WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/xbl/src/nsXBLDocumentInfo.cpp, line 676 [Child 1672] ###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/nsCOMPtr.h, line 545 [Child 1672] ###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/nsCOMPtr.h, line 545 [Parent 771] WARNING: No docshells for remote frames!: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/content/base/src/nsFrameLoader.cpp, line 577 [Parent 771] WARNING: Failed to get caller.: file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBRequest.cpp, line 217 [Parent 771] ###!!! ASSERTION: Only for chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBFactory.cpp, line 170 [Parent 771] ###!!! ASSERTION: Null window but not chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/quota/QuotaManager.cpp, line 1077 [Child 1672] ###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/nsCOMPtr.h, line 545 ________________________________________ From: Sotaro Ikeda [sik...@mozilla.com] Sent: Friday, August 23, 2013 7:04 PM To: Chanchani, Nimesh Cc: dev-b2g@lists.mozilla.org Subject: Re: [b2g] Camera preview not working > [Parent 267] ###!!! ASSERTION: Only for chrome!: > 'nsContentUtils::IsCallerChrome()' The above seems not related camera preview. It seems a different problem. Actual problematic log seems the following. > 01-02 01:16:43.284 I/Gecko ( 805): dequeueBuffer: MIN_UNDEQUEUED_BUFFERS=2 > exceeded (dequeued=6) > 01-02 01:16:43.284 E/QCameraHWI_Preview( 281): android::status_t > android::QCameraStream_preview::processPreviewFrameWithDisplay(mm_camera_ch_data_buf_t*): > error in dequeue_buffer, enqueue_buffer idx = 4, no free buffer now >01-02 01:16:43.334 I/Gecko ( 805): dequeueBuffer: MIN_UNDEQUEUED_BUFFERS=2 >exceeded (dequeued=5) The following seems to happened. - camra hal dequeued too much buffers from ANativeWindow(GonkNativeWindow). - GonkNativeWindow return error - Camera hal failed to dequeue buffer from ANativeWindow and stop preview. http://mxr.mozilla.org/mozilla-central/source/widget/gonk/nativewindow/GonkNativeWindowICS.cpp#272 Sotaro ----- Original Message ----- From: "nimesh chanchani" <nimesh.chanch...@accenture.com> To: dev-b2g@lists.mozilla.org, dev-...@lists.mozilla.com Sent: Friday, August 23, 2013 8:30:29 AM Subject: [b2g] Camera preview not working I have ported Firefox OS on Snapdragon 8060A board. I'm able to take photos using the camera module, but the preview is not showing up. I got this log, which suggests something should be called from the chrome ( b2g?) process , but is being called from elsewhere.. any sugessions as to whats going wrong and are is there some integration point that i missed out on? look for the Assert: Only for chrome 01-02 01:16:43.064 E/QualcommCamera( 281): Qint android::start_preview(camera_device*): X 01-02 01:16:43.064 E/QCameraHWI( 281): processEvent: type :1 E 01-02 01:16:43.064 I/QCameraHWI( 281): processCtrlEvent: 0, E 01-02 01:16:43.064 I/QCameraHWI( 281): zoomEvent: state:2 E 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): E 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): Fetching crop info 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): Crop info received: 0, 0, 0, 0 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): Done setting crop 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): Currrent zoom :0 01-02 01:16:43.064 I/QCameraHWI( 281): void android::QCameraHardwareInterface::handleZoomEventForPreview(app_notify_cb_t*): X 01-02 01:16:43.064 I/QCameraHWI( 281): zoomEvent: X 01-02 01:16:43.064 I/QCameraHWI( 281): processCtrlEvent: X 01-02 01:16:43.064 E/QCameraHWI( 281): App_cb Notify 0x0, datacb=0x0 01-02 01:16:43.064 I/QCameraHWI( 281): processEvent: X 01-02 01:16:43.064 E/QCameraHWI( 281): processEvent: type :0 E 01-02 01:16:43.064 I/QCameraHWI( 281): processChannelEvent: E 01-02 01:16:43.064 I/QCameraHWI( 281): processPreviewChannelEvent: E 01-02 01:16:43.064 I/QCameraHWI( 281): processPreviewChannelEvent: X 01-02 01:16:43.064 I/QCameraHWI( 281): processChannelEvent: X 01-02 01:16:43.064 E/QCameraHWI( 281): App_cb Notify 0x0, datacb=0x0 01-02 01:16:43.064 I/QCameraHWI( 281): processEvent: X 01-02 01:16:43.154 I/Gecko ( 267): [Parent 267] ###!!! ASSERTION: Only for chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/indexedDB/IDBFactory.cpp, line 170 01-02 01:16:43.154 I/Gecko ( 267): [Parent 267] ###!!! ASSERTION: Null window but not chrome!: 'nsContentUtils::IsCallerChrome()', file /home/nimesh/snapdragon-gnaneshwar/APQ8060A_M8960AAAAANLYA1519249_V_13/gecko/dom/quota/QuotaManager.cpp, line 1077 01-02 01:16:43.284 I/Gecko ( 805): dequeueBuffer: MIN_UNDEQUEUED_BUFFERS=2 exceeded (dequeued=6) 01-02 01:16:43.284 E/QCameraHWI_Preview( 281): android::status_t android::QCameraStream_preview::processPreviewFrameWithDisplay(mm_camera_ch_data_buf_t*): error in dequeue_buffer, enqueue_buffer idx = 4, no free buffer now 01-02 01:16:43.334 I/Gecko ( 805): dequeueBuffer: MIN_UNDEQUEUED_BUFFERS=2 exceeded (dequeued=5) ________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. ______________________________________________________________________________________ www.accenture.com _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g