Skip to content

build(windows): pin notification memory safety and nonblocking queries - #4516

Merged
Y-PLONI merged 3 commits into
devfrom
palmoni5/integrate-notification-memory-fix-20261108
Nov 9, 2026
Merged

Y-PLONI merged 3 commits into
devfrom
palmoni5/integrate-notification-memory-fix-20261108

Conversation

@palmoni5

@palmoni5 palmoni5 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Purpose

Consume the Windows notification fix chain from fork #4 and fork #5 through an exact Git commit pin rather than switching to upstream or duplicating implementation.

Dependency SHA: faf17437daccb8c74a4d17e6881dc834415de6d8 in Otzaria/flutter_local_notifications.

The pin includes:

  • Fixed new[]/delete[] matching for native callback strings.
  • Dart helper isolates for active/pending/update FFI waits, while C++ continues to own all WinRT calls on its original worker.
  • Deferred native teardown that does not block Flutter's UI isolate, guarded late callbacks, and malformed toast/tag handling.
  • Native sanitizer tests and a deterministic slow-FFI responsiveness probe.

No app API refactor, no DLL ABI change, and no unrelated app files. On the latest re-sync with dev@bfa9d37f67a1f254af21af7e39d30f28af271f31, only pubspec.yaml and pubspec.lock differ from the base.

Validation

  • Fork Add PDF search result count #4: full validate and Windows/Linux ownership sanitizer checks passed.
  • Fork Add bookmark titles to PDF search results #5: Windows fixture proved three 650 ms FFI waits can complete without freezing the UI isolate (670 ms total, 28 ms maximum UI timer gap); Windows/Linux memory CI passed. Full Windows validation on exact pinned SHA is being checked.
  • Consumer: CI on this PR must complete, especially Windows build and lockfile guard. Some unrelated WebView2, PDFium and platform integration jobs can fail for external reasons; failures should be assessed by job logs, not blanket ignored.

Review / merge order

  1. Fork Add PDF search result count #4 into the integration base.
  2. Fork Add bookmark titles to PDF search results #5 after Add PDF search result count #4 (stacked branch), with its native and Flutter tests.
  3. App build(windows): pin notification memory safety and nonblocking queries #4516 after fork integration and a successful Windows consumer build, at a deliberate immutable pin.

No merge without explicit authorization.

palmoni5 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

אימות לפני Ready: fork flutter_local_notifications#4 עבר validate מלא ו-ASan/UBSan ב־Windows/Linux. נעיצת pubspec + lock עברה Lockfile Guard, Analyze, כל 5 shards ו־Linux build. כשלי native האחרים: PDFium/ONNX 504 ו־sqlite3 checksum ממקור חיצוני. אין שינוי API. PR מוכן לסקירת מתחזק אך אין למזג אוטומטית; נדרש גם אישור סדר מיזוג של fork לפני צריכתו.

@palmoni5
palmoni5 marked this pull request as ready for review November 8, 2026 12:23
palmoni5 added a commit that referenced this pull request Nov 8, 2026
…ardown

Synchronize PR #4516 with current dev without dropping existing commits, and pin the entire #4 -> #5 fork chain for consumer CI.
@palmoni5 palmoni5 changed the title build: צריכת תיקון ownership של התראות Windows build(windows): pin notification memory safety and nonblocking queries Nov 9, 2026

palmoni5 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Consumer QA checkpoint — exact Windows notifications pin

  • App head: 65a599ece0f03f25de10305576a53b2486523d3e; synced with dev@bfa9d37f67a1f254af21af7e39d30f28af271f31.
  • Fork pin in both pubspec.yaml and pubspec.lock: faf17437daccb8c74a4d17e6881dc834415de6d8 (Add PDF search result count #4 → Add bookmark titles to PDF search results #5).
  • GitHub compare against dev: only these two dependency files have changed.
  • Lockfile Guard: both checks passed.
  • Flutter Tests / consumer CI: Analyzer passed, Windows debug build passed, Windows SQLite integration step passed, Linux debug build passed on the new fork pin. The previous consumer failure in ffi_api.cpp due to the Windows max macro is resolved.
  • Fork Windows memory/ASan CI and slow-FFI UI responsiveness passed. The synthetic fixture recorded 670 ms total for three 650 ms native calls and a maximum 28 ms UI timer interval.
  • Consumer Windows-specific tests and unrelated platform workflows should still be checked to completion; this is not a blanket claim that every workflow is green.

The app does not change Windows plugin APIs or bundle unrelated commits. Recommended review sequence: fork #4, then stacked fork #5, then this pinned consumer PR. No merge or auto-merge has been performed.

@Y-PLONI
Y-PLONI force-pushed the palmoni5/integrate-notification-memory-fix-20261108 branch from 65a599e to ea7c778 Compare November 9, 2026 09:20
@Y-PLONI
Y-PLONI merged commit 75c2566 into dev Nov 9, 2026
26 of 27 checks passed
@Y-PLONI
Y-PLONI deleted the palmoni5/integrate-notification-memory-fix-20261108 branch November 9, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants