Server crashes when new chunks need to be generated #2308

Closed
peepzandmeepz opened this Issue Nov 18, 2014 · 6 comments

Projects

None yet

4 participants

@peepzandmeepz

Happens whenever a player travels far out in the world forcing new chunks to generate. The world was completely generated by Pocketmine.

http://crash.pocketmine.net/view/121275

@peepzandmeepz

Found out this crash only happens when a player logs off the server in one of these newly generated chunks.

@ramijames

I may be encountering this. When I'm the last user to log off, the server crashes. It takes down the entire droplet (digital ocean).

@shoghicp
Member

@ramijames Try using screen

@ramijames

Can you explain?

On Wednesday, December 10, 2014, Shoghi Cervantes notifications@github.com
wrote:

@ramijames https://github.com/ramijames Try using screen


Reply to this email directly or view it on GitHub
#2308 (comment)
.


*Rami James http://www.uboodu.com | *ramijames@gmail.com | +972 58 4192939

@SurvivalHive

same here

PocketMine-MP Crash Dump Wed Dec 10 16:18:17 UTC 2014

Error: Call to a member function getLevel() on null
File: /src/pocketmine/event/level/ChunkEvent
Line: 37
Type: E_ERROR

Code:
[28]
[29] abstract class ChunkEvent extends LevelEvent{
[30] /* @var FullChunk /
[31] private $chunk;
[32]
[33] /

[34] * @param FullChunk $chunk
[35] /
[36] public function __construct(FullChunk $chunk){
[37] parent::__construct($chunk->getProvider()->getLevel());
[38] $this->chunk = $chunk;
[39] }
[40]
[41] /
*
[42] * @return FullChunk
[43] */
[44] public function getChunk(){
[45] return $this->chunk;
[46] }
[47] }

Backtrace:

PocketMine-MP version: Alpha_1.4dev #840 [Protocol 20; API 1.7.1]

but dont know how its happend

PS its the same with newer or older dev builds

@ramijames

Screen seems to do the trick. Thanks for that.

@shoghicp shoghicp added a commit that closed this issue Dec 28, 2014
@shoghicp shoghicp Fixed memory leak issues on chunk generation under 32-bit hosts, fixe…
…d issue with generated chunks not having a provider. Closes #2419, fixes #2308, closes #2421
8d9fbec
@shoghicp shoghicp closed this in 8d9fbec Dec 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment