Windows: graphics fallbacks, a visible start error, the C runtime inside the exe
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

A Windows 10 user saw the program quit silently after SmartScreen: a Windows
program has no console, so a failed graphics start left no trace. A start that
fails or dies before its first frame now tries again without Vulkan, with
OpenGL, then with software drawing (WARP), and keeps the mode that worked; what
no mode overcomes, and any panic, goes to a message box and chesspenguin.log.
The C runtime is linked statically (no VCRUNTIME140.dll needed); CI checks that
and starts the window on the GPU-less Windows runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-21 19:15:21 +03:00
parent 5f7e0f5178
commit 16b7572d57
8 changed files with 294 additions and 4 deletions

View file

@ -726,6 +726,10 @@ impl App {
impl eframe::App for App {
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
// The window has shown its first frame: this graphics mode works.
if ui.ctx().cumulative_frame_nr() >= 1 {
crate::graphics::started();
}
let ctx = ui.ctx().clone();
if self.applied_dark != Some(self.settings.dark_mode) {
ctx.set_visuals(if self.settings.dark_mode {