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

Effect #211

Closed
Danding1314 opened this issue Aug 17, 2019 · 2 comments
Closed

Effect #211

Danding1314 opened this issue Aug 17, 2019 · 2 comments

Comments

@Danding1314
Copy link

@Danding1314 Danding1314 commented Aug 17, 2019

Error: Maximum -5 is less than the minimum 0
File: src/pocketmine/entity/Attribute
Line: 158
Type: InvalidArgumentException

@Matthww

This comment has been minimized.

Copy link

@Matthww Matthww commented Aug 28, 2019

PocketMine-MP Crash Dump Wed Aug 28 17:06:24 WEST 2019

Error: Maximum -4 is less than the minimum 0
File: src/pocketmine/entity/Attribute
Line: 158
Type: InvalidArgumentException

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: PiggyCustomEnchants v1.4.6

Code:
[149]           return $this;
[150]   }
[151]
[152]   public function getMaxValue() : float{
[153]           return $this->maxValue;
[154]   }
[155]
[156]   public function setMaxValue(float $maxValue){
[157]           if($maxValue < ($min = $this->getMinValue())){
[158]                   throw new \InvalidArgumentException("Maximum $maxValue is less than the minimum $min");
[159]           }
[160]
[161]           if($this->maxValue != $maxValue){
[162]                   $this->desynchronized = true;
[163]                   $this->maxValue = $maxValue;
[164]           }
[165]           return $this;
[166]   }
[167]
[168]   public function getDefaultValue() : float{

Backtrace:
#0 src/pocketmine/entity/Living(155): pocketmine\entity\Attribute->setMaxValue(double -4)
#1 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/Tasks/EffectTask(83): pocketmine\entity\Living->setMaxHealth(integer -4)
#2 src/pocketmine/scheduler/TaskHandler(159): DaPigGuy\PiggyCustomEnchants\Tasks\EffectTask->onRun(integer 148561)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 148561)
#4 src/pocketmine/plugin/PluginManager(689): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 148561)
#5 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 148561)
#6 src/pocketmine/Server(2345): pocketmine\Server->tick()
#7 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[18] /home/matthew/1.2/, string[26] /home/matthew/1.2/plugins/)
#10 src/pocketmine/PocketMine(299): pocketmine\server()
#11 (1): require(string[73] phar:///home/matthew/1.2/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.9.3 [Protocol 361]
Git commit: 18a1bfe4dd425895a14c82d6633fbf567feeb30c
uname -a: Linux ns528566 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64
PHP Version: 7.3.8
Zend version: 3.3.8
OS : Linux, linux

I'm getting a similiar crash

@Danding1314

This comment has been minimized.

Copy link
Author

@Danding1314 Danding1314 commented Aug 29, 2019

yes the same crash dump !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.