LevelDb2Avnil icon indicating copy to clipboard operation
LevelDb2Avnil copied to clipboard

Script Error

Open rolipobi opened this issue 6 years ago • 15 comments

I always get this error, when I want to convert my MCPC wolrd:

D:\mc\LevelDb2Avnil-master (1)\LevelDb2Avnil-master>java -jar Converter.jar world worldanvil Exception in thread "main" java.nio.BufferOverflowException at java.nio.DirectByteBuffer.put(Unknown Source) at org.iq80.leveldb.util.Zlib$ByteBufferBackedOutputStream.write(Zlib.java:91) at org.iq80.leveldb.util.Zlib$ZLibSPI.copy(Zlib.java:108) at org.iq80.leveldb.util.Zlib$ZLibSPI.uncompress(Zlib.java:118) at org.iq80.leveldb.util.Zlib.uncompress(Zlib.java:181) at org.iq80.leveldb.table.MMapTable.readBlock(MMapTable.java:121) at org.iq80.leveldb.table.Table.openBlock(Table.java:79) at org.iq80.leveldb.util.TableIterator.getNextBlock(TableIterator.java:102) at org.iq80.leveldb.util.TableIterator.getNextElement(TableIterator.java:79) at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48) at org.iq80.leveldb.util.InternalTableIterator.getNextElement(InternalTableIterator.java:51) at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48) at org.iq80.leveldb.util.DbIterator.resetPriorityQueue(DbIterator.java:155) at org.iq80.leveldb.util.DbIterator.(DbIterator.java:75) at org.iq80.leveldb.impl.DbImpl.internalIterator(DbImpl.java:781) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:747) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:738) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:84) at com.ljyloo.PE2PC.PE2PC.convert(PE2PC.java:66) at com.ljyloo.PE2PC.PE2PC.main(PE2PC.java:37)

Any idea?

rolipobi avatar Jul 11 '17 17:07 rolipobi

Seems like your map is too big for your memory. May I ask the size of the map and your computer memory?

ljyloo avatar Jul 12 '17 13:07 ljyloo

PC has 16GB Ram, the MAP has 6GB. It is the same on a server with 24 Core and 64 GB RAM. How can I modify the script that it works? (It would be very important to me)

rolipobi avatar Jul 12 '17 13:07 rolipobi

Maybe you don't allocate enough memory for java VM? Try this one java -Xms10240m -Xmx10240m -jar Converter.jar world worldanvil

ljyloo avatar Jul 12 '17 14:07 ljyloo

it`s the same:

C:\install\convert_mc\LevelDb2Avnil-master>java -Xms10240m -Xmx10240m -jar Converter.jar world worldanvil Exception in thread "main" java.nio.BufferOverflowException at java.nio.DirectByteBuffer.put(Unknown Source) at org.iq80.leveldb.util.Zlib$ByteBufferBackedOutputStream.write(Zlib.java:91) at org.iq80.leveldb.util.Zlib$ZLibSPI.copy(Zlib.java:108) at org.iq80.leveldb.util.Zlib$ZLibSPI.uncompress(Zlib.java:118) at org.iq80.leveldb.util.Zlib.uncompress(Zlib.java:181) at org.iq80.leveldb.table.MMapTable.readBlock(MMapTable.java:121) at org.iq80.leveldb.table.Table.openBlock(Table.java:79) at org.iq80.leveldb.util.TableIterator.getNextBlock(TableIterator.java:102) at org.iq80.leveldb.util.TableIterator.getNextElement(TableIterator.java:79) at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48) at org.iq80.leveldb.util.InternalTableIterator.getNextElement(InternalTableIterator.java:51) at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48) at org.iq80.leveldb.util.DbIterator.resetPriorityQueue(DbIterator.java:155) at org.iq80.leveldb.util.DbIterator.(DbIterator.java:75) at org.iq80.leveldb.impl.DbImpl.internalIterator(DbImpl.java:781) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:747) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:738) at org.iq80.leveldb.impl.DbImpl.iterator(DbImpl.java:84) at com.ljyloo.PE2PC.PE2PC.convert(PE2PC.java:66) at com.ljyloo.PE2PC.PE2PC.main(PE2PC.java:37)

rolipobi avatar Jul 12 '17 14:07 rolipobi

I've never been dealing with such a huge map XD... If you don't mind can you send me your map? I need to do some experiment

ljyloo avatar Jul 12 '17 15:07 ljyloo

You can send me link privately via twitter message @ljyloo

ljyloo avatar Jul 12 '17 15:07 ljyloo

OK……I get it. The converter you are using is for converting Pocket Edition(PE) map to PC map……And you want to use it to convert your PC map to PE map…… Read the README first

ljyloo avatar Jul 12 '17 15:07 ljyloo

thanks for the info. It is not easy to find the right thing, because the name is always equal (leveldb). I would need it from Windows 10 Edition (C++ leveldb) to pocketmine server. where can I get the right converter?

rolipobi avatar Jul 12 '17 15:07 rolipobi

Wait, you are playing Minecraft Windows 10 Edition? That's using the same format(LevelDb) as the Pocket Edition. And my converter should do the job XD, but it failed. Can you send me your map to find out the bug, thanks.

ljyloo avatar Jul 12 '17 16:07 ljyloo

The PC edition I am talking about is the JAVA edition

ljyloo avatar Jul 12 '17 16:07 ljyloo

@rolipobi pocketmine in pmmp/PocketMine-MP actually can load these fully working soon. ´The last change was 10 days ago: https://github.com/pmmp/PocketMine-MP/commit/b4a149cce81bfce22bb57e07554946620ecb2f74#diff-0

Maybe try setting default level type to Leveldb in the properties.yml. As far as i remember leveldb would requiere an php extension which exists here: https://github.com/pmmp/php-leveldb/releases

inxomnyaa avatar Jul 12 '17 16:07 inxomnyaa

I set the format to leveldb in properties.yml. but it won`t work. when I start it, the folder "region" is generated :-(

rolipobi avatar Jul 13 '17 12:07 rolipobi

Nobody who can help me?

rolipobi avatar Jul 25 '17 16:07 rolipobi

Sigh I told you to send me your map :|

ljyloo avatar Jul 26 '17 09:07 ljyloo