Crash pmmp4

Discussion in 'Help' started by BlackRainbow, Feb 21, 2022.

  1. BlackRainbow

    BlackRainbow Spider

    Messages:
    7
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
  3. BlackRainbow

    BlackRainbow Spider

    Messages:
    7
  4. BlackRainbow

    BlackRainbow Spider

    Messages:
    7
    Do you think that if I disable this plugin, there will be no error?
     
  5. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    No, I was just commenting on the name of the plugin.

    Your error was caused by you doing something with a player who wasn't online
     
  6. BlackRainbow

    BlackRainbow Spider

    Messages:
    7
    Well, how can I find out which plugin does exactly that?
     
  7. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    No idea. There's nothing in your backtrace to know what "plugin" caused it. This seems like it's an issue with your server itself
     
  8. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Or simply try uninstalling plugins one by one
     
  9. BlackRainbow

    BlackRainbow Spider

    Messages:
    7
    So you think the problem isn't with the plugin?
     
  10. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Well that's my guess.
     
  11. Jules

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
  12. SleepSpace9

    SleepSpace9 Slime

    Messages:
    78
    GitHub:
    sleepspace9
    I bet PurePerms causes the crash and it only happens after a player with "*" permission has been disconnected (by transfer) and a message is broadcasted. Right?
     
  13. Jules

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
    Yes! EXACTLY, why is it doing this ?
     
  14. SleepSpace9

    SleepSpace9 Slime

    Messages:
    78
    GitHub:
    sleepspace9
    I think it happens in PlayerQuitEvent when PurePerms::unregisterPlayer() removes the PermissionAttachment. It causes that the player is added again to the broadcast channel subscribers, maybe because $player->removeAttachment() triggers permission recalculation.

    A possible workaround would be to add the following line to the end of the function PurePerms::unregisterPlayer():

    PHP:
    $this->getServer()->unsubscribeFromAllBroadcastChannels($player);
     
  15. Jules

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
    This patch seems to work, will tell you if the error is triggerred again! Tysm, appreciate the help.
    I will maybe open a change request on the github page of Pureperms in order to patch the bug :)
     
    SleepSpace9 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.