Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapgen double-generating mapblocks, destroying user-built structures #1397

Closed
fireglow opened this issue Jun 20, 2014 · 8 comments
Closed

Mapgen double-generating mapblocks, destroying user-built structures #1397

fireglow opened this issue Jun 20, 2014 · 8 comments
Labels
@ Mapgen Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible

Comments

@fireglow
Copy link

Hi,

Did a clearobjects run, afterwards chunks that had buildings, etc in were regenerated.
I've noticed that problem before, but in a smaller scale. This time, a huge part of our spawn-area park got demolished.
So this is a serious issue where user-build structures get damaged, and /rollback can't do anything about.
According to PilzAdam, this is a known issue.

A fix would be most welcome.

@sapier
Copy link
Contributor

sapier commented Jun 20, 2014

Can someone post the parameters when this happens?

@davisonio
Copy link
Contributor

Can someone post the parameters when this happens?

An error like this happens:

In thread 2a7c:
..\..\minetest\src\emerge.cpp:633: EmergeThread::Thread: Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 90:
#0  main
#1  Dedicated server branch
#2  dedicated_server_loop
(Leftover data: #3  Server::step)
DEBUG STACK FOR THREAD ef8:
#0  CurlFetchThread::Thread
DEBUG STACK FOR THREAD 29dc:
#0  ServerThread::Thread
#1  Server::Receive
(Leftover data: #2  ServerEnvironment::step)
(Leftover data: #3  RemoteClient::GetNextBlocks)
(Leftover data: #4  Server::SendAccessDenied)
(Leftover data: #5  ItemStack::deSerialize)
DEBUG STACK FOR THREAD 2a7c:
#0  EmergeThread::Thread
(Leftover data: #1  ServerMap::emergeBlock: p=(-2,3,3), create_blank=0)
(Leftover data: #2  ServerMap::loadBlock)
(Leftover data: #3  ServerMap::createSector: p2d=(-47,53))

@davisonio
Copy link
Contributor

Also, another cause of this bug is when running 2 servers from one minetest installation.

@sapier
Copy link
Contributor

sapier commented Jun 20, 2014

minetest doesn't have locking, if your run two instances on same map that's a user error

Is this the only way to trigger the error? or is there another way to do?

@fireglow
Copy link
Author

All I can say is that

  1. it happens after or during a /clearobjects run, and
  2. there was no other instance of mt running, the world/ is a ZFS file system.

@ShadowNinja
Copy link
Member

I didn't find any assert(0);s in a recent emerge.cpp, so this bug would appear to be gone.

@sfan5 sfan5 added this to the 0.4.11 milestone Jul 6, 2014
@nerzhul nerzhul modified the milestones: 0.5, 0.4.12 Feb 18, 2015
@paramat
Copy link
Contributor

paramat commented Aug 29, 2015

Can anyone reproduce or is this now fixed?

@paramat paramat added Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible and removed High priority Bug Issues that were confirmed to be a bug labels Aug 29, 2015
@paramat
Copy link
Contributor

paramat commented Jun 2, 2016

I think this can be closed then.

@paramat paramat closed this as completed Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Mapgen Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible
Projects
None yet
Development

No branches or pull requests

7 participants