Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📄[UPLOAD-CRASH] 内存溢出 #118

Closed
Pigeon0v0 opened this issue Aug 14, 2023 · 1 comment · Fixed by #221
Closed

📄[UPLOAD-CRASH] 内存溢出 #118

Pigeon0v0 opened this issue Aug 14, 2023 · 1 comment · Fixed by #221
Labels
Bug 某个地方有点问题? Doc 文档修改和改进建议

Comments

@Pigeon0v0
Copy link
Member

描述问题

JVM 内存溢出,导致游戏崩溃
检测关键词 `EXCEPTION_ACCESS_VIOLATION (0xc0000005)`
需要注意的是,该字段只会出现在 `hs_err_pid**.log` 中,因此需要制作对应的逻辑处理

您正在进行的操作是?

来自群友提交,无法填写

崩溃日志

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb5c7288a1, pid=25504, tid=25880
#
# JRE version: Java(TM) SE Runtime Environment (17.0.2+8) (build 17.0.2+8-LTS-86)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.2+8-LTS-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [atio6axx.dll+0xb488a1]

操作系统

Windows

客户端 / 服务端

客户端

@Pigeon0v0 Pigeon0v0 added Bug 某个地方有点问题? Doc 文档修改和改进建议 labels Aug 14, 2023
@zhuWin
Copy link

zhuWin commented Sep 30, 2023

似乎所有由于OpenGL驱动崩溃而导致的游戏崩溃都有可能报0xc0000005

nvoglv32.dll / nvoglv64.dll / OPENGL32.DLL(我所知的OpenGL驱动名称,欢迎补充

尽管内存溢出可能是造成此故的最大原因。

解决方法:32位用户请稍微调低内存量(这很玄学,一般768MB/896MB为宜,多次实践证明更大的内存反而更容易导致OpenGL驱动内存溢出。)

64位用户,请确保使用64位Java。如若均使用64位,请调高内存分配量。

话说回来,我这里的使用自定义Mesa3D OpenGL驱动的 Windows 98 设备上的 Minecraft 也经常以此崩溃,不清楚原因是什么(

有时候,JVM崩溃会明确表明发生了内存溢出,以下附件为示例。
hs_err_pid3364.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 某个地方有点问题? Doc 文档修改和改进建议
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants