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)
Tracking
(fennec2.0+)
VERIFIED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 2.0+ | --- |
People
(Reporter: dougt, Assigned: dougt)
Details
(Keywords: relnote)
Attachments
(1 file)
|
1.95 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
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.
Updated•14 years ago
|
tracking-fennec: --- → ?
OS: Mac OS X → Android
Hardware: x86 → All
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → doug.turner
| Assignee | ||
Comment 1•14 years ago
|
||
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- → ?
| Assignee | ||
Comment 2•14 years ago
|
||
mbrubeck, blassey, what should we do here? If the variable is left unset, the exist callers handle it.
Comment 3•14 years ago
|
||
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?
| Assignee | ||
Comment 4•14 years ago
|
||
Attachment #502656 -
Flags: review?(mbrubeck)
| Assignee | ||
Comment 5•14 years ago
|
||
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 6•14 years ago
|
||
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+
Updated•14 years ago
|
tracking-fennec: ? → 2.0+
| Assignee | ||
Comment 7•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 8•14 years ago
|
||
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
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•