<p dir="auto">Hi, afraid I'm rather a newbie with Flutter. This may be a bug. Could well be I'm borking something though.<br>
Best,<br>
Andy.</p>
<h2 dir="auto">Steps to Reproduce</h2>

<p dir="auto">Here is a gist demonstrating the bug <a href="https://gist.github.com/andytwoods/13c56c196bf50558f1a6979b983c326b">https://gist.github.com/andytwoods/13c56c196bf50558f1a6979b983c326b</a></p>
<p dir="auto">Dynamically adding a new panel with isExpanded = true, I don't get the expected gap.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/595166/48301558-cc3e1880-e4e7-11e8-9986-85b044101462.png"><img src="https://user-images.githubusercontent.com/595166/48301558-cc3e1880-e4e7-11e8-9986-85b044101462.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Selecting minify, leads to this bug:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/595166/48301570-fb548a00-e4e7-11e8-88d5-3e3e3fc04cfd.png"><img src="https://user-images.githubusercontent.com/595166/48301570-fb548a00-e4e7-11e8-88d5-3e3e3fc04cfd.png" alt="image" style="max-width: 100%;"></a></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\andytwoods\IdeaProjects\gear_log&gt;flutter doctor -v
[√] Flutter (Channel unknown, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-GB)
    • Flutter version 0.9.4 at C:\src\flutter
    • Framework revision f37c235c32 (7 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\andytwoods\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\andytwoods\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4999

[√] Connected devices (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)

• No issues found!"><pre class="notranslate"><code class="notranslate">C:\Users\andytwoods\IdeaProjects\gear_log&gt;flutter doctor -v
[√] Flutter (Channel unknown, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-GB)
    • Flutter version 0.9.4 at C:\src\flutter
    • Framework revision f37c235c32 (7 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\andytwoods\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\andytwoods\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4999

[√] Connected devices (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)

• No issues found!
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Log: 
I/flutter ( 7452): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 7452): The following assertion was thrown building ExpansionPanelList(state:
I/flutter ( 7452): _ExpansionPanelListState#72d5c):
I/flutter ( 7452): 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 443 pos 18:
I/flutter ( 7452): '_children[j] is MaterialGap': is not true.
I/flutter ( 7452): 
I/flutter ( 7452): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 7452): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 7452): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 7452):   https://github.com/flutter/flutter/issues/new
I/flutter ( 7452): 
I/flutter ( 7452): When the exception was thrown, this was the stack:
I/flutter ( 7452): #2      _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart:443:18)
I/flutter ( 7452): #3      StatefulElement.update (package:flutter/src/widgets/framework.dart:3820:58)
I/flutter ( 7452): #4      Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #6      Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #7      StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #8      Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #9      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #10     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #11     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #12     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #14     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #15     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #16     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #18     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #19     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #20     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #21     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #22     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #23     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #24     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #25     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #26     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #27     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #28     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #29     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #31     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #32     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #33     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #34     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #35     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #36     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #37     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #38     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #39     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #40     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #41     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #42     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #43     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #44     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #45     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #46     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #47     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #48     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #49     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #50     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #51     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #52     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #53     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #54     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #55     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #56     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #57     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #58     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #59     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #60     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #61     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #62     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #63     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #64     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #65     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #66     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #67     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #68     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #69     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #70     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #71     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #72     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #73     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #74     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #75     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #76     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #77     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #78     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #79     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #80     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #81     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #82     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #83     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #84     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #85     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33)
I/flutter ( 7452): #86     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20)
I/flutter ( 7452): #87     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 7452): #88     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 7452): #89     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 7452): #90     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 7452): #91     _invoke (dart:ui/hooks.dart:139:13)
I/flutter ( 7452): #92     _drawFrame (dart:ui/hooks.dart:128:3)
I/flutter ( 7452): (elided 2 frames from class _AssertionError)
I/flutter ( 7452): ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">Log: 
I/flutter ( 7452): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 7452): The following assertion was thrown building ExpansionPanelList(state:
I/flutter ( 7452): _ExpansionPanelListState#72d5c):
I/flutter ( 7452): 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 443 pos 18:
I/flutter ( 7452): '_children[j] is MaterialGap': is not true.
I/flutter ( 7452): 
I/flutter ( 7452): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 7452): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 7452): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 7452):   https://github.com/flutter/flutter/issues/new
I/flutter ( 7452): 
I/flutter ( 7452): When the exception was thrown, this was the stack:
I/flutter ( 7452): #2      _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart:443:18)
I/flutter ( 7452): #3      StatefulElement.update (package:flutter/src/widgets/framework.dart:3820:58)
I/flutter ( 7452): #4      Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #6      Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #7      StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #8      Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #9      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #10     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #11     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #12     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #14     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #15     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #16     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #18     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #19     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #20     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #21     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #22     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #23     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #24     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #25     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #26     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #27     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #28     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #29     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #31     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #32     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #33     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #34     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #35     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #36     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #37     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #38     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #39     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #40     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #41     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #42     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #43     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #44     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #45     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #46     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #47     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #48     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #49     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #50     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #51     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #52     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #53     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #54     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #55     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #56     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #57     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #58     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #59     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #60     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #61     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14)
I/flutter ( 7452): #62     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #63     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #64     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #65     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #66     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #67     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #68     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #69     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #70     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #71     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #72     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #73     StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5)
I/flutter ( 7452): #74     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #75     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #76     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #77     ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 7452): #78     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #79     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #80     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #81     StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5)
I/flutter ( 7452): #82     Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15)
I/flutter ( 7452): #83     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16)
I/flutter ( 7452): #84     Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 7452): #85     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33)
I/flutter ( 7452): #86     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20)
I/flutter ( 7452): #87     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 7452): #88     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 7452): #89     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 7452): #90     _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 7452): #91     _invoke (dart:ui/hooks.dart:139:13)
I/flutter ( 7452): #92     _drawFrame (dart:ui/hooks.dart:128:3)
I/flutter ( 7452): (elided 2 frames from class _AssertionError)
I/flutter ( 7452): ════════════════════════════════════════════════════════════════════════════════════════════════════
</code></pre></div>
<p dir="auto"><em>@parasthekoder commented on Jul 18, 2018, 6:43 AM UTC:</em></p>
<p dir="auto">When performing a hot restart I got a fatal exception and then application is terminated.<br>
It is usually happening on hot restart, it seems like a kind of memory related error.<br>
Searching over internet I found that turn off hardware acceleration, I did it too, but still getting this error.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Hot restart your app few times.</p>
<h2 dir="auto">Version info</h2>
<p dir="auto">Android Studio <code class="notranslate">3.1.3</code> • Flutter plugin <code class="notranslate">io.flutter 26.0.1</code> • Dart plugin <code class="notranslate">173.4700</code></p>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.167], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Community Edition (version 2018.1)
[√] Connected devices (1 available)

• No issues found!
"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.167], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Community Edition (version 2018.1)
[√] Connected devices (1 available)

• No issues found!

</code></pre></div>
<h2 dir="auto">Exception</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
com.intellij.openapi.diagnostic.Logger$EmptyThrowable
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:140)
	at io.flutter.view.InspectorPanel.lambda$recomputeTreeRoot$5(InspectorPanel.java:575)
	at io.flutter.inspector.InspectorService$ObjectGroup.lambda$null$67(InspectorService.java:875)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
"><pre class="notranslate"><code class="notranslate">
com.intellij.openapi.diagnostic.Logger$EmptyThrowable
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:140)
	at io.flutter.view.InspectorPanel.lambda$recomputeTreeRoot$5(InspectorPanel.java:575)
	at io.flutter.inspector.InspectorService$ObjectGroup.lambda$null$67(InspectorService.java:875)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

</code></pre></div>
<h2 dir="auto">Logcat</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="F/libc    ( 9665): Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 9763 (1.ui), pid 9665 
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
LineageOS Version: '15.1-20180623-NIGHTLY-j5lte'
Build fingerprint: 'samsung/lineage_j5lte/j5lte:8.1.0/OPM2.171026.006.C1/7ea606c2dc:userdebug/test-keys'
Revision: '5'
ABI: 'arm'
pid: 9665, tid: 9763, name: 1.ui  &gt;&gt;&gt; in.uneva.hms &lt;&lt;&lt;
signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
    r0 9487eb0c  r1 9487eb58  r2 ce4775ae  r3 00000008
    r4 5ac09eae  r5 5ad4a61e  r6 5ac09966  r7 ce4775ae
    r8 5b143bb6  r9 5b166be2  sl 5ac0854a  fp ce4775ae
    ip 00000000  sp 5ac0919e  lr 94fa1007  pc b151aa04  cpsr 600d0010
backtrace:
    #00 pc 00018a04  /system/lib/libc.so (sigsetjmp+112)
    #01 pc 0061a003  /data/app/in.uneva.hms-wPG63vR0t1-Z0fgTahXBBg==/lib/arm/libflutter.so
    #02 pc fffffffd  &lt;unknown&gt;
Lost connection to device.```
"><pre class="notranslate"><code class="notranslate">F/libc    ( 9665): Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 9763 (1.ui), pid 9665 
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
LineageOS Version: '15.1-20180623-NIGHTLY-j5lte'
Build fingerprint: 'samsung/lineage_j5lte/j5lte:8.1.0/OPM2.171026.006.C1/7ea606c2dc:userdebug/test-keys'
Revision: '5'
ABI: 'arm'
pid: 9665, tid: 9763, name: 1.ui  &gt;&gt;&gt; in.uneva.hms &lt;&lt;&lt;
signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
    r0 9487eb0c  r1 9487eb58  r2 ce4775ae  r3 00000008
    r4 5ac09eae  r5 5ad4a61e  r6 5ac09966  r7 ce4775ae
    r8 5b143bb6  r9 5b166be2  sl 5ac0854a  fp ce4775ae
    ip 00000000  sp 5ac0919e  lr 94fa1007  pc b151aa04  cpsr 600d0010
backtrace:
    #00 pc 00018a04  /system/lib/libc.so (sigsetjmp+112)
    #01 pc 0061a003  /data/app/in.uneva.hms-wPG63vR0t1-Z0fgTahXBBg==/lib/arm/libflutter.so
    #02 pc fffffffd  &lt;unknown&gt;
Lost connection to device.```

</code></pre></div>
<p dir="auto"><em>This issue was moved by <a href="https://github.com/devoncarew">devoncarew</a> from <a href="https://github.com/flutter/flutter-intellij/issues/2492" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter-intellij/issues/2492/hovercard">flutter/flutter-intellij#2492</a>.</em></p>