Closed Bug 744838 Opened 12 years ago Closed 12 years ago

crash in java.lang.NullPointerException at java.util.concurrent.SynchronousQueue.put(SynchronousQueue.java:814)

Categories

(Firefox for Android Graveyard :: General, defect)

14 Branch
All
Linux
defect
Not set
critical

Tracking

(firefox14 verified, firefox15 verified, blocking-fennec1.0 +)

VERIFIED FIXED
Firefox 15
Tracking Status
firefox14 --- verified
firefox15 --- verified
blocking-fennec1.0 --- +

People

(Reporter: nhirata, Assigned: blassey)

References

()

Details

(Keywords: crash, reproducible, topcrash, Whiteboard: [native-crash])

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-ab9b0cac-1ca0-4d06-82dc-662be2120411 .
============================================================= 
java.lang.NullPointerException
	at java.util.concurrent.SynchronousQueue.put(SynchronousQueue.java:814)
	at org.mozilla.gecko.GeckoApp$FilePickerResultHandlerSync.onActivityResult(GeckoApp.java:2657)
	at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2600)
	at android.app.Activity.dispatchActivityResult(Activity.java:3944)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:2528)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:2574)
	at android.app.ActivityThread.access$2000(ActivityThread.java:117)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:961)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:130)
	at android.app.ActivityThread.main(ActivityThread.java:3683)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
	at dalvik.system.NativeStart.main(Native Method)

STR: 
1. go to http://people.mozilla.com/~nhirata/html_tp/bug725953.html
2. click inside the text field
3. choose a file picker like ASTRO if it's installed
4. hit back button twice

Expected: no crash
Actual: crash

Note: I don't think we should crash if we get a NULL returned from a third party app...
Keywords: reproducible
Whiteboard: [native-crash], reproducible → [native-crash]
blassey, GeckoApp.FilePickerResultHandlerSync looks like code you last touched. The fix looks straightforward.
This was our #1 crash yesterday and #3 for the last few days.
blocking-fennec1.0: --- → ?
Assignee: nobody → blassey.bugs
blocking-fennec1.0: ? → +
Attached patch patchSplinter Review
Attachment #615533 - Flags: review?(cpeterson)
Comment on attachment 615533 [details] [diff] [review]
patch

Review of attachment 615533 [details] [diff] [review]:
-----------------------------------------------------------------

Could you just check for FilePickerResultHandler.handleActivityResult()'s null return value (and convert it to an empty string) in FilePickerResultHandlerSync.onActivityResult()? That seems like a simpler and more robust solution.
(In reply to Chris Peterson (:cpeterson) from comment #4)
> Comment on attachment 615533 [details] [diff] [review]
> patch
> 
> Review of attachment 615533 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Could you just check for FilePickerResultHandler.handleActivityResult()'s
> null return value (and convert it to an empty string) in
> FilePickerResultHandlerSync.onActivityResult()? That seems like a simpler
> and more robust solution.

could, but I actually don't want FilePickerResultHandlerASync returning null either, so I like this solution better.
Comment on attachment 615533 [details] [diff] [review]
patch

Review of attachment 615533 [details] [diff] [review]:
-----------------------------------------------------------------

OK
Attachment #615533 - Flags: review?(cpeterson) → review+
Comment on attachment 615533 [details] [diff] [review]
patch

[Approval Request Comment]
Regression caused by (bug #): 
User impact if declined: 
Testing completed (on m-c, etc.): 
Risk to taking this patch (and alternatives if risky):
String changes made by this patch:
Attachment #615533 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/24d7f09f3891
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
Comment on attachment 615533 [details] [diff] [review]
patch

Returning empty string instead of null.
Attachment #615533 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
This crash cannot be reproducible anymore on the latest Nightly and Aurora builds if STR from comment #0 are performed. Closing bug as verified fixed on:

Firefox 15.0a1 (2012-05-30)
Firefox 14.0a2 (2012-05-30)

Device: Galaxy Nexus
OS: Android 4.0.2
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: