iTXTech / Genisys

Feature-rich server software for Minecraft: Pocket Edition & Windows 10 Edition Beta
https://itxtech.org/genisys/
GNU General Public License v3.0
429 stars 246 forks source link

Crash #2168

Closed Xelcronia closed 7 years ago

Xelcronia commented 7 years ago

Issue description

Server crashing

Steps to reproduce the issue

I don't know how to reproduce it. (Maybe a player changing biome on plots )

OS and versions

Crashdump, backtrace, memory dumps, plugins list or other files


Error: Object of class pocketmine\level\generator\normal\biome\PlainBiome could not be converted to string
File: /src/pocketmine/lang/BaseLang
Line: 92
Type: E_RECOVERABLE_ERROR

Code:
[83]     * @param string[] $params
[84]     *
[85]     * @return string
[86]     */
[87]    public function translateString($str, array $params = [], $onlyPrefix = null){
[88]        $baseText = $this->get($str);
[89]        $baseText = $this->parseTranslation(($baseText !== null and ($onlyPrefix === null or strpos($str, $onlyPrefix) === 0)) ? $baseText : $str, $onlyPrefix);
[90] 
[91]        foreach($params as $i => $p){
[92]            $baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText, $onlyPrefix);
[93]        }
[94] 
[95]        return str_replace("%0", "", $baseText); //fixes a client bug where %0 in translation will cause freeze
[96]    }
[97] 
[98]    public function translate(TextContainer $c){
[99]        if($c instanceof TranslationContainer){
[100]           $baseText = $this->internalGet($c->getText());
[101]           $baseText = $this->parseTranslation($baseText !== null ? $baseText : $c->getText());
[102] 

Backtrace:
#0 (): pocketmine\Server->crashDump(boolean)

Genisys version: 5db838952f340ae42ef74f03e6397d9b65d2d70c [Protocol 91; API 2.1.0]
uname -a: Linux server1 2.6.32-042stab116.2 #1 SMP Fri Jun 24 15:33:57 MSK 2016 x86_64
PHP version: 7.0.3
Zend version: 3.0.0
OS : Linux, linux

Server uptime: 30 minutes 18 seconds
Number of loaded worlds: 8
Players online: 9/200

Loaded plugins:
WorldProtect 2.2.0 by aliuly for API(s) 1.10.0, 1.12.0
iProtector 3.1b by LDX for API(s) 1.9.0, 2.0.0
Holograms FleetHD by FleetHD for API(s) 1.10.0
BanItem 2.2 by LDX for API(s) 1.0.0, 2.0.0
ClearLagg 1.1.0 by LegendOfMCPE for API(s) 1.0.0
TopVoter 1.1.5 by SalmonDE for API(s) 2.0.0
MysteryChest 0.0.6-PreRelease by ImagicalGamer for API(s) 2.0.0
PurePerms 1.3.7 by 64FF00 & ProjectInfinity for API(s) 1.13.0, 2.0.0
SkinChanger 1.3.8 by SalmonDE, Aericio, KairusDarkSeeker for API(s) 2.0.0
AdvancedKits 5.1 by luca28pet for API(s) 2.0.0
ManyWorlds 2.0.3 by aliuly for API(s) 2.0.0, 1.13.0
SuperFish 1.0.3 by Aster/BuildMcpe for API(s) 2.0.0, 1.0.0
TapToDo 2.2.1 by Falk for API(s) 1.0.0, 2.0.0
Prealms_BuildBattle 1.3.0 by DragonPlayzMC for API(s) 1.0.0, 2.0.0
EconomyAPI 2.0.9 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
WarpPads 1.0.0 by XFuryMCPE for API(s) 1.12.0, 2.0.0
SwirlPixCore 1.0.7 by xBeastMode for API(s) 2.0.0
PVPlevelRPG 6 by ByZikenPE for API(s) 2.0.0
NetherChests 1.1.1 by aliuly for API(s) 1.12.0
SW_svile 0.6dev by svile for API(s) 2.0.0
EssentialsPE 2.0.0 by LegendsOfMCPE Team for API(s) 2.1.0, 2.0.0
LoginAuth 2.1 by Jhelom & Dragon7 for API(s) 2.0.0
VoteReward 3.0.2 by LDX for API(s) 1.12.0, 2.0.0
EconomyJob 2.0.4 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
Slapper 1.2.9.7 by jojoe77777 for API(s) 2.0.0
WorldEdit 3.2 by ByZikenPE for API(s) 1.13.0
EconomyShop 2.0.7 by onebone for API(s) 1.12.0
MyPlot 1.1.3 by Wiez, Exxarion, jasonwynn10 for API(s) 1.13.1, 2.0.0
PureChat 1.4.0 by 64FF00 for API(s) 1.13.0, 2.0.0
SignWarp 1.5.1 by aliuly for API(s) 1.10.0, 1.12.0
Muqsit commented 7 years ago

Question: Did this happen back in 0.15?

Xelcronia commented 7 years ago

Checked all my crashdumps, no. It's crashing on 0.16

dktapps commented 7 years ago

ugh, that stupid backtrace... going to have to fix that some time, it's really irritating.

ghost commented 7 years ago

My server crash when a monster spawner is broken by a player and I have no idea what is causing it

dktapps commented 7 years ago

https://github.com/jasonwynn10/MyPlot/commit/607d68385eb7253a000cd851e0f6afa3e6810d7d