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

Symphony OutputInterface failed to write #190

Open
dfelton opened this issue Apr 27, 2021 · 0 comments
Open

Symphony OutputInterface failed to write #190

dfelton opened this issue Apr 27, 2021 · 0 comments
Assignees
Labels
bug Something isn't working Priority - Low

Comments

@dfelton
Copy link
Owner

dfelton commented Apr 27, 2021

This one is interesting... Something must have crashed as the machine was not displaying anything to the monitors but a black screen to one (the other turned off as it didn't register any incoming signal).

Restarting the machine didn't help...

After a sudo dnf update (noticing a new Kernel version as part of it), followed by downloading the latest NVidia driver, setting the machine to multi-user.target, and installing said drivers, the display monitors were working once again as expected. Oddly, during restarts not even the motherboards boot screen showed.

Anyhow, when (something regarding graphics) crashed, symphony then failed to write during an output attempt with OutputInterface. This caused an emergency shutdown as this was not something that had been handled yet.

Question in this scenario, is what to do about it? I'f hate to wrap every $output->writeln() in a try catch...

Shutdown Enabled at: 2021-04-27 08:04:16
Exception: Exception
Code: 0
Message: Notice: fwrite(): write of 101 bytes failed with errno=5 Input/output error in/vendor/symfony/console/Output/StreamOutput.php on line 76
Strace:
#0 [internal function]: Kobens\Core\ErrorHandler->handler(8, 'fwrite(): write...', '/home/dfelton/g...', 76, Array)
#1/vendor/symfony/console/Output/StreamOutput.php(76): fwrite(Resource id #347, '2021-04-27 08:0...')
#2/vendor/symfony/console/Output/Output.php(166): Symfony\Component\Console\Output\StreamOutput->doWrite('2021-04-27 08:0...', true)
#3/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write(Array, true, 1)
#4/src/Command/Command/TradeRepeater/FillMonitor/WebSocket.php(190): Symfony\Component\Console\Output\Output->writeln('2021-04-27 08:0...')
#5/src/Command/Command/TradeRepeater/FillMonitor/WebSocket.php(153): Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\WebSocket->processCompletedTradeRepeaterOrder(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#6/src/Command/Command/TradeRepeater/FillMonitor/WebSocket.php(126): Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\WebSocket->processMessage(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 [internal function]: Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\WebSocket->Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\{closure}('a', NULL)
#8/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send('[{"type":"fill"...')
#9/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}(NULL, '[{"type":"fill"...')
#10/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve('[{"type":"fill"...')
#11/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}(NULL, NULL)
#12/vendor/amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(NULL)
#13/vendor/amphp/byte-stream/lib/IteratorStream.php(64): Amp\Deferred->resolve()
#14/vendor/amphp/amp/lib/Success.php(41): Amp\ByteStream\IteratorStream->Amp\ByteStream\{closure}(NULL, false)
#15/vendor/amphp/amp/lib/Internal/Placeholder.php(143): Amp\Success->onResolve(Object(Closure))
#16/vendor/amphp/amp/lib/Deferred.php(52): class@anonymous->resolve(Object(Amp\Success))
#17/vendor/amphp/amp/lib/Internal/Producer.php(193): Amp\Deferred->resolve(Object(Amp\Success))
#18/vendor/amphp/amp/lib/Emitter.php(69): class@anonymous->complete()
#19/vendor/amphp/websocket/src/Rfc6455Client.php(357): Amp\Emitter->complete()
#20/vendor/amphp/websocket/src/Rfc6455Client.php(966): Amp\Websocket\Rfc6455Client->onData(1, '[{"type":"fill"...', true)
#21 [internal function]: Amp\Websocket\Rfc6455Client->parser()
#22/vendor/amphp/websocket/src/Rfc6455Client.php(271): Generator->send('\x81~\x02\\[{"type":"f...')
#23 [internal function]: Amp\Websocket\Rfc6455Client->read()
#24/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send('\x81~\x02\\[{"type":"f...')
#25/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}(NULL, '\x81~\x02\\[{"type":"f...')
#26/vendor/amphp/amp/lib/Deferred.php(52): class@anonymous->resolve('\x81~\x02\\[{"type":"f...')
#27/vendor/amphp/byte-stream/lib/ResourceInputStream.php(101): Amp\Deferred->resolve('\x81~\x02\\[{"type":"f...')
#28/vendor/amphp/amp/lib/Loop/NativeDriver.php(327): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}('n', Resource id #486, NULL)
#29/vendor/amphp/amp/lib/Loop/NativeDriver.php(127): Amp\Loop\NativeDriver->selectStreams(Array, Array, 1)
#30/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch(true)
#31/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#32/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
#33/src/Command/Command/TradeRepeater/FillMonitor/WebSocket.php(97): Amp\Loop::run(Object(Closure))
#34/vendor/symfony/console/Command/Command.php(255): Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\WebSocket->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Kobens\Gemini\Command\Command\TradeRepeater\FillMonitor\WebSocket), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38/bin/gemini(443): Symfony\Component\Console\Application->run()
#39 {main}

@dfelton dfelton added bug Something isn't working Priority - Low labels Apr 27, 2021
@dfelton dfelton self-assigned this Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority - Low
Projects
None yet
Development

No branches or pull requests

1 participant