Closed Bug 623062 Opened 14 years ago Closed 14 years ago

When USB storage is enabled, Fennec fails to start.

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(fennec2.0+)

VERIFIED FIXED
Tracking Status
fennec 2.0+ ---

People

(Reporter: dougt, Assigned: dougt)

Details

(Keywords: relnote)

Attachments

(1 file)

When USB storage is enabled, Fennec fails to start. I may have moved Fennec to the SD Card at one point, but it no longer is on the SD Card.
tracking-fennec: --- → ?
OS: Mac OS X → Android
Hardware: x86 → All
tracking-fennec: ? → 2.0-
Keywords: relnote
Assignee: nobody → doug.turner
E/AndroidRuntime(23955): FATAL EXCEPTION: Thread-9 E/AndroidRuntime(23955): java.lang.NullPointerException E/AndroidRuntime(23955): at org.mozilla.gecko.GeckoAppShell.loadGeckoLibs(GeckoAppShell.java:138) E/AndroidRuntime(23955): at org.mozilla.gecko.GeckoApp$3.run(GeckoApp.java:196) E/AndroidRuntime(23955): at java.lang.Thread.run(Thread.java:1096) http://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoAppShell.java#137 need to catch that and have a fallback.
tracking-fennec: 2.0- → ?
mbrubeck, blassey, what should we do here? If the variable is left unset, the exist callers handle it.
You could use a string instead of a File: String downloadDir = null; if (Build.VERSION.SDK_INT >= 8) downloadDir = GeckoApp.mAppContext.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS).getPath(); else downloadDir = Environment.getExternalStorageDirectory().getPath() + File.separator +"download"; GeckoAppShell.putenv("DOWNLOADS_DIRECTORY=" + downloadDir); also have a look here: https://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoApp.java#430 I assume this isn't a problem on froyo, right?
Attached patch patch v.1Splinter Review
Attachment #502656 - Flags: review?(mbrubeck)
Comment on attachment 502656 [details] [diff] [review] patch v.1 mbrubeck and mwu had some good idea (well, serious concerns) over keeping this stale data around. For example, if the user starts up with a sd card mounted, launches fennec, then unmounts the sdcard. For these cases, it is best that we do not store the downloads directory location at all, and instead query for it each and every time. If a download is in progress, I think the notification that the user receives when mounting the sdcard is sufficient.
Attachment #502656 - Flags: review?(mbrubeck) → review-
Comment on attachment 502656 [details] [diff] [review] patch v.1 I'd be fine with checking this in a quick fix for now, and fixing the rest in a followup bug. Or if you just want to post a new patch that fixes it the "right" way, go ahead.
Attachment #502656 - Flags: review- → review+
tracking-fennec: ? → 2.0+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Was there a followup bug filed for comment 6? Moved Firefox Mobile to then from the SD card and Firefox started with usb storage enabled. Mozilla/5.0 (Android; Linux armv7l; rv:2.0b13pre) Gecko/20110315 Firefox/4.0b13pre Fennec/4.0b6pre ID:20110315035936
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: