Announcement

Collapse
No announcement yet.

Restarting packages sometimes cause Segmentation fault

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Restarting packages sometimes cause Segmentation fault

    If you put example code:
    Code:
    function cmd_restartpack(player, package_)
      StopPackage(package_)
      Delay(500, function()
          StartPackage(package_)
      end)
    end
    AddCommand("restartpack", cmd_restartpack)
    into package `foo`, and you do `/restartpack foo`, your server will shutdown with information:
    ./start_linux.sh: line 2: 18246 Segmentation fault ./OnsetServer

    #2
    I had this issue at first until I noticed that you can't restart the package if the package is what contains the restart plugins if that make sense.

    Comment


      #3
      are you restarting the package you're executing the command from? This will cause the segmentation fault.

      Comment

      Working...
      X