Repository navigation
[Google3 Bug] _TypeError crash in _RenderObjectSemantics._buildSemanticsSubtree #184036
Copy link
Copy link
Closed
Closed
Copy link
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: googleVarious Google teamsVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)Owned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility teamTriaged by Framework Accessibility team
Description
Help us understand the severity of this issue
- causing severe production issues e.g. malfunctions or data loss
- blocking next binary release
- blocking a client feature launch within a quarter
- nice-to-have but does not block a launch within the next quarter
Steps to reproduce
Unclear
Expected results
App does not crash
Actual results
~1000 crashes per day in production with the following stack trace:
_TypeError
at _RenderObjectSemantics._buildSemanticsSubtree (object.dart:6235)
at PipelineOwner.flushSemantics (object.dart:1625)
at PipelineOwner.flushSemantics (object.dart:1642)
at RendererBinding.drawFrame (binding.dart:636)
at WidgetsBinding.drawFrame (binding.dart:1564)
at RendererBinding._handlePersistentFrameCallback (binding.dart:495)
at RendererBinding._handlePersistentFrameCallback (binding.dart:494)
at SchedulerBinding._invokeFrameCallback (binding.dart:1430)
at SchedulerBinding.handleDrawFrame (binding.dart:1345)
at SchedulerBinding._handleDrawFrame (binding.dart:1198)
at SchedulerBinding._handleDrawFrame (binding.dart:1180)
at _rootRun (zone_root.dart:35)
at _rootRun (zone_root.dart:26)
at _CustomZone.run (zone.dart:726)
at _CustomZone.runGuarded (zone.dart:625)
at _invoke (hooks.dart:425)
at PlatformDispatcher._drawFrame (platform_dispatcher.dart:447)
at _drawFrame (hooks.dart:395)
at _drawFrame (hooks.dart:393)
I believe the root cause is the geometry! invocation from https://github.com/flutter/flutter/pull/180375/changes#diff-4c298197a8aa7831a26eece096c8b8b07773ba1f5376d848ea4ef2924b606e9fR6235
Code sample
None
Screenshots or Video
None
Logs
N/A, google3 internal
Flutter Doctor output
N/A, google3 internal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: googleVarious Google teamsVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)Owned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility teamTriaged by Framework Accessibility team
Activity
math1man commentedon Mar 23, 2026
Internal bug b/494797304, client
huggsymbcorona commentedon Mar 23, 2026
Routing to team-accessibility since the stack trace specifically fails at _RenderObjectSemantics._buildSemanticsSubtree
[-][Google3 Bug]:[/-][+][Google3 Bug] _TypeError crash in _RenderObjectSemantics._buildSemanticsSubtree[/+]chunhtai commentedon Mar 27, 2026
Response from AI assistant:
This is a valid accessibility bug in the Flutter framework, causing a
_TypeErrorcrash at_RenderObjectSemantics._buildSemanticsSubtree(object.dart:6235) when a semantic node enters asiblingMergeGroupswith a dirty (null) geometry. BecauseupdateChildren()fails to schedule an explicit child within asiblingMergeGroupsfor a geometry update, it cascades to a null assertion runtime failure.1. Reproducible Test Case
2. Proposed Fix in Framework (packages/flutter/lib/src/rendering/object.dart)
In
_RenderObjectSemantics.updateChildren(), iterate over elements insidesiblingMergeGroupsand check for missing geometry. If found, add them to_nodesNeedingSemanticsGeometryUpdatelist:Component: framework
Labels needed:
frameworkfixes crash when invisible semantics nodes dropped from semantics tree (
github-actions commentedon Apr 13, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.fixes crash when invisible semantics nodes dropped from semantics tree (
fixes crash when invisible semantics nodes dropped from semantics tre…