As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
Last Comment Bug 692961 - Capturing image on camera api crashes [@ mozalloc_abort | __swrite | dexDataMapAlloc]
: Capturing image on camera api crashes [@ mozalloc_abort | __swrite | dexDataM...
Product: Fennec Graveyard
Classification: Graveyard
Component: General (show other bugs)
: Trunk
: ARM Android
: -- critical (vote)
: Firefox 10
Assigned To: [:fabrice] Fabrice Desré
Depends on:
Blocks: 659188
  Show dependency treegraph
Reported: 2011-10-07 15:16 PDT by Tony Chung [:tchung]
Modified: 2011-12-15 03:49 PST (History)
6 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---

logcat of crash (31.50 KB, text/plain)
2011-10-07 15:32 PDT, Tony Chung [:tchung]
no flags Details
fix (862 bytes, patch)
2011-10-10 11:52 PDT, [:fabrice] Fabrice Desré
blassey.bugs: review+
asa: approval‑mozilla‑aurora+
Details | Diff | Splinter Review

Description User image Tony Chung [:tchung] 2011-10-07 15:16:34 PDT
Crashed on Fennec nightly while trying to capture an image using the test URL.

See crash report:

1) install nightly on Android 2.3.3, Samsung Galaxy S 2: Nightly: Mozilla/5.0 (Android; Linux armv7l; rv:10.0a1) Gecko/201101007 Firefox/9.0a1 Fennec/9.0a1
2) visit the test URL for camera API
3)_ click capture, verify crash and crash reporter appears with java errors.  
4) i'll try and reproduce with a logcat now.

- no Crashers

- crash on [@ mozalloc_abort | __swrite] camera capture

Frame 	Module 	Signature [Expand] 	Source
0 	mozalloc_abort 	memory/mozalloc/mozalloc_abort.cpp:66
1 	__swrite 	
2 		@0x3e 	
3 	dexDataMapAlloc 	
4 	Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash 	other-licenses/android/APKOpen.cpp:241
5 	Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash 	other-licenses/android/APKOpen.cpp:241
6 	dvmPlatformInvoke 	
7 	dvmCallJNIMethod_general 	
8 	dvmResolveNativeMethod 	
9 	dvmAsmSisterStart 	
10 	dvmMterpStd 	
11 	dvmInterpret 	
12 	dvmInvokeMethod 	
13 	dvmFreeDexOrJar 	
14 	dvmAsmSisterStart 	
15 	dvmMterpStd 	
16 	dvmInterpret 	
17 	dvmCallMethodV 	
18 	JNI_CreateJavaVM 	
19 	_ZN7android14AndroidRuntime6onExitEi 	
20 	_ZN7android14AndroidRuntime5startEPKcb 	
21 	app_process 	app_process@0xccc 	
22 	app_process 	app_process@0x1027 	
23 	InitPassFilter 	
24 	app_process 	app_process@0xb33 	
25 	app_process 	app_process@0xb33 	
26 	__libc_init 	
27 		@0xffffffe3 	
28 	app_process 	app_process@0x33 	
29 	app_process 	app_process@0xb1f
Comment 1 User image Tony Chung [:tchung] 2011-10-07 15:32:40 PDT
Created attachment 565674 [details]
logcat of crash
Comment 2 User image Josh Matthews [:jdm] 2011-10-08 06:44:14 PDT
Comment on attachment 565674 [details]
logcat of crash

Something wacky is going on in this log where exception stack traces start halfway through and don't show the exception that was thrown.
Comment 3 User image [:fabrice] Fabrice Desré 2011-10-10 11:52:10 PDT
Created attachment 565986 [details] [diff] [review]

Protecting against frames send after we closed the camera.
Comment 4 User image [:fabrice] Fabrice Desré 2011-10-10 14:07:12 PDT
Comment 5 User image Matt Brubeck (:mbrubeck) 2011-10-10 19:17:27 PDT
Does this affect Firefox 9?  Should we request approval for Aurora?
Comment 6 User image Marco Bonardo [::mak] 2011-10-11 02:36:15 PDT
Comment 7 User image [:fabrice] Fabrice Desré 2011-10-11 09:00:17 PDT
Comment on attachment 565986 [details] [diff] [review]

No-risk crasher fix that gives us camera support on the Galaxy S2 for instance.
Comment 8 User image Tony Chung [:tchung] 2011-10-13 20:37:33 PDT
Verified fix on Nightly Fennec: Mozilla/5.0 (Android; Linux armv7l; rv:10.0a1) Gecko/201101013 Firefox/10.0a1 Fennec/10.0a1

No more crash.  Need verification on aurora landing.
Comment 9 User image [:fabrice] Fabrice Desré 2011-10-14 09:31:38 PDT
pushed to aurora:
Comment 10 User image Catalin Suciu [:csuciu] 2011-10-31 06:31:12 PDT
This is not reproducible on the latest Aurora build(30/10)
Mozilla/5.0 (Android; Linux armv7l; rv:9.0a2) Gecko/20111030 Firefox/9.0a2 Fennec/9.0a2
Device: Samsung Galaxy S2

Note You need to log in before you can comment on or make changes to this bug.