Closed Bug 652787 Opened 14 years ago Closed 14 years ago

Unsupported message displayed on devices with sufficient memory (512MB)

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(fennec2.0next+)

VERIFIED FIXED
Tracking Status
fennec 2.0next+ ---

People

(Reporter: andreea.pod, Assigned: gbrown)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached image message
Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110426 Firefox/6.0a1 Fennec/6.0a1 Device: LG Optimus 2X (Android 2.2) and Nexus S (Android 2.3) Steps to reproduce: 1. Download and install mozilla-central build 2. Start Fennec Expected results: Fennec should start with no problem Actual results: A pop-up message appears saying: "Fennec does not support this device and you may experience problems", see screenshot.
This is a result of changes in the check for available system resources from 256MB to 512MB in bug 649841. The problem is that both your devices do have 512MB, which leads me to believe that this check is not sufficient. This shouldn't appear as both your listed phones the LG Optimus 2X [1] have 512MB ram, alongside the Nexus S [2]. [1] http://pdadb.net/index.php?m=specs&id=2693&c=lg_p990_optimus_2x_lg_star [2] http://pdadb.net/index.php?m=specs&id=2690&c=samsung_gt-i9020_nexus_s
Depends on: 649841
Summary: "Fennec does not support this device..." pop-up message when starting Fennec for the first time → Unsupported message displayed on devices with sufficient memory (512MB)
Keywords: regression
The amount of memory reported by the system does not match the published specs for the device. This is an Android peculiarity noted on forums: http://forum.xda-developers.com/showthread.php?t=482228 http://groups.google.com/group/android-developers/browse_thread/thread/3d9dc4489d263372 I will see if I can find a better way to check for memory.
I could not find a better way to check for memory. The way we are checking for memory - checking /proc/meminfo's "MemTotal" - is indicative of "the amount of RAM available to the kernel and higher-level system as regular memory". But this value is usually significantly smaller than the value quoted in manufacturer's specs. For many "512 MB" devices, the system reports MemTotal in the range 300 MB - 400 MB (the actual value differs from device to device). The original memory check - http://hg.mozilla.org/mozilla-central/rev/385abb827ff3 - for MemTotal <= 256 MB was actually an effective check for a (approximately) 512 MB device. We should probably revert to that revision. But then why was bug 649841 opened? Is there a particular device slipping past the 256 MB check inappropriately??
the amount of memory available is probably the number we want. Some manufacturers report their total memory to include things like gpu memory which the app and the OS could never utilize. That being said, 512 is probably the wrong threshold, something in the 300s makes more sense. to Geoff's question, I believe the xperia x10 was the device we wanted to include in the unsupported side of things.
What's the plan to get the right number? Can look survey a few 512MB phones and see what gets reported? What gets reported for the xperia x10 ?
nom for blocking.
tracking-fennec: --- → ?
For the xperia x10, these posts report: http://www.esato.com/archive/t.php/t-196107,1.html MemTotal: 270604 kB http://forum.xda-developers.com/archive/index.php/t-683081.html MemTotal: 274608 kB My Nexus 1 reports 395108 Kb My Galaxy S reports 374080 Kb How about 300000 Kb for a threshold? Or do we want a more exhaustive study of devices?
300000kb works
Assignee: nobody → gbrown
tracking-fennec: ? → 2.0next+
Attachment #528666 - Flags: review?(blassey.bugs)
From my x10 MemTotal: 287000 kB G2 MemTotal: 380192 kB Ideos s7 MemTotal: 425096 kB
Attachment #528666 - Flags: review?(blassey.bugs) → review+
My only concern is seeing the false positive messages on compatible phones; hopefully this threshold is adequate.
Keywords: checkin-needed
Comment on attachment 528711 [details] [diff] [review] Change low memory threshold to 300000 kb (updated check-in comment) r=blassey
Attachment #528711 - Flags: review+
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
VERIFIED FIXED on: Build Id: Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110429 Firefox/6.0a1 Fennec /6.0a1 Device: HTC Desire Z (android 2.2)
Status: RESOLVED → VERIFIED
Blocks: 659412
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: