Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jobb crash FAT Full

Tags:

android

crash

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)
like image 336
e2e4media Avatar asked Nov 03 '22 00:11

e2e4media


1 Answers

file with name: videos.zip - first, you don't have to use zip. You may use zip archive as expansion file itself, without packing it in .obb file. But using zip files may slow down your app.

Or you can just put your files in some directory (for example, "tmp"), and then call something like that: jobb -d D:\tmp -o D:\main.com.example.1.obb -pn com.example -pv 1. If each of your files is less than 500 MB, everything should be ok. But if not - I guess, you will have to think about another solution: maybe, compress big video files in order to make their size less than 500 MB.

P.S. For work with .obb files I created this helper you may find useful.

like image 195
uncle Lem Avatar answered Nov 08 '22 04:11

uncle Lem