Closed
Bug 1093708
Opened 10 years ago
Closed 10 years ago
Crash with missing scrollbar image in resource constrained builds
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 36
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(2 files)
1.14 KB,
patch
|
nalexander
:
review+
|
Details | Diff | Splinter Review |
2.01 KB,
patch
|
nalexander
:
review+
|
Details | Diff | Splinter Review |
Nick and I have seen this. Looks like there's a resource not making it into the build when it should.
Assignee | ||
Comment 1•10 years ago
|
||
I feel like this shouldn't be necessary (why can't aapt understand Android resource resolution and decide that there's no hdpi resource shadowing the scrollbar image, and decide to include it?), and yet with this patch we get a scrollbar drawable in the output APK.
Attachment #8516936 -
Flags: review?(nalexander)
Comment 2•10 years ago
|
||
Comment on attachment 8516936 [details] [diff] [review]
Include mdpi assets in constrained builds. v1
Review of attachment 8516936 [details] [diff] [review]:
-----------------------------------------------------------------
I'm fine with this -- you basically own this configuration right now -- but are you certain this is the correct approach?
I think we need to guarantee that the total set of resources is present regardless of the -c flags. What's weird is that this build is using an R.java produced with the -c flags; it's not a runtime mismatch between R.java and the packed resources because R.java is (should be) reflecting the packed resources.
This feels like an aapt bug: it should recognize a missing resource and complain. Either that, or we should find a way to make sure the actual APK has the resources that R.java says it has.
For right now, how do we know that the union of hdpi and mdpi is sufficient? In any case, land to unbork, but let's think of follow-up to make this better.
Attachment #8516936 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 3•10 years ago
|
||
I totally think that this is *not* the correct approach!
Indeed, this is something that I think aapt should be doing, and yes, we will probably hit this again.
In the short to medium term, we'll at least have a build go red on treeherder when someone gets this wrong.
Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Backed out for breaking the build:
https://hg.mozilla.org/integration/fx-team/rev/25ad77f01193
https://tbpl.mozilla.org/php/getParsedLog.php?id=51816812&tree=Fx-Team
Assignee | ||
Comment 6•10 years ago
|
||
This ought to work. Testing.
Attachment #8516988 -
Flags: review?(nalexander)
Comment 7•10 years ago
|
||
Comment on attachment 8516988 [details] [diff] [review]
Include mdpi assets in constrained builds. v2
Review of attachment 8516988 [details] [diff] [review]:
-----------------------------------------------------------------
Building without constrained resources was fine for me.
Attachment #8516988 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Assignee | ||
Comment 10•10 years ago
|
||
Nick: do you think this is relevant?
--auto-add-overlay
Automatically add resources that are only in overlays.
Comment 11•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #10)
> Nick: do you think this is relevant?
>
> --auto-add-overlay
> Automatically add resources that are only in overlays.
Probably not. Suppose you have two res directories, A and B, and B included something that isn't in A. With --auto, the extra resource in B is included; without, the extra resource is not included (since it doesn't *overlay* a thing in A). Since we want the union of all the given sets of resources, we need this.
My guess is we'd see problems earlier (and hopefully at build time) if we didn't dynamically load this resource.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•