Plethora777 / mcpe_viz

Minecraft Pocket Edition (MCPE) World Visualization & Reporting Tool with Web App
GNU General Public License v2.0
167 stars 39 forks source link

ERROR: LevelDB operation returned status=Corruption: CURRENT file does not end with newline #34

Open JamesSylvia opened 7 years ago

JamesSylvia commented 7 years ago
mcpe_viz v0.0.31 by Plethora777
Reading XML from C:\Users\Jessie\Desktop\mcpe_viz-master\mcpe_viz-master\mcpe_viz.win64/mcpe_viz.xml
Reading config from C:\Users\Jessie\Desktop\mcpe_viz-master\mcpe_viz-master\mcpe_viz.win64/mcpe_viz.cfg
parseLevelFile: name=C:/Users/Jessie/Desktop/minecraftWorlds/MMgAAJG-jwE=/level.dat version=5 len=828
  Found World Spawn: x=912 y=32767 z=4
  Level name is [Jessie1]
DB Open: dir=C:/Users/Jessie/Desktop/minecraftWorlds/MMgAAJG-jwE=
DB Open Status: Corruption: CURRENT file does not end with newline (block_size=4096 bloom_filter_bits=10)
ERROR: LevelDB operation returned status=Corruption: CURRENT file does not end with newline

I am getting this error when I press Go button with viz_helper.exe

Could you help please?

Plethora777 commented 7 years ago

Very strange. Can you zip up that world directory and send me a dropbox (or other) link?

Romaq commented 7 years ago

I'm getting this with purchased worlds, but not on worlds I create from a seed. I'm guessing this is to prevent third party access. Plethora777, are you able to purchase maps from the Marketplace to see if you can extract them?

galenzhao commented 6 years ago

same here,

mcpe_viz v0.0.35 by Plethora777
Reading XML from ./mcpe_viz.xml
Reading config from ./mcpe_viz.cfg
parseLevelFile: name=./map/level.dat version=6 len=1857
  Found World Spawn: x=208 y=32767 z=4
  Level name is [pc1]
DB Open: dir=./map
DB Open Status: Corruption: CURRENT file does not end with newline (block_size=4096 
bloom_filter_bits=10)
ERROR: LevelDB operation returned status=Corruption: CURRENT file does not end with newline

self gen maps with mcpe1.2.9, http://101.236.63.250/20180121-220812.tar.gz

galenzhao commented 6 years ago

I try to fix db manually, but still no layer images(all images are black) gen after repaired db,

I change the code as :

int32_t dbOpen(const std::string& dirDb) {
  // todobig - leveldb read-only? snapshot?
  slogger.msg(kLogInfo1,"DB Open: dir=%s\n",dirDb.c_str());
  leveldb::Status dstatus = leveldb::DB::Open(*dbOptions, std::string(dirDb+"/db"), &db);
  slogger.msg(kLogInfo1,"DB Open Status: %s (block_size=%d bloom_filter_bits=%d)\n", dstatus.ToString().c_str(), control.leveldbBlockSize, control.leveldbFilter); fflush(stderr);
  if (!dstatus.ok()) {
    slogger.msg(kLogInfo1,"ERROR: LevelDB operation returned status=%s\n",dstatus.ToString().c_str());
    leveldb::Options options_;

    leveldb::Status flag = leveldb::RepairDB(std::string(dirDb+"/db"), options_);
    if(!flag.ok()){
      exit(-2);
    }
  }
  return 0;
}

@JamesSylvia @Romaq

can you try this to see if can gen images or not?

then run:

[root@vultr build]# ./mcpe_viz --db ./m3 --out ./o3/ooo --html-all mcpe_viz v0.0.35 by Plethora777 Reading XML from ./mcpe_viz.xml Reading config from ./mcpe_viz.cfg parseLevelFile: name=./m3/level.dat version=6 len=1857 Found World Spawn: x=208 y=32767 z=4 Level name is [pc1] DB Open: dir=./m3 DB Open Status: OK (block_size=4096 bloom_filter_bits=10) Scan keys to get world boundaries Bounds (chunk): DimId=0 X=(0 0) Z=(0 0) Bounds (pixel): DimId=0 X=(0 0) Z=(0 0) Image=(16 16) Bounds (chunk): DimId=1 X=(0 0) Z=(0 0) Bounds (pixel): DimId=1 X=(0 0) Z=(0 0) Image=(16 16) Bounds (chunk): DimId=2 X=(0 0) Z=(0 0) Bounds (pixel): DimId=2 X=(0 0) Z=(0 0) Image=(16 16) 4 records Active 'hide-top', 'force-top', and 'geojson-block': 'geojson' block: overworld - End Portal Frame (dimId=0 blockId=120 (0x78)) 'hide-top' block: nether - Bedrock (dimId=1 blockId=7 (0x07)) 'hide-top' block: nether - Netherrack (dimId=1 blockId=87 (0x57)) 'hide-top' block: nether - Lava (dimId=1 blockId=10 (0x0a)) 'hide-top' block: nether - Stationary Lava (dimId=1 blockId=11 (0x0b)) Parse all leveldb records Read 4 records Status: OK Check Spawnable: Dimension 'overworld' (0) Check Spawnable: Dimension 'nether' (1) Check Spawnable: Dimension 'the-end' (2) Do Output: overworld Generate Image Generate Biome Image Generate Grass Image Generate Height Column Image Generate Height Column (grayscale) Image Generate Height Column (alpha) Image Generate Block Light Image Generate Sky Light Image Generate Slime Chunks Image Generate Shaded Relief Image Generate full-size slices Writing all images in one pass Row 0 of 16 Do Output: nether Generate Image Generate Biome Image Generate Grass Image Generate Height Column Image Generate Height Column (grayscale) Image Generate Height Column (alpha) Image Generate Block Light Image Generate Sky Light Image Generate Slime Chunks Image Generate Shaded Relief Image Generate full-size slices Writing all images in one pass Row 0 of 16 Do Output: the-end Generate Image Generate Biome Image Generate Grass Image Generate Height Column Image Generate Height Column (grayscale) Image Generate Height Column (alpha) Image Generate Block Light Image Generate Sky Light Image Generate Slime Chunks Image Generate Shaded Relief Image Generate full-size slices Writing all images in one pass Row 0 of 16 Do Output: html viewer Copying icon images Done. [root@vultr build]# ls

gen map layer:

https://payback.zhenggangzhao.org/files/oo3.tar.gz