Hi David,

recent Scala versions (>= 2.10) are unlikely to trigger the specific
issue you mention (too deep interface hierarchies) any more.

The more likely problem is this: LinearAlloc is dalvik's PermGen, so
if your overall codebase is too large it won't fit into the fixed size
space dalvik reserves for static data like code. The fixed size was
repeatedly increased over the course of Android releases so this might
be the reason why you see your code to work on more recent versions
but not on older ones.

There's not much you can do about it but trying to decrease the total
amount of classes by more aggressive proguarding, etc.

See also this issue: https://code.google.com/p/android/issues/detail?id=78035
and this article from facebook engineers and their hack to get around
the issue: 
https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920

(My information may be outdated since I haven't done any Scala/Android
programming for a long time.)

Johannes

On Tue, Feb 24, 2015 at 4:40 PM, David Pérez
<david.perez.ingeni...@gmail.com> wrote:
> Dear Scalers,
>
> This nasty bug in Android makes Scala apps in Gingerbread to fail.
> https://code.google.com/p/android/issues/detail?id=22586
>
> Does somebody know any workaround?
>
> Thanks in advance for any help.
>
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "scala-on-android" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scala-on-android+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scala-on-android+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to