danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.76k stars 619 forks source link

UncaughtThrowable on getPropicInfo & deprecation warnings after beta178 update #1452

Closed shinovon closed 7 months ago

shinovon commented 7 months ago

Version: 8.0.0-beta180

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$message is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$file is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$line is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$code is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$trace is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$tlTrace is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61

Deprecated: Creation of dynamic property danog\MadelineProto\Ipc\ExitFailure::$localized is deprecated in vendor\danog\ipc\lib\Sync\ChannelParser.php on line 61
Error: Typed property danog\MadelineProto\Ipc\ExitFailure::$props must not be accessed before initialization in vendor\danog\madelineproto\src\Ipc\ExitFailure.php:67
Stack trace:
#0 vendor\danog\madelineproto\src\Ipc\ClientAbstract.php(102): danog\MadelineProto\Ipc\ExitFailure->getException()
#1 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(425): danog\MadelineProto\Ipc\ClientAbstract->loopInternal()
#2 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(562): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#3 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#4 vendor\revolt\event-loop\src\EventLoop\Internal\DriverSuspension.php(64): Fiber->resume('\x00\xFF\e\x00\x00a:2:{i:0;i...')
#5 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(425): Revolt\EventLoop\Internal\DriverSuspension::Revolt\EventLoop\Internal\{closure}()
#6 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(616): Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks()
#7 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#8 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(497): Fiber->resume()
#9 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(553): Revolt\EventLoop\Internal\AbstractDriver->invokeCallbacks()
#10 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#11 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(94): Fiber->resume()
#12 vendor\revolt\event-loop\src\EventLoop\Internal\DriverSuspension.php(117): Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#13 vendor\amphp\amp\src\Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend()
#14 vendor\danog\madelineproto\src\Ipc\ClientAbstract.php(161): Amp\Future->await()
#15 vendor\danog\madelineproto\src\InternalDoc.php(977): danog\MadelineProto\Ipc\ClientAbstract->__call('getPropicInfo', Array)
#16 ava.php(57): danog\MadelineProto\InternalDoc->getPropicInfo(Array)
#17 {main}

Next Revolt\EventLoop\UncaughtThrowable: Uncaught Error thrown in event loop callback danog\MadelineProto\Ipc\ClientAbstract::loopInternal defined in vendor\danog\madelineproto\src\Ipc\ClientAbstract.php:79; use Revolt\EventLoop::setErrorHandler() to gracefully handle such exceptions: Typed property danog\MadelineProto\Ipc\ExitFailure::$props must not be accessed before initialization in vendor\revolt\event-loop\src\EventLoop\UncaughtThrowable.php:13
Stack trace:
#0 vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(400): Revolt\EventLoop\UncaughtThrowable::throwingCallback(Object(Closure), Object(Error))
#1 vendor\revolt\event-loop\src\EventLoop\Internal\DriverSuspension.php(127): Revolt\EventLoop\Internal\AbstractDriver::Revolt\EventLoop\Internal\{closure}()
#2 vendor\amphp\amp\src\Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend()
#3 vendor\danog\madelineproto\src\Ipc\ClientAbstract.php(161): Amp\Future->await()
#4 vendor\danog\madelineproto\src\InternalDoc.php(977): danog\MadelineProto\Ipc\ClientAbstract->__call('getPropicInfo', Array)
#5 ava.php(57): danog\MadelineProto\InternalDoc->getPropicInfo(Array)
#6 {main} 
shinovon commented 7 months ago

In beta177 everything works fine

danog commented 7 months ago

update to beta 181 and $MadelineProto->restart(); to fix