aapt should never crash, so it's a bug in it of some kind. Unless you want to dig in and figure out the problem, filing a bug report would probably be good. :)
On Tue, Mar 3, 2009 at 6:36 PM, craiget <crai...@gmail.com> wrote: > > Thank you for the replies. > > Maybe what's causing my confusion is a bug in aapt (or my > environment?) rather than misunderstanding the concept of 9-patch. In > which case I may be posting to the wrong place. > > I've got two files that demonstrate what's happening: > > This first file, Eclipse likes and it successfully gets packaged into > the application and everything is fine. > > http://maladroid.net/b.9.png > > This second file is exactly the same, except it duplicates the pattern > of 1px red bars for one more column. This file seems to cause aapt to > crash. However, it seems like it should be a valid 9-patch. > > http://maladroid.net/c.9.png > > The console shows an error message: > > *** glibc detected *** /home/me/android/android-sdk-linux_x86-1.1_r1/ > tools/aapt: realloc(): invalid old size: 0x09a50770 *** > [2009-03-03 21:21:15 - Test] ======= Backtrace: ========= > ~~~ etc > > > > Any ideas what could be causing that to happen? > > Thanks! > > > > > > > > On Mar 3, 6:28 pm, Dianne Hackborn <hack...@android.com> wrote: > > A feature unfortunately added after the name itself was pretty set in > stone. > > :) > > > > > > > > On Tue, Mar 3, 2009 at 12:55 PM, Romain Guy <romain...@google.com> > wrote: > > > > > > Because a ninepatch consists of 9 patches, only 5 of which are > scaled, > > > > while the 4 corners are not scaled. An image that has a black > top-left > > > > pixel therefore cannot be a ninepatch image. The draw9patch tool > > > > shouldn't even let you set the top-left to black. > > > > > Actually our 9patches really are n-patches. You can have as many > > > stretchable areas as you want. > > > > > -- > > > Romain Guy > > > Android framework engineer > > > romain...@android.com > > > > > Note: please don't send private questions to me, as I don't have time > > > to provide private support. All such questions should be posted on > > > public forums, where I and others can see and answer them > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---