Роскосмос пару дней назад опубликовал отчёт о том, почему упала "Луна-25". Там конечно канцелярит, но можно примерно понять, что двигатель коррекции получил неверные данные от акселерометра:
из-за возможного попадания в один массив данных команд с различными приоритетами их исполнения прибором
Это очень похоже на программную ошибку, а это моя сфера, и я решил над ситуацией поразмыслить.
Хейтеры сразу стали строчить комментарии в стиле "Ололо, наняли каких-то идиотов, которые простейшие тесты не провели". Тут обычно справедливо вспоминают аварию с европейской ракетой Ариан-5 в 1996 году. Там буквально из-за пары строчек кода в результате неправильного приведения числовых типов ракета за 7 млрд баксов развалилась на куски в воздухе. Бывает.
Что касается Роскосмоса, при всей его сомнительной репутации, объяснение "Дураки не провели тесты" звучит лично для меня неправдоподобно. На мой личный взгляд возможны два варианта:
1. Если в описании ошибки слово "приоритет" обозначает какой-то признак внутри объекта команды, значит, на входе в приёмный модуль эти команды не были отфильтрованы. Выглядит как грубая ошибка, целый логический блок упущен. Вряд ли этот блок вообще не написан, скорее всего он не выполнился. Такое бывает, если в тестовой среде есть какое-то условие, которого нет в рабочей, и именно это условие отвечает за выполнение участка кода.
Сталкивался с таким миллион раз. Самое дикое из последнего: код парсит эксель-таблицу с числами. Разработчик написал, запустил проверил, прогнал тесты, всё ок. Отправляем в прод — все числа будто бы рандомно меняются на другие. Запускаем снова — у всех разработчиков функционирует нормально, а в проде на сервере нет. Таблица одна и та же. Можете подумать, почему так. Ответ: у разработчиков стоит русская локаль и десятичный разделитесь это запятая, а на проде в докере точка. При парсинге на проде запятая уже интерпретируется как разделитель тысячных разрядов.
2. Куда вероятнее, что слово "приоритет" в описании ошибки обозначает время, а, значит, список команд просто не был отсортирован, и в обработчик уже после актуальных значений попали какие-нибудь начальные нулевые данные, сбившие логику. По косвенному описанию проблемы очень похоже именно на это. Значит, на тестах всегда порядок возникновения команд соответствовал порядку их прихода, а в реальности перестал соответствовать. Вообще, работать с железом очень сложно. Какую-нибудь схемку заглючило от холода, она задержала ответ от датчика на миллисекунду, и всё. Никто не знал, что такая проблема возможна, пока она не возникла.
Мне рассказывали о таком случае: юзер логинится на сайт и иногда логин проходит, а иногда нет. Логин и пароль те же самые. Просто в случайные моменты времени ему возвращают токен авторизации, а в другие моменты времени ошибку 403. Никакой закономерности нет вообще. Нет зависимости от времени суток и даты. Сервер точно работает стабильно и не падает все 100% времени. Почему так может быть? Ответ: у сервиса авторизации два инстанса, перед которыми балансировщик нагрузки. В одном инстансе данные для авторизации есть, в другом нет. Балансировщик при примерно одинаковой нагрузке включает просто случайный выбор между ними.
В общем, программисты иногда допускают такие косяки, что какая-то мелочь может привести к серьёзной аварии. Это я вам говорю как программист, который пишет для атомных станций :)
#dev
a melancholic unearthly attractive albino goddess with pale skin in a elegant dress, she is petting black human's arms that form out of the darkness. It annoying her but beautiful at the same time, magazine cover, fashion shot --ar 4:5 --v 7 --draft
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --v 7
by prisenkoan
#fantasy
📣 Midjourney prompts
photorealistic tall-format scene in Ralph Lauren rustic-luxury style. A woman with long, beautifully coiffed black hair stands by a large-paned window inside a refined, moody room. She wears a flowing satin gown and robe, gazing at a violent storm outside. The storm is fierce and foreboding, with trees bending in the wind, swirling leaves, heavy rain slashing against the window, and distant lightning illuminating a stormy night sky. The room is warm and opulent, lit by soft candlelight and a glowing fireplace. Equestrian and vintage Americana decor--dark wood, leather armchairs, and brass accents. Color palette: deep navy, burgundy, forest green, warm amber. Mood: cinematic, gothic, powerful, a sanctuary against the untamed storm --ar 3:4 --style raw --v 6.1
by daci_zaha
#fantasy
📣Midjourney prompts
establish shot of a middle-aged ancient persian general warrior sleeping under a tree. his white horse is standing far on the vast field, wears an ornate helmet of a skull with a pair of curved horns extend from the sides it, He is clad in elaborate armor of tiger-skin, a red sash around his waist, and decorative golden knee guards, cinematic shot, night time --ar 9:16 --v 6.1
by jarrell_odonell77
#fantasy
📣Midjourney prompts
A cosmic void with a glowing green portal slowly opening. The portal’s edges shimmer with crackling energy, and ghostly, tentacle-like forms begin to emerge. The scene is filled with swirling, otherworldly clouds in shades of green and purple, creating a hypnotic vortex effect. In the foreground, a solitary cultist stands on a jagged rock outcrop, arms raised toward the portal in supplication. The camera captures the moment from a low angle, emphasizing the grandeur of the portal and the cultist’s insignificance in comparison. The lighting is surreal, with the portal casting eerie shadows across the landscape. --ar 16:9 --v 6.1
by nsihi_01366
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --p 78qe8bg --v 6.1
by prisenkoan
#fantasy
📣 Midjourney prompts
A foggy Victorian-era forest with a hidden ancient stone altar covered in strange, glowing runes. A horned shadow looms over the altar, barely visible through the mist. The atmosphere is tense and foreboding, with twisted trees forming claw-like shapes and the ground littered with broken branches. – sepia filter, Victorian horror, haunting and mystical --ar 16:9 --v 6.1
by max3en
#fantasy
📣 Midjourney prompts
In the secluded and mysterious deep mountains, a huge pale blue mushroom is scattering spores, as if communicating with the surrounding environment. This scene is presented in a long shot composition. The top of the mushroom emits soft light, and the stem part has fine textures. The picture adopts a surreal photography style, integrates fantasy art aesthetics, has studio lights, has the strange beauty of Chinese style, exquisite lines, is rendered by Unreal Engine, presenting 8K movie effects and real light and shadow effects --ar 9:16 --v 6.1
by ellie_21352
#fantasy
📣 Midjourney prompts
A close-up portrait of a mystical figure with a dual persona. One side of their face is adorned with intricate golden armor, detailed with elegant patterns and flourishes. The other side is engulfed in dark, organic shadows that resemble living flames or smoky tendrils, blending seamlessly into their skin. Their eyes are strikingly different: one a piercing, icy blue and the other a fiery, intense amber. The figure’s gloved hands, dark and clawed, frame their face as they look forward with a mix of allure and mystery. Soft, wavy hair cascades around them, highlighted by warm lighting that contrasts beautifully with the darkness. The mood is surreal and fantasy-inspired, blending beauty and darkness with high detail and dramatic lighting --ar 9:16 --v 6.1
by boombamblum1
#fantasy
📣 Midjourney prompts
An antique hand holding the sacred heart of divine love, with silver ornaments and rays around it, in the style of hyper-realistic photography. --ar 85:128 --v 6.1 --p kqus8w7 --s 90
by cherryoasis
#fantasy
📣 Midjourney prompts