โ† All posts
ENGINEERING September 29, 2026 ยท 3 min read

An overflow is not a crash

SR
Sentrinel Team
Product & engineering

Crash-free sessions is the number a mobile team watches after every release. If it drops from 99.6% to 97%, something in that build is killing the app, and you want to know before the store reviews tell you.

For Flutter apps, ours was wrong โ€” and in the direction that makes you panic.

What was being counted

The Flutter SDK installs three handlers: FlutterError.onError for build, layout and paint failures; PlatformDispatcher.onError for errors that reach the engine; and the guarded zone for asynchronous errors. All three reported through the same path as a genuine crash. The record was written to disk โ€” so it would survive the process dying โ€” the session was marked crashed, and the report waited for the next launch to be sent.

That is exactly right for a crash. It is exactly wrong for everything else those handlers see. A Flutter app keeps running after an unhandled Dart error. A RenderFlex overflow draws a striped warning. A failed NetworkImage shows the error builder. A build method that throws shows an error widget in its place. An unawaited future's error ends that future and nothing else. The user is still in the app.

So every overflow counted against crash-free sessions, and none of those errors reached the dashboard until the user happened to relaunch โ€” hours later, or never. The two worst properties a monitoring number can have, together: alarming and late.

What is counted now

Errors the app survives are unhandled errors. They are sent within about a second, like any other error, and they mark the session errored โ€” survived, but something went wrong. FlutterErrors marked silent by the framework, which Flutter itself does not show, are skipped.

A crash is the app saying it is about to die: captureError(e, s, fatal: true) from your code, or โ€” in the native SDKs โ€” an uncaught exception, a signal, a Swift trap. Only those mark a session crashed, and they still get the full treatment:

The fourth status is abnormal: the session ended without a clean shutdown and without a crash report โ€” a force-quit, the OS reclaiming memory, a flat battery. Kept apart from crashed deliberately, because a user swiping the app away is not your release's fault. And since backgrounding now ends the session and flushes, the OS killing a backgrounded app no longer reads as abnormal either.

Two smaller fixes that came with it

Crash reports on a bad network are kept. The old spool deleted its file as soon as it was read, then sent what it read. A launch without connectivity โ€” the most common time for a crash-looping app to be reopened โ€” lost every report it replayed. Replayed reports now stay on disk until acknowledged.

Flutter web gets its errors. On the web there is no filesystem, so the spool is memory, and the old path wrote fatal errors into it and returned. Nothing ever drained it; every error on Flutter web was lost. Where there is no disk, errors now go straight to the network.

What to expect after upgrading

Your crash-free rate will go up, probably noticeably, because it stops counting errors your users survived. That is not the new release being better; it is the number becoming true. The errors themselves have not gone anywhere โ€” they are on the Issues page, sooner than before, with their session marked errored so the Release health page still shows how many sessions saw one.

If you want a specific error to count as a crash โ€” a state you know the app cannot recover from โ€” say so where you catch it: Sentrinel.captureError(e, s, fatal: true).

The Flutter guide has the full setup, and the mobile reference lists exactly which handler reports what.