Closed Bug 1118173 Opened 10 years ago Closed 10 years ago

[FFOS7715 v2.1][camera]After monkey test,camera can't open preview.

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jinchao.wang, Assigned: jinchao.wang)

References

Details

(Whiteboard: [sprd 390190])

Description:After monkey test,camera can't open preview.And I kill camera from "recent app windows", and camera can't recover. Reboot the phone, camera recover. Device: SPRD 7715ga Steps to Reproduce: 1) after monkey test Actual Result:Camera can open but don't display preview. Expected Result:Camera can open and display preview. Repro frequency:1/10
***********I found all views loaded by controller.lazy are not displayed.************** ./app.js: loadLazyControllers loadLazyModules onCriticalPathDone this.once('viewfinder:visible', this.onCriticalPathDone); ./controllers/viewfinder.js: this.views.viewfinder.on('fadedin', this.app.firer('viewfinder:visible')); ViewfinderController.prototype.show this.camera.on('preview:started', this.show); ./lib/camera/camera.js: Camera.prototype.onPreviewStateChange = function(state) { this.emit('preview:' + state); }; this.mozCamera.onPreviewStateChange = this.onPreviewStateChange; *********So function of onPreviewStateChange didn't be called anymore ********* I set eight breakpoints in gecko on preallocated process,and then click camera icon on Homescreen to open camera >>>> b mozilla::nsDOMCameraControl::OnPreviewStateChange b mozilla::DOMCameraControlListener::OnPreviewStateChange(mozilla::CameraControlListener::PreviewState) b mozilla::CameraControlImpl::OnPreviewStateChange b mozilla::nsGonkCameraControl::StartPreviewImpl b mozilla::CameraControlImpl::Start(mozilla::ICameraControl::Configuration const*) b mozilla::nsDOMCameraControl::nsDOMCameraControl b nsDOMCameraManager::PermissionAllowed b nsDOMCameraManager::GetCamera What happened as below >>>>> (gdb) c Continuing. Breakpoint 8, nsDOMCameraManager::GetCamera (this=0xb33d6440, aCamera=..., aInitialConfig=..., aOnSuccess=..., aOnError=..., aRv=...) at ../../../gecko/dom/camera/DOMCameraManager.cpp:268 268 { (gdb) bt #0 nsDOMCameraManager::GetCamera (this=0xb33d6440, aCamera=..., aInitialConfig=..., aOnSuccess=..., aOnError=..., aRv=...) at ../../../gecko/dom/camera/DOMCameraManager.cpp:268 #1 0xb6ef4dec in malloc_mutex_unlock (mutex=0x0) at ../../../gecko/memory/mozjemalloc/jemalloc.c:1636 #2 arena_malloc_small (zero=192, size=3196778356, arena=0xb3f73cb0) at ../../../gecko/memory/mozjemalloc/jemalloc.c:4058 #3 arena_malloc (arena=0xb3f73cb0, size=<optimized out>, zero=<optimized out>) at ../../../gecko/memory/mozjemalloc/jemalloc.c:4118 #4 0xb34e3c40 in ?? () #5 0xb34e3c40 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) c Continuing. [New Thread 4088.4098] Breakpoint 6, mozilla::nsDOMCameraControl::nsDOMCameraControl (this=0xb34c34a0, aCameraId=1, aInitialConfig=..., aOnSuccess=0x0, aOnError=0xb6b82000, aWindow=0xf8) at ../../../gecko/dom/camera/DOMCameraControl.cpp:140 140 nsDOMCameraControl::nsDOMCameraControl(uint32_t aCameraId, (gdb) bt #0 mozilla::nsDOMCameraControl::nsDOMCameraControl (this=0xb34c34a0, aCameraId=1, aInitialConfig=..., aOnSuccess=0x0, aOnError=0xb6b82000, aWindow=0xf8) at ../../../gecko/dom/camera/DOMCameraControl.cpp:140 #1 0xb571c620 in Revoke (this=0xb2e0c508) at ../../dist/include/nsThreadUtils.h:296 #2 ~nsRunnableMethodReceiver (this=0xb2e0c508, __in_chrg=<optimized out>) at ../../dist/include/nsThreadUtils.h:295 #3 nsRunnableMethodImpl<void (mozilla::CameraPreviewMediaStream::*)(), void, true>::~nsRunnableMethodImpl ( this=0xb2e0c500, __in_chrg=<optimized out>) at ../../dist/include/nsThreadUtils.h:371 #4 0x000000f8 in ?? () #5 0x000000f8 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) c Continuing. [New Thread 4088.4196] [Switching to Thread 4088.4196] Breakpoint 3, mozilla::CameraControlImpl::OnPreviewStateChange (this=0xb3770b40, aNewState=mozilla::CameraControlListener::kPreviewStopped) at ../../../gecko/dom/camera/CameraControlImpl.cpp:217 217 { (gdb) bt #0 mozilla::CameraControlImpl::OnPreviewStateChange (this=0xb3770b40, aNewState=mozilla::CameraControlListener::kPreviewStopped) at ../../../gecko/dom/camera/CameraControlImpl.cpp:217 \#1 0xb571b898 in get (this=0x7f6e8b04) at ../../dist/include/nsAutoPtr.h:1017 #2 operator mozilla::CameraControlListener* (this=0x7f6e8b04) at ../../dist/include/nsAutoPtr.h:1030 #3 mozilla::CameraControlImpl::OnRateLimitPreview (this=0xb3fc6360, aLimit=<optimized out>) at ../../../gecko/dom/camera/CameraControlImpl.cpp:255 #4 0xb337b740 in ?? () #5 0xb337b740 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) c Continuing. Breakpoint 3, mozilla::CameraControlImpl::OnPreviewStateChange (this=0xb3770b40, aNewState=(unknown: 4)) at ../../../gecko/dom/camera/CameraControlImpl.cpp:217 217 { (gdb) bt #0 mozilla::CameraControlImpl::OnPreviewStateChange (this=0xb3770b40, aNewState=(unknown: 4)) at ../../../gecko/dom/camera/CameraControlImpl.cpp:217 #1 0xb571b898 in get (this=0x8001e304) at ../../dist/include/nsAutoPtr.h:1017 #2 operator mozilla::CameraControlListener* (this=0x8001e304) at ../../dist/include/nsAutoPtr.h:1030 #3 mozilla::CameraControlImpl::OnRateLimitPreview (this=0xb3fc6360, aLimit=<optimized out>) at ../../../gecko/dom/camera/CameraControlImpl.cpp:255 #4 0xb337b740 in ?? () #5 0xb337b740 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) No other Breakpoint happend when camera open. The occurrence of the breakpoints is not the same with normal startup process.
Whiteboard: sprd390190
Blocks: 1123554
Flags: needinfo?(behsieh)
hi jinchao: can you please attached full log ? when issue happend did you check in driver side , is any preview callback send from driver? thanks
Flags: needinfo?(behsieh) → needinfo?(jinchao.wang)
Assignee: nobody → behsieh
Hi becker hsieh: The scene has been destroyed. I didn't check in driver side. I only did some adb test in gecko, found that some error in gecko. The log package when problem occur can't be extracted. I can't provide you with full log. As our test group can't reproduce this issue, this is a low priority bug. You can solve other problem. If our QA can't reproduce this issue, I will close this bug myself. If reproduce,I will provide you with full log.
Severity: major → normal
Flags: needinfo?(jinchao.wang)
Whiteboard: sprd390190 → [sprd 390190]
hi jinchao: thanks for the info.
not reproduce
Assignee: behsieh → jinchao.wang
not reproduce
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.