Minecraft出错: Can't create cache file!

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Minecraft出错: Can't create cache file!相关的知识,希望对你有一定的参考价值。

---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 13-6-24 上午10:35
Description: Failed to start game
java.lang.RuntimeException: javax.imageio.IIOException: Can't create cache file!
at awv.c(SourceFile:100)
at awv.a(SourceFile:92)
at awv.<init>(SourceFile:56)
at net.minecraft.client.Minecraft.a(SourceFile:248)
at avv.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(SourceFile:507)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.imageio.IIOException: Can't create cache file!
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at awv.c(SourceFile:98)
... 6 more
Caused by: java.nio.file.AccessDeniedException: C:\Users\GUOWEN~1\AppData\Local\Temp\imageio5420634571326550202.tmp
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.createFile(Unknown Source)
at java.nio.file.TempFileHelper.create(Unknown Source)
at java.nio.file.TempFileHelper.createTempFile(Unknown Source)
at java.nio.file.Files.createTempFile(Unknown Source)
at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
... 9 more

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation
Memory: 16511376 bytes (15 MB) / 43245568 bytes (41 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total;
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: No suspicious classes found.
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6450A GL version 4.1.10600 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

参考技术A 把地图和材质包备份一下,重安装minecraft 参考技术B java内存设置问题追问

如何设置?我以前玩的时候都没有问题啊……

参考技术C 内存不够?

Fatal error: Can't use function return value in write context

这个的出错原因很简单,先贴出错代码:

 

1 <?php
2     $contact = array("id"=>1, "姓名"=>"老高", "公司"=>"A公司", "地址"=>"北京");
3     $list($key, $value) = each($contact);
4     echo "$key => $value";
5 ?>

 

解决:经检查,原来是第三行list函数前加了个$符,去掉即可,贴上正确代码:

1 <?php
2     $contact = array("id"=>1, "姓名"=>"老高", "公司"=>"A公司", "地址"=>"北京");
3     list($key, $value) = each($contact);
4     echo "$key => $value";
5 ?>

 

此外:网上遇到这个错误的人很多,类型也不同,但个人认为基本原因跟返回值类型出错

 

以上是关于Minecraft出错: Can't create cache file!的主要内容,如果未能解决你的问题,请参考以下文章

Python3中UnicodeEncodeError: 'gbk' codec can't encode character出错信息处理

pvcreate出错: Can't open /dev/sdb7 exclusively. Mounted filesystem?

rosbag遍历数据出错:(unicode error) 'utf-8' codec can't decode byte 0xcd in position 31: invali

mysql出错ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

logging error. UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1

Fatal error: Can't use function return value in write context