I’m trying to build a game with LibGDX and Box2D.
In the game, I have stars to be collected and platforms to jump on. The starts are removed from the Box2D world when the player ‘gets’ them. They also removed from the world if they are not visible in the screen anymore. Platforms are removed from the world.
This is the first time I am getting an error like this (Well tons of times for this project, but never on anything else). It is totally random. I can’t pinpoint any lines or methods. I tried this on Eclipse, exported Jar file and on Android. Sometimes you can play the game for like forever, but sometimes it crashes in 1 minute.
There are no particular action to trigger it. My game is only about jumping and getting the coins, and these two are the only things you can do. On Eclipse, sometimes it just freezes, it doesn’t crash but it also does not do anything. But most of the times it gives this error.
Here is the error I am getting:
[quote]#
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x0000000110886978, pid=3221, tid=62211
JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
Java VM: Java HotSpot™ 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
Problematic frame:
C [libgdx.dylib+0xa978] _ZN16b2BlockAllocator8AllocateEi+0x58
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
An error report file with more information is saved as:
/Users/mesut/hs_err_pid3221.log
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
Abort trap: 6
[/quote]
This the error report file at /Users/mesut: http://pastebin.java-gaming.org/0c1e98e648f
I know I’m not giving much detail, but if there is something I can do, please tell me. I have a messy project, but I can upload it to somewhere if that makes a difference.
Can you tell me what this means? Or the ways to overcome it? Thanks in advance