JOBB崩溃FAT全 [英] Jobb crash FAT Full

查看:402
本文介绍了JOBB崩溃FAT全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译JOBB库视频的问题是JOBB坠毁在大小大于500 MB的视频,下面是对这个问题的一些信息:

  java.io.IOException异常:FAT全(459872,459873)
    在de.waldheinz.fs.fat.Fat.allocNew(Fat.java:298)
    在de.waldheinz.fs.fat.Fat.allocAppend(Fat.java:376)
    在de.waldheinz.fs.fat.ClusterChain.setChainLength(ClusterChain.java:175)
    在de.waldheinz.fs.fat.ClusterChain.setSize(ClusterChain.java:132)
    在de.waldheinz.fs.fat.FatFile.setLength(FatFile.java:91)
    在de.waldheinz.fs.fat.FatFile.write(FatFile.java:154)
    在com.android.jobb.Main $ 1.processFile(Main.java:495)
    在com.android.jobb.Main.processAllFiles(Main.java:604)
    在com.android.jobb.Main.processAllFiles(Main.java:600)
    在com.android.jobb.Main.main(Main.java:417)
异常的线程主了java.lang.RuntimeException:错误获取/写文件,名称:videos.zip
    在com.android.jobb.Main $ 1.processFile(Main.java:501)
    在com.android.jobb.Main.processAllFiles(Main.java:604)
    在com.android.jobb.Main.processAllFiles(Main.java:600)
    在com.android.jobb.Main.main(Main.java:417)


解决方案

由于OBB文件是建立在FAT16文件系统,最大总容量为2 GB。这可以由一个单一的文件被消耗,或者它可以被制成数百个文件组成。需要注意的是FAT16只允许最多根目录下512个文件,所以如果你有比你需要让他们在OBB文件中一个单独的文件夹多个文件。

莱姆叔叔是正确的,使用一个ZIP文件实际上可能对这些文件较慢的访问。除非你绝对需要的COM pression(ZIP是COM pression很不错呢?),我建议你不把文件放到一个ZIP档案。该JOBB工具旨在创建一个从目录中的内容(包括子目录,preserving目录结构)的有效OBB文件。

原因你的错误是在JOBB工具源代码和它使用的FAT库的问题。我在这里细节详细写了,但基本上它是一个工具认为FAT16只允许最多512 MB,而在现实中,它允许最多2 GB。一旦该工具已经固定,你可以用它来创建更大的OBB文件。在此期间,它可以创建修复它的自定义版本。我后来做打算公布我的个人工具的版本。

<一个href=\"http://stackoverflow.com/questions/18924872/superfloppyformatter-returning-fat32-for-anything-over-512-mb\">SuperFloppyFormatter对于任何超过512 MB返回FAT32?

HTTPS://$c$c.google。 COM / p /安卓/问题/细节?ID = 60294

I tried to compile videos with jobb library the problem is jobb crash with videos larger in size than 500 MB, below is some information about this issue:

java.io.IOException: FAT Full (459872, 459873)
    at de.waldheinz.fs.fat.Fat.allocNew(Fat.java:298)
    at de.waldheinz.fs.fat.Fat.allocAppend(Fat.java:376)
    at de.waldheinz.fs.fat.ClusterChain.setChainLength(ClusterChain.java:175)
    at de.waldheinz.fs.fat.ClusterChain.setSize(ClusterChain.java:132)
    at de.waldheinz.fs.fat.FatFile.setLength(FatFile.java:91)
    at de.waldheinz.fs.fat.FatFile.write(FatFile.java:154)
    at com.android.jobb.Main$1.processFile(Main.java:495)
    at com.android.jobb.Main.processAllFiles(Main.java:604)
    at com.android.jobb.Main.processAllFiles(Main.java:600)
    at com.android.jobb.Main.main(Main.java:417)
Exception in thread "main" java.lang.RuntimeException: Error getting/writing file with name: videos.zip
    at com.android.jobb.Main$1.processFile(Main.java:501)
    at com.android.jobb.Main.processAllFiles(Main.java:604)
    at com.android.jobb.Main.processAllFiles(Main.java:600)
    at com.android.jobb.Main.main(Main.java:417)

解决方案

As the OBB files are built on a FAT16 filesystem, the maximum total size is 2 GB. That could be consumed by a single file, or it could be made up of hundreds of files. Note that FAT16 only allows up to 512 files in the root directory, so if you have more files than that you'll need to have them in a separate folder inside the OBB file.

Uncle Lem is right that using a ZIP archive may in fact make your access to the files slower. Unless you absolutely need the compression (is ZIP compression very good anyway?), I'd recommend not putting the files into a ZIP archive. The jobb tool is designed to create a valid OBB file from the contents of a directory (including subdirectories, preserving directory structure).

The reason for your error is an issue in the jobb tool source and the FAT library it uses. I wrote in more detail about the specifics here, but basically it's that the tool thinks FAT16 only allows up to 512 MB while in reality it allows up to 2 GB. Once the tool has been fixed you will be able to use it to create larger OBB files. In the meantime, it's possible to create a custom build that fixes it. I do later intend to publish my personal build of the tool.

SuperFloppyFormatter returning FAT32 for anything over 512 MB?

https://code.google.com/p/android/issues/detail?id=60294

这篇关于JOBB崩溃FAT全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆