Libgdx Android Too large Java Class?

0

Good Day to you, I'm currently trying to develop a sort of Clash of Clans Clone with LibGdx. But since two Days I have a very strange problem, my source code now has around 11000 lines and my java main class got a size of around 600 kb. My problem is when I try to add anymore lines of code like if statements I get a Fatal Error (The strange thing is if I add a if statement anywhere in the code but therefore also remove an other if statement the code works again perfectly)

10-18 10:32:02.925: A/libc(26337): Fatal signal 11 (SIGSEGV) at 0x00000104 (code=1), thread 26344 (Compiler)

(**0x0... sometimes changes)

and my App crashes it got nothing to do with the source code itself I think because it loads up everything perfectly and strangely it shouldn't even check the if Statement in the normal render code, just after a user interaction. So I think it's a problem with the compiler because if i export the same source code for desktop everything works perfectly and i also got a work around but with which I'm not really satisfied, if I use android:vmSafeMode="true" in the manifest everything works but I get terrible FPS.

Could it have something to do with the HeapSize?

I hope I described my problem clear enough if not please let me know. And sorry for my Bad English.

If you have any suggestions towards the solution please let me know because I'm all out of Ideas.

android
libgdx
heap
asked on Stack Overflow Oct 18, 2014 by user1925525 • edited Oct 18, 2014 by Ravi.

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0