简体   繁体   English

LibGDX游戏因“ java平台se二进制文件停止工作”而崩溃

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

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. 我遇到了一个非常奇怪的问题,即我的LibGDX游戏在玩了几分钟后突然崩溃,没有抛出异常,它只是冻结并崩溃了,我不得不强制终止该过程。

I have no idea how to debug this kind if error and google searches are not helping with this particular case. 我不知道如果错误和Google搜索对这种特殊情况没有帮助,该如何调试这种情况。

I tried to run it on android to see if Logcat would say something about it, and i got this: 我试图在android上运行它,看看Logcat是否会说些什么,而我得到了这个:

在此处输入图片说明

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? 还是以某种方式获取更好的日志或其他有助于缩小问题范围的方法?

PS: 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. PS:第一次崩溃发生在桌面上,并且仍然发生在桌面上,我只在android上运行以获取更多日志,但这只是一个“仅限Android”的问题。

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? Android libc.so崩溃?
  2. Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). Android致命信号11(SIGSEGV)位于0x636f7d89(代码= 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 也许您需要使用ndk-stack ,希望以某种方式帮助您修复它,这是内存管理的错误,本机端,该错误不会发生在Java代码中,不会显示具有很多细节的堆栈,但是还可以查看是否在显示logcat时看到错误,如果您看到可以提示错误发生位置的内容

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. 我知道这个问题是3年前提出的,但是,如果有人遇到这样的问题,它可能会有所帮助。 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 我当时正在制作一款游戏LibGDX,在运行游戏时它崩溃了,并且在停止Stop后说"Java(TM) Platform SE binary has stopped working" ,经过两个小时的等待,看这是什么,然后重新编写代码,我注意到在一个for循环中,我写了增量部分= +而不是+ = ,就像这样

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. 我的建议,如果您遇到此错误,请检查循环。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM