Skip to content

Bug | Nullptr reference crash in IsColorSchemeChange #287

@AnnaSasDev

Description

@AnnaSasDev

Severity

Critical (crash, data loss)

Describe the bug

Requires targeted native reliability testing and guard assertions; no dedicated issue-specific tests are present.

Steps to reproduce

  1. Start from an existing InfiniFrame example or unit-test scaffold for the same feature area.
  2. Reproduce the backlog scenario exactly as described in the linked Photino issue.
  3. Capture runtime logs and any native stack traces.
  4. Record platform + engine (WebView2/WebKit2GTK/WKWebView) used for reproduction.

Expected behavior

Define explicit API/behavior for this migration item, implement in managed + native layers where needed, and add focused tests/documentation.

Actual behavior

Pending InfiniFrame-specific reproduction details.

Logs / Error Output

Attach managed log output and native crash/diagnostic data collected during reproduction.

Minimal reproduction

// Dark/light scheme toggle stability repro (manual OS theme toggles)
using InfiniFrame;

var window = InfiniFrameWindowBuilder.Create()
    .SetTitle("Color Scheme Repro")
    .SetStartString("<html><body>Toggle OS theme repeatedly</body></html>")
    .Build();

window.RegisterFocusInHandler(_ => Console.WriteLine("FocusIn"));
window.RegisterFocusOutHandler(_ => Console.WriteLine("FocusOut"));

// While app is running, repeatedly change OS color scheme (dark/light)
// and monitor for native crash or null-ref behavior.
window.WaitForClose();

.NET Version

.NET 10.0 (or exact runtime used in reproduction)

Project Version / Commit

Current main commit at filing time

Operating System

Fill from reproduction environment(s)

Checklist

  • I searched existing issues
  • I can reproduce this consistently
  • I included logs and/or a reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    Photino BacklogItems that are hold overs from Photino that they either never resolved or implementedbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions