找回密码
 初始化身份识别芯片
查看: 1500|回复: 9

求助,java heap space

[复制链接]

巡洋大副

发表于 2023-2-27 21:22:40 | 显示全部楼层 |阅读模式
Mod Bug汇报
待解决
游戏版本: 0.95.1
Mod中文名:
Mod版本:
游戏日志:
错误部分的日志
2280081 [Thread-3] INFO com.fs.starfarer.campaign.save.CampaignGameManager - Error saving game
2280081 [Thread-3] ERROR com.fs.starfarer.campaign.save.CampaignGameManager - Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68)
at java.lang.StringBuffer.<init>(StringBuffer.java:128)
at com.thoughtworks.xstream.io.path.PathTracker.peekElement(PathTracker.java:131)
at com.thoughtworks.xstream.io.path.PathTracker.getPath(PathTracker.java:169)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:53)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66)
at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:274)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:250)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:213)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:144)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:90)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:274)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:250)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:213)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:144)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:90)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:274)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:250)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.<init>(AbstractReflectionConverter.java:213)
    复现步骤:
    本帖最后由 大型烈焰驱动器 于 2023-2-27 21:29 编辑

    游戏信息]

    游戏版本:                0.95.1a-RC6

    [系统信息]

    操作系统:                Microsoft Windows 11 家庭中文版
    系统版本:                10.0.22621 暂缺 Build 22621
    总可用内存:                31.73G

    警告:未找到游戏默认Java运行时

    虚拟机参数:                java.exe -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=native\\windows -Xverify:none -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=80 -XX:MaxTenuringThreshold=15 -Xmn2g -Xms8g -Xmx8g -Xss16m -XX:+PrintGCDetails -XX:+PrintGCDateStamps  -Xloggc:jvm.log -classpath janino.jar;commons-compiler.jar;commons-compiler-jdk.jar;starfarer.api.jar;starfarer_obf.jar;jogg-0.0.7.jar;jorbis-0.0.15.jar;json.jar;lwjgl.jar;jinput.jar;log4j-1.2.9.jar;lwjgl_util.jar;fs.sound_obf.jar;fs.common_obf.jar;xstream-1.4.10.jar -Dcom.fs.starfarer.settings.paths.saves=..\\saves -Dcom.fs.starfarer.settings.paths.screenshots=..\\screenshots -Dcom.fs.starfarer.settings.paths.mods=..\\mods -Dcom.fs.starfarer.settings.paths.logs=. com.fs.starfarer.StarfarerLauncher
    堆栈初始大小(`-Xms`):        8192m
    堆栈最大大小(`-Xmx`):        8192m
    打了大概五六十个Mod写不下来,估计是那块调用的堆栈死循环把内存占用满了,不然不可能不够的

    势力巨擘

    发表于 2023-2-28 09:36:00 | 显示全部楼层
    保存的时候发生的吗?

    点评

    是啊,无法存档了  详情 回复 发表于 2023-2-28 20:10

    势力巨擘

    译码专家

    发表于 2023-2-28 14:08:19 | 显示全部楼层
    是不是调参数的时候调错了什么

    巡洋大副

     楼主| 发表于 2023-2-28 20:10:20 | 显示全部楼层
    特工 发表于 2023-2-28 09:36
    保存的时候发生的吗?

    是啊,无法存档了

    点评

    兄弟你显卡多大显存的?我猜测爆显存了?  详情 回复 发表于 2023-2-28 21:49

    势力巨擘

    发表于 2023-2-28 21:49:29 | 显示全部楼层

    兄弟你显卡多大显存的?我猜测爆显存了?

    点评

    刚换4080,正常不可能爆的  详情 回复 发表于 2023-3-1 22:19

    巡洋大副

     楼主| 发表于 2023-3-1 22:19:29 | 显示全部楼层
    特工 发表于 2023-2-28 21:49
    兄弟你显卡多大显存的?我猜测爆显存了?

    刚换4080,正常不可能爆的

    点评

    不会是笔记本吧(我瞎猜,因为之前朋友电脑开着核显,游戏压到核显爆过显存  详情 回复 发表于 2023-3-2 09:26

    势力巨擘

    发表于 2023-3-2 09:26:48 | 显示全部楼层
    大型烈焰驱动器 发表于 2023-3-1 22:19
    刚换4080,正常不可能爆的

    不会是笔记本吧(我瞎猜,因为之前朋友电脑开着核显,游戏压到核显爆过显存

    巡洋大副

     楼主| 发表于 2023-3-7 22:36:47 | 显示全部楼层
    只能一个个MOD慢慢排了

    势力巨擘

    发表于 2023-3-7 22:56:53 | 显示全部楼层
    本帖最后由 XZCW 于 2023-3-7 23:09 编辑

    应该是哪个mod引起的,最近全是无法保存的人

    巡洋大副

    发表于 2023-4-1 20:27:47 | 显示全部楼层
    所以现在搞定了吗

    本版积分规则

    Archiver|手机版|小黑屋|远行星号中文论坛

    GMT+8, 2024-11-23 01:51

    Powered by Discuz! X3.5

    © 2001-2077 Tencent Cloud | Durian Software Studio

    快速回复 返回顶部 返回列表