LibGDX game crashes with “java platform se binary stopped working”

柔情痞子 提交于 2019-12-13 02:20:08

问题


Im having this really weird problem where my LibGDX game, suddently, after a few minutes playing, crashes with no Exceptions thrown, it just freezes and crashes, and I have to force the process down.

I have no idea how to debug this kind if error and google searches are not helping with this particular case.

I tried to run it on android to see if Logcat would say something about it, and i got this:

Any idea what could make the game crash like this, with no errors or exceptions? Or any way of fetching better logs or something to help narrow the problem down?

P.S.: The first crashing happened on Desktop, and it still happens on Desktop, I only ran it on android to get more logs, but it is not an "android only" problem, just clarifying.


回答1:


could do a quick test, modifying the manifest:

 <application        
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/CustomTheme"
        android:allowBackup="true"
        android:debuggable="true"
        android:vmSafeMode="true"       
        android:allowClearUserData="true"
        android:hardwareAccelerated="true" >

but perhaps not fix your error, you can take a look at this threads -->

  1. Android libc.so crash?
  2. Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?

maybe you need to use ndk-stack, hope to help you in some way to fix it, It is an error of memory management, the native side, the error does not occur in the Java code does not display a stack with many details, but can also look if when you display the logcat, the error may look if you see something that can you suggest where the error might be occurring




回答2:


Well I had the same problem. I Know this Question was asked 3 years ago but, but if any one has a problem like this it might help. I was making a game whit LibGDX, and while running the Game it crash and the and after the force Stop it said "Java(TM) Platform SE binary has stopped working", After two hours of looking to see what could it be, and re writhing the code I notice that in one for loop I Wrote in the increment part =+ and not +=, like this

for (int i = 0; i < something; i =+ somethingElse)

After I change it,

for (int i = 0; i < something; i += somethingElse) 

I did not have that error any more.

MY suggestion,if you have this error check your loops.



来源:https://stackoverflow.com/questions/28756371/libgdx-game-crashes-with-java-platform-se-binary-stopped-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!