Lorie, It is likely that this LinearAlloc capacity differs per Android version. Your test project clearly exceeds it for Androids prior to 2.1 and from 2.1 onwards it must be within new, bigger boundaries.
As for it breaking after adding more tests, it is possible, that the total weight of various elements of your object graph exceeds the total amount allowed by LinearAlloc. Have a look here: http://www.gitorious.org/android-on-freerunner/platform_dalvik/blobs/master/vm/LinearAlloc.c First paragraph in the overview states that this file is responsible for memory management tied to a classloader. It is possible that the library which you are using is not cleaning up after itself or is unnecessarily promiscuous with the depth of object hierarchies or with the sheer number of objects. If you have chance to try alternative library, please do. If not, maybe splitting your unit tests between different classes could help. HTH, Daniel On 2 May 2012 14:04, Lorie Pisicchio <[email protected]> wrote: > I have read this post, but it didn't give me a clue. Mark Renouf suggests to > use libraries that are less complex, but my test project started to fail > when adding some new unit tests (not making the library more complex..) > Moreover, the dalvikvm limitation that is mentioned is for version 2.3, but > my tests run fine, starting with 2.1... > Anyway, thanx for your help! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

