Closed Bug 986941 Opened 10 years ago Closed 10 years ago

[Camera] Hamachi camera crashes on launch with 'failed -12 (Out of memory)'

Categories

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

x86
Gonk (Firefox OS)
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: wilsonpage, Unassigned)

References

Details

I found that my Hamachi crashes just after the viewfinder size is updated. Hoping someone can help us pin down the possible things that could cause this to happen.

LOGCAT:

E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [camera] loading stream into element +622ms
E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [camera] stream loaded into video +10ms
E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [camera] resolution w: 2048, h: 1536 +3ms
E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [camera] previewSize w: 384, h: 288 +1ms
E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [view:viewfinder] update preview scaleType: fill +0ms [object Object]
E/GeckoConsole(  748): Content JS LOG at app://camera.gaiamobile.org/js/main.js:110 in debug/<: [view:viewfinder] updated preview size/position +15ms [object Object]
E/memalloc(  144): /dev/pmem: No more pmem available
E/msm7627a.gralloc(  144): gralloc failed err=Out of memory
W/GraphicBufferAllocator(  144): alloc(320, 480, 1, 00000133, ...) failed -12 (Out of memory)
E/memalloc(  144): /dev/pmem: No more pmem available
E/msm7627a.gralloc(  144): gralloc failed err=Out of memory
W/GraphicBufferAllocator(  144): alloc(320, 480, 1, 00000133, ...) failed -12 (Out of memory)
E/mm-camera(  168): config_MSG_ID_START_ACK: ctrl->state=4 
E/mm-camera(  168): config_MSG_ID_START_ACK: new ctrl->state is 5
E/QCameraHWI_Preview(  148): virtual android::status_t android::QCameraStream_preview::start(): X
I/QCameraHWI(  148): startPreview: X
E/QualcommCamera(  148): Qint android::start_preview(camera_device*): X
Blocks: 983405
E/memalloc(  144): /dev/pmem: No more pmem available
E/msm7627a.gralloc(  144): gralloc failed err=Out of memory
W/GraphicBufferAllocator(  144): alloc(320, 480, 1, 00000133, ...) failed -12 (Out of memory)

You're out of pmem, so not enough graphics buffer can be allocated. What size of preview are you selecting?
previewSize width: 384, height: 288

Since flashing latest Gecko I'm not getting crashes. But don't know if this is a sign that we close to a limit...?
Summary: [Camera] Hamachi crashes on launch with 'failed -12 (Out of memory)' → [Camera] Hamachi camera crashes on launch with 'failed -12 (Out of memory)'
(In reply to Wilson Page [:wilsonpage] from comment #2)
>
> previewSize width: 384, height: 288

That shouldn't be happening for such a low res setting. Can you try different nightly builds of Gecko to identify the regression window?
Severity: normal → blocker
I cannot reproduce this on the latest build. Wilson, can you verify?
Flags: needinfo?(wilsonpage)
mikeh or marcia, could you please verify (since it is too late for wilson now) -- this is one of the blockers for moving to master.
Flags: needinfo?(mozillamarcia.knous)
Flags: needinfo?(mhabicher)
Unable to reproduce on hamachi running:
- gecko: b2g-inbound:7d1c71bfc76a
- gaia: camera-new-features:29e180f9dd35c32dab153441b85e834c149be997
        master:3ca14b15e945c8e94a6b80c3aff7ea814438e6bf
Flags: needinfo?(mhabicher)
I cannot reproduce either on Buri using the Gecko Larch build:

Gaia   29e180f9dd35c32dab153441b85e834c149be997 (camera new features)
SourceStamp cd99991b8d46
BuildID 20140321084205
Version 31.0a1
Flags: needinfo?(mozillamarcia.knous)
Reopen if you see issues (closing based on recent testing)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Cool let's keep this closed and keep an eye on it.
Flags: needinfo?(wilsonpage)
You need to log in before you can comment on or make changes to this bug.