我在iOS上的gdx游戏中有一些随机的地方崩溃。它在其他平台上工作没有任何问题。
当应用程序退出时,我会在我的robovm终端中得到以下信息:
9/17/15 1:05:29 PM: [ERROR] AppLauncher failed with an exception:
9/17/15 1:05:29 PM: [ERROR] java.lang.RuntimeException: The app crashed: Terminated due to Memory Error. Check the device logs in Xcode (Window->Devices) for m
我在没有任何框架和引擎的情况下开发我自己的游戏(除了JBox2D,因为我在物理方面有很大的麻烦)。我需要加载.tmx文件到我的游戏。唯一可以使用的选项是LibGDX和他的TmxMapLoader。我在项目中添加了依赖项,运行后得到了预期中的崩溃:
Attempt to invoke interface method 'com.badlogic.gdx.files.FileHandle com.badlogic.gdx.Files.internal(java.lang.String)' on a null object reference at com.badlogic.gdx.