'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1568 pos 12: 'center.parent == this': is not true.  viewport.dart assertion fail when changing the first Sliver of a CustomScrollView

Steps to Reproduce

Run flutter create bug.
Update the files as follows:

Code & pubspec.yaml
main.dart
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => BlocProvider(
        create: (_) => SomeBloc(),
        child: MaterialApp(
          title: 'Bug',
          theme: ThemeData(
            primarySwatch: Colors.blue,
          ),
          home: SomeWidget(),
        ),
      );
}

class SomeWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Scaffold(
        body: NestedScrollView(
          headerSliverBuilder: (context, innerBoxScrolled) => [
            SliverAppBar(
              title: Text('bug'),
              pinned: true,
              actions: <Widget>[
                IconButton(
                  icon: Icon(Icons.add),
                  onPressed: () =>
                      BlocProvider.of<SomeBloc>(context).add(SomeEvent()),
                )
              ],
            )
          ],
          body: CustomScrollView(
            slivers: <Widget>[
              BlocBuilder<SomeBloc, SomeBaseBlocState>(
                builder: (context, state) {
                  if (state is InitState) {
                    return const SliverToBoxAdapter(
                      child: Center(
                        child: CircularProgressIndicator(),
                      ),
                    );
                  } else if (state is SomeOtherState) {
                    return const SliverPadding(
                      padding: EdgeInsets.all(20),
                      sliver: SliverToBoxAdapter(
                        child: Center(
                          child: Text('It breaks before rendering this'),
                        ),
                      ),
                    );
                  }

                  throw Exception('Should never get here');
                },
              ),
            ],
          ),
        ),
      );
}

abstract class SomeBaseBlocState extends Equatable {
  const SomeBaseBlocState();

  @override
  List<Object> get props => [];
}

class InitState extends SomeBaseBlocState {
  const InitState();
}

class SomeOtherState extends SomeBaseBlocState {
  const SomeOtherState();
}

class SomeEvent extends Equatable {
  const SomeEvent();

  @override
  List<Object> get props => [];
}

class SomeBloc extends Bloc<SomeEvent, SomeBaseBlocState> {
  SomeBloc();

  @override
  SomeBaseBlocState get initialState => const InitState();

  @override
  Stream<SomeBaseBlocState> mapEventToState(SomeEvent event) async* {
    if (event is SomeEvent) {
      yield SomeOtherState();
    }
  }
}

pubspec.yaml
name: bug
description: A new Flutter project.

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  equatable: 1.1.0
  bloc: ^3.0.0
  flutter_bloc: ^3.2.0

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Run the app and after it loads press the "+" button

Expected results: The "Hello world" should be rendered
Actual results: The app breaks

Logs

[  +23 ms] executing: [/home/andres/lib/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +30 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[        ] executing: [/home/andres/lib/flutter/] git describe --match v*.*.* --first-parent --long --tags
[   +6 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.9-0-gf139b1100
[   +6 ms] executing: [/home/andres/lib/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/andres/lib/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +44 ms] executing: [/home/andres/lib/flutter/] git rev-parse --abbrev-ref HEAD
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +84 ms] executing: /home/andres/Android/Sdk/platform-tools/adb devices -l
[  +11 ms] Exit code 0 from: /home/andres/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[  +35 ms] /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +51 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +183 ms] Generating /home/andres/dev/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +26 ms] ro.hardware = ranchu
[  +72 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[   +6 ms] executing: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[   +7 ms] Exit code 0 from: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +6 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +22 ms] Exit code 0 from: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           04-19 18:20:29.390 E/GnssHAL_GnssInterface( 1759): gnssSvStatusCb: b: input svInfo.flags is 8
[   +9 ms] executing: /home/andres/Android/Sdk/platform-tools/adb version
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 logcat -v time -T 04-19 18:20:29.390
[  +21 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as /home/andres/Android/Sdk/platform-tools/adb
[   +3 ms] executing: /home/andres/Android/Sdk/platform-tools/adb start-server
[  +20 ms] Building APK
Running Gradle task 'assembleDebug'...
[  +21 ms] gradle.properties already sets `android.enableR8`
[   +3 ms] Using gradle from /home/andres/dev/bug/android/gradlew.
[  +13 ms] executing: /home/andres/bin/android-studio/jre/bin/java -version
[  +89 ms] Exit code 0 from: /home/andres/bin/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
           OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[   +6 ms] executing: [/home/andres/dev/bug/android/] /home/andres/dev/bug/android/gradlew -q -Ptarget=/home/andres/dev/bug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+11241 ms] calculateSha: LocalDirectory: '/home/andres/dev/bug/build/app/outputs/apk'/app.apk
[  +54 ms] calculateSha: reading file took 53us
[ +443 ms] calculateSha: computing sha took 443us
[   +3 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[   +3 ms] executing: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[  +10 ms] Exit code 0 from: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +1 ms] Stopping app 'app.apk' on Android SDK built for x86.
[        ] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.bug
[ +123 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.bug
[ +257 ms] package:com.example.bug
[   +4 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.bug.sha1
[  +51 ms] 5055ca90d6ed89db5598509e4fe74d9f13cf7652
[        ] Installing APK.
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb version
[  +17 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as /home/andres/Android/Sdk/platform-tools/adb
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb start-server
Installing build/app/outputs/apk/app.apk...
[  +19 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 install -t -r /home/andres/dev/bug/build/app/outputs/apk/app.apk
[+1094 ms] Performing Streamed Install
           Success
[   +2 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell echo -n 4f74e697acc785d7b92994e6481fb53ce06f7426 > /data/local/tmp/sky.com.example.bug.sha1
[  +57 ms] Android SDK built for x86 startApp
[   +3 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true --ez start-paused true com.example.bug/com.example.bug.MainActivity
[ +427 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +349 ms] D/FlutterActivity( 4818): Using the launch theme as normal theme.
[   +2 ms] D/FlutterActivityAndFragmentDelegate( 4818): Setting up FlutterEngine.
[        ] D/FlutterActivityAndFragmentDelegate( 4818): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[ +756 ms] D/FlutterActivityAndFragmentDelegate( 4818): Attaching FlutterEngine to the Activity that owns this Fragment.
[  +27 ms] D/FlutterView( 4818): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@5c7e42c
[  +18 ms] D/FlutterActivityAndFragmentDelegate( 4818): Executing Dart entrypoint: main, and sending initial route: /
[ +277 ms] Observatory URL on device: http://<IP_ADDRESS>:44951/8jbidXBZDbs=/
[   +2 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:44951
[  +21 ms] 35431
[        ] Forwarded host port 35431 to device port 44951 for Observatory
[  +12 ms] Connecting to service protocol: http://<IP_ADDRESS>:35431/8jbidXBZDbs=/
[ +292 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:35431/8jbidXBZDbs=/
[   +2 ms] Sending to VM service: getVM({})
[  +48 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 4818, s...
[   +3 ms] Sending to VM service: getIsolate({isolateId: isolates/4388325196780623})
[   +4 ms] Sending to VM service: _flutter.listViews({})
[  +82 ms] Result: {type: Isolate, id: isolates/4388325196780623, name: main, number:<PHONE_NUMBER>780623, _originNumber:<PHONE_NUMBER>780623, startTime:<PHONE_NUMBER>660, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 2, avgCollectionPeriodMillis...
[  +11 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8932210, isolate: {type: @Isolate, fixedId: true, id: isolates/4388325196780623, name: main.dart$main-4388325196780623, number:<PHONE_NUMBER>780623}}]}
[   +5 ms] DevFS: Creating new filesystem on the device (null)
[   +1 ms] Sending to VM service: _createDevFS({fsName: bug})
[  +28 ms] Result: {type: FileSystem, name: bug, uri: file:///data/user/0/com.example.bug/code_cache/bugPZHTLW/bug/}
[        ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugPZHTLW/bug/)
[   +1 ms] Updating assets
Debug service listening on ws://<IP_ADDRESS>:35431/8jbidXBZDbs=/ws
Syncing files to device Android SDK built for x86...
[  +93 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +10 ms] /home/andres/lib/flutter/bin/cache/dart-sdk/bin/dart /home/andres/lib/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/andres/lib/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tool.PAVRYI/app.dill --packages /home/andres/dev/bug/.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
[  +15 ms] <- compile package:bug/main.dart
[+6017 ms] Updating files
[ +110 ms] DevFS: Sync finished
[   +1 ms] Synced 0.9MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8932210, isolate: {type: @Isolate, fixedId: true, id: isolates/4388325196780623, name: main.dart$main-4388325196780623, number:<PHONE_NUMBER>780623}}]}
[   +2 ms] <- accept
[        ] Connected to _flutterView/0xe8932210.
[ +900 ms] D/EGL_emulation( 4818): eglMakeCurrent: 0xd571a3c0: ver 2 0 (tinfo 0xd210e6e0)
[   +4 ms] D/eglCodecCommon( 4818): setVertexArrayObject: set vao to 0 (0) 1 0
[+2650 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/4388325196780623})
[   +6 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/4388325196780623})
[   +2 ms] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/4388325196780623})
[   +2 ms] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({enabled: false, isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/4388325196780623})
[   +4 ms] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({enabled: false, isolateId: isolates/4388325196780623})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/4388325196780623})
[   +7 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +9 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[  +43 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}

════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1491 pos 12: 'center.parent == this': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      RenderViewport.indexOfFirstChild (package:flutter/src/rendering/viewport.dart:1491:12)
#3      RenderViewportBase.debugDescribeChildren (package:flutter/src/rendering/viewport.dart:794:17)
#4      DiagnosticableTreeNode.getChildren (package:flutter/src/foundation/diagnostics.dart:2946:20)
#5      DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1543:30)
#6      DiagnosticsNode.toJsonList.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:1605:19)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/box.dart': Failed assertion: line 1698 pos 18: 'debugDoingThisResize || debugDoingThisLayout ||
                 (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      RenderBox.size.<anonymous closure> (package:flutter/src/rendering/box.dart:1698:18)
#3      RenderBox.size (package:flutter/src/rendering/box.dart:1704:6)
#4      RenderBox.paintBounds (package:flutter/src/rendering/box.dart:2281:41)
#5      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:134:58)
#6      PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:95:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

Analyzing bug...
No issues found! (ran in 2.4s)

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)
    • Flutter version 1.12.13+hotfix.9 at /home/andres/lib/flutter
    • Framework revision f139b11009 (3 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/andres/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /home/andres/bin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[!] Android Studio (version 3.5)
    • Android Studio at /home/andres/bin/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /home/andres/bin/idea-IU-193.6015.39
    • Flutter plugin version 45.1.2
    • Dart plugin version 193.6911.31

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 2 categories.

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-dev.5.0, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-dev.5.0 at /Users/taha/Code/flutter_dev
    • Framework revision 7f56b53de4 (8 days ago), 2020-04-12 12:00:01 -0400
    • Engine revision beb8a7ec48
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 89b0f67261)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • Android SDK built for x86 • emulator-5554 • android-x86    • Android 10
      (API 29) (emulator)
    • macOS                     • macOS         • darwin-x64     • Mac OS X
      10.15.4 19E287
    • Chrome                    • chrome        • web-javascript • Google Chrome
      81.0.4044.113
    • Web Server                • web-server    • web-javascript • Flutter Tools
• No issues found!

@andresemartinez Any chance you can reduce the code sample further and remove the bloc and equatable library? Or does this error only happen in combination with those libraries?

I managed to reproduce it with a FutureBuilder, does it help? I tried using a StatefullWidget and setState to change de sliver but that works fine, i thing the problem is with builders in general.
main.dart
import 'dart:async';

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) =>
      MaterialApp(
        title: 'Bug',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: SomeWidget(),
      );
}

class SomeWidget extends StatelessWidget {

  final Completer _completer = new Completer();
  final List<Widget> _slivers = [
    const SliverToBoxAdapter(
      child: Center(
        child: CircularProgressIndicator(),
      ),
    ),
    const SliverPadding(
      padding: EdgeInsets.all(20),
      sliver: SliverToBoxAdapter(
        child: Center(
          child: Text('It breaks before rendering this'),
        ),
      ),
    ),
  ];

  @override
  Widget build(BuildContext context) =>
      Scaffold(
        body: NestedScrollView(
          headerSliverBuilder: (context, innerBoxScrolled) =>
          [
            SliverAppBar(
              title: Text('bug'),
              pinned: true,
              actions: <Widget>[
                IconButton(
                  icon: Icon(Icons.add),
                  onPressed: () => _completer.complete(1),
                )
              ],
            )
          ],
          body: CustomScrollView(
            slivers: <Widget>[
              FutureBuilder(
                future: _completer.future,
                initialData: 0,
                builder: (context, snapshot) => _slivers[snapshot.data],
              ),
            ],
          ),
        ),
      );
}

log
[  +38 ms] executing: [/home/andres/lib/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +42 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[        ] executing: [/home/andres/lib/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +10 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.9-0-gf139b1100
[   +9 ms] executing: [/home/andres/lib/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/andres/lib/flutter/] git ls-remote --get-url origin
[   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +65 ms] executing: [/home/andres/lib/flutter/] git rev-parse --abbrev-ref HEAD
[  +15 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +151 ms] executing: /home/andres/Android/Sdk/platform-tools/adb devices -l
[  +12 ms] Exit code 0 from: /home/andres/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[  +40 ms] /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +46 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +269 ms] Generating /home/andres/dev/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +27 ms] ro.hardware = ranchu
[  +68 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[   +8 ms] executing: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[   +9 ms] Exit code 0 from: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +9 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +22 ms] Exit code 0 from: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           04-22 19:24:58.665 E/GnssHAL_GnssInterface( 1759): gnssSvStatusCb: b: input svInfo.flags is 8
[   +6 ms] executing: /home/andres/Android/Sdk/platform-tools/adb version
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 logcat -v time -T 04-22 19:24:58.665
[  +22 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as /home/andres/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/andres/Android/Sdk/platform-tools/adb start-server
[  +33 ms] Building APK
Running Gradle task 'assembleDebug'...
[ +104 ms] gradle.properties already sets `android.enableR8`
[   +9 ms] Using gradle from /home/andres/dev/bug/android/gradlew.
[  +24 ms] executing: /home/andres/bin/android-studio/jre/bin/java -version
[ +140 ms] Exit code 0 from: /home/andres/bin/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
           OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[   +7 ms] executing: [/home/andres/dev/bug/android/] /home/andres/dev/bug/android/gradlew -q -Ptarget=/home/andres/dev/bug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+2854 ms] Invalid depfile: /home/andres/dev/bug/.dart_tool/flutter_build/81426614ab9ca6294d3b826afb92a549/kernel_snapshot.d
[   +1 ms] Invalid depfile: /home/andres/dev/bug/.dart_tool/flutter_build/81426614ab9ca6294d3b826afb92a549/kernel_snapshot.d
[+9849 ms] calculateSha: LocalDirectory: '/home/andres/dev/bug/build/app/outputs/apk'/app.apk
[  +63 ms] calculateSha: reading file took 59us
[ +490 ms] calculateSha: computing sha took 489us
[   +3 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[   +3 ms] executing: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[   +9 ms] Exit code 0 from: /home/andres/Android/Sdk/build-tools/29.0.2/aapt dump xmltree /home/andres/dev/bug/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +1 ms] Stopping app 'app.apk' on Android SDK built for x86.
[        ] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.bug
[  +51 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.bug
[  +55 ms] package:com.example.bug
[   +3 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.bug.sha1
[  +48 ms] 2bd2d943f3f675361b4cfe09faf246030cb8222b
[        ] Installing APK.
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb version
[  +12 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as /home/andres/Android/Sdk/platform-tools/adb
[        ] executing: /home/andres/Android/Sdk/platform-tools/adb start-server
Installing build/app/outputs/apk/app.apk...
[  +12 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 install -t -r /home/andres/dev/bug/build/app/outputs/apk/app.apk
[+1125 ms] Performing Streamed Install
           Success
[   +2 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell echo -n dc15941468a940f4c03c1ceb6d163787c70204a5 > /data/local/tmp/sky.com.example.bug.sha1
[  +90 ms] Android SDK built for x86 startApp
[   +2 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true --ez start-paused true com.example.bug/com.example.bug.MainActivity
[ +303 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +548 ms] D/FlutterActivity( 7235): Using the launch theme as normal theme.
[   +8 ms] D/FlutterActivityAndFragmentDelegate( 7235): Setting up FlutterEngine.
[        ] D/FlutterActivityAndFragmentDelegate( 7235): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[+2774 ms] Observatory URL on device: http://<IP_ADDRESS>:40041/llKEgSzH3tc=/
[   +1 ms] executing: /home/andres/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:40041
[  +19 ms] 43643
[        ] Forwarded host port 43643 to device port 40041 for Observatory
[  +13 ms] Connecting to service protocol: http://<IP_ADDRESS>:43643/llKEgSzH3tc=/
[ +390 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:43643/llKEgSzH3tc=/
[   +5 ms] Sending to VM service: getVM({})
[  +10 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +8 ms] Sending to VM service: _flutter.listViews({})
[   +5 ms] Result: {type: FlutterViewList, views: []}
[  +53 ms] Sending to VM service: getVM({})
[   +6 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +3 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +4 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +4 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[        ] Flutter is taking longer than expected to report its views. Still trying...
[  +50 ms] Sending to VM service: getVM({})
[   +5 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[  +14 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +2 ms] Sending to VM service: _flutter.listViews({})
[  +54 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +3 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[  +44 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +5 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +8 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +9 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +8 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[  +11 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +1 ms] Sending to VM service: _flutter.listViews({})
[  +55 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +3 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +5 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[  +14 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +1 ms] Sending to VM service: _flutter.listViews({})
[  +15 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +2 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +9 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +5 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +5 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[  +12 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +6 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +4 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[  +47 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +2 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +2 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +50 ms] Sending to VM service: getVM({})
[   +2 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +2 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[   +3 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[        ] Sending to VM service: _flutter.listViews({})
[   +2 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[  +10 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Android virtual processor, operatingSystem: android, targetCPU: ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7235, s...
[   +1 ms] Sending to VM service: getIsolate({isolateId: isolates/633111511413675})
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +6 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8932210, isolate: {type: @Isolate, fixedId: true, id: isolates/633111511413675, name: main.dart$main-633111511413675, number:<PHONE_NUMBER>13675}}]}
[   +5 ms] DevFS: Creating new filesystem on the device (null)
[        ] Sending to VM service: _createDevFS({fsName: bug})
[  +10 ms] D/FlutterActivityAndFragmentDelegate( 7235): Attaching FlutterEngine to the Activity that owns this Fragment.
[  +17 ms] Result: {type: Isolate, id: isolates/633111511413675, name: main, number:<PHONE_NUMBER>13675, _originNumber:<PHONE_NUMBER>13675, startTime:<PHONE_NUMBER>057, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 1, avgCollectionPeriodMillis: 7...
[  +11 ms] D/FlutterView( 7235): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@5c7e42c
[   +8 ms] W/com.example.bu( 7235): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist, reflection, allowed)
[        ] W/com.example.bu( 7235): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed)
[        ] W/com.example.bu( 7235): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection, allowed)
[        ] W/com.example.bu( 7235): Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed)
[  +17 ms] Result: {type: FileSystem, name: bug, uri: file:///data/user/0/com.example.bug/code_cache/bugOUQMOT/bug/}
[        ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugOUQMOT/bug/)
[   +2 ms] Updating assets
Debug service listening on ws://<IP_ADDRESS>:43643/llKEgSzH3tc=/ws
Syncing files to device Android SDK built for x86...
[ +143 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +9 ms] /home/andres/lib/flutter/bin/cache/dart-sdk/bin/dart /home/andres/lib/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/andres/lib/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tool.AOFUVW/app.dill --packages /home/andres/dev/bug/.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
[        ] D/FlutterActivityAndFragmentDelegate( 7235): Executing Dart entrypoint: main, and sending initial route: /
[        ] D/HostConnection( 7235): HostConnection::get() New Host Connection established 0xdd7dedd0, tid 7261
[        ] D/HostConnection( 7235): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
[        ] W/OpenGLRenderer( 7235): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
[        ] D/eglCodecCommon( 7235): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 7235): eglCreateContext: 0xe897fd00: maj 2 min 0 rcv 2
[        ] D/EGL_emulation( 7235): eglMakeCurrent: 0xe897fd00: ver 2 0 (tinfo 0xe89ca510)
[        ] D/HostConnection( 7235): HostConnection::get() New Host Connection established 0xbaa1a370, tid 7302
[        ] D/HostConnection( 7235): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
[        ] D/eglCodecCommon( 7235): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 7235): eglCreateContext: 0xe897f6a0: maj 2 min 0 rcv 2
[        ] W/Gralloc3( 7235): mapper 3.x is not supported
[        ] D/HostConnection( 7235): createUnique: call
[        ] D/HostConnection( 7235): createUnique: call
[        ] D/HostConnection( 7235): HostConnection::get() New Host Connection established 0xd20e99e0, tid 7261
[        ] D/HostConnection( 7235): HostConnection::get() New Host Connection established 0xbaa1a320, tid 7302
[        ] D/HostConnection( 7235): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
[        ] D/eglCodecCommon( 7235): allocate: Ask for block of size 0x1000
[        ] D/eglCodecCommon( 7235): allocate: ioctl allocate returned offset 0x3ffff2000 size 0x2000
[        ] D/HostConnection( 7235): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
[        ] D/EGL_emulation( 7235): eglMakeCurrent: 0xe897f6a0: ver 2 0 (tinfo 0xdd777ca0)
[  +11 ms] <- compile package:bug/main.dart
[ +202 ms] D/EGL_emulation( 7235): eglMakeCurrent: 0xe897fd00: ver 2 0 (tinfo 0xe89ca510)
[  +13 ms] D/eglCodecCommon( 7235): setVertexArrayObject: set vao to 0 (0) 1 0
[+5813 ms] Updating files
[ +136 ms] DevFS: Sync finished
[   +1 ms] Synced 0.9MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[  +11 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8932210, isolate: {type: @Isolate, fixedId: true, id: isolates/633111511413675, name: main.dart$main-633111511413675, number:<PHONE_NUMBER>13675}}]}
[        ] <- accept
[        ] Connected to _flutterView/0xe8932210.
[ +564 ms] D/EGL_emulation( 7235): eglMakeCurrent: 0xe897f6a0: ver 2 0 (tinfo 0xdd777ca0)
[        ] D/eglCodecCommon( 7235): setVertexArrayObject: set vao to 0 (0) 1 0
[+1130 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({enabled: false, isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/633111511413675})
[        ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({enabled: false, isolateId: isolates/633111511413675})
[  +21 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride}
[   +4 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow}
[   +5 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner}
[   +6 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[        ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets}
[   +1 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}
[   +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets}

════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1491 pos 12: 'center.parent == this': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      RenderViewport.indexOfFirstChild (package:flutter/src/rendering/viewport.dart:1491:12)
#3      RenderViewportBase.debugDescribeChildren (package:flutter/src/rendering/viewport.dart:794:17)
#4      DiagnosticableTreeNode.getChildren (package:flutter/src/foundation/diagnostics.dart:2946:20)
#5      DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1543:30)
#6      DiagnosticsNode.toJsonList.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:1605:19)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/box.dart': Failed assertion: line 1698 pos 18: 'debugDoingThisResize || debugDoingThisLayout ||
                 (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      RenderBox.size.<anonymous closure> (package:flutter/src/rendering/box.dart:1698:18)
#3      RenderBox.size (package:flutter/src/rendering/box.dart:1704:6)
#4      RenderBox.paintBounds (package:flutter/src/rendering/box.dart:2281:41)
#5      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:134:58)
#6      PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:95:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

This looks to be caused by the SliverPadding widget.
For now, I think I've found a workaround. Instead of wrapping the SliverToBoxAdapter in a SliverPadding, try using a Padding widget inside of the SliverToBoxAdapter.
From:
const SliverPadding(
  padding: EdgeInsets.all(20),
  sliver: SliverToBoxAdapter(
    child: Center(
      child: Text('It breaks before rendering this'),
     ),
  ),
);

To:
const SliverToBoxAdapter(
  child: Center(
    child: Padding(
      padding: EdgeInsets.all(20),
      child: Text('It breaks before rendering this'),
    ),
  ),
);

I have the same problem like this. but only when using SliverGrid with  FutureBuilder, BlocBuilder or its kind. Is this limitation from SliverGrid or a Bug ?

I've found the solution,
Change from this:
body: CustomScrollView(
            slivers: <Widget>[
              BlocBuilder<SomeBloc, SomeBaseBlocState>(
                builder: (context, state) {
                  if (state is InitState) {
                    return const SliverToBoxAdapter(
                      child: Center(
                        child: CircularProgressIndicator(),
                      ),
                    );
                  } else if (state is SomeOtherState) {
                    return const SliverPadding(
                      padding: EdgeInsets.all(20),
                      sliver: SliverToBoxAdapter(
                        child: Center(
                          child: Text('It breaks before rendering this'),
                        ),
                      ),
                    );
                  }

                  throw Exception('Should never get here');
                },
              ),
            ],
          ),
        ),

To this:
body: CustomScrollView(
    slivers: <Widget>[
        BlocBuilder<SomeBloc, SomeBaseBlocState>(
        builder: (context, state) {
        return const SliverToBoxAdapter(
            child: state is InitState?YourWidget(): state is SomeOtherState? OtherWidget(): MoreWidget(),
        );
        },
        ),
    ],
),

The problem is because your blocBuilder needed some time to return sliver while Compare the states. You can compare the states and return dynamic widget inside the sliver. Just let the sliver return immediately to the parent. CMIIW

This looks to be caused by the SliverPadding widget.
For now, I think I've found a workaround. Instead of wrapping the SliverToBoxAdapter in a SliverPadding, try using a Padding widget inside of the SliverToBoxAdapter.
From:
const SliverPadding(
  padding: EdgeInsets.all(20),
  sliver: SliverToBoxAdapter(
    child: Center(
      child: Text('It breaks before rendering this'),
     ),
  ),
);

To:
const SliverToBoxAdapter(
  child: Center(
    child: Padding(
      padding: EdgeInsets.all(20),
      child: Text('It breaks before rendering this'),
    ),
  ),
);

Thanks a lot! That works for me. Is it generally preferable to use padding inside the SliverToBoxAdapter? Or just for this case?

state
i really had hard time debugging this. i tried all possible way to render slverGrid but nothing worked then randomly i added sliverList above the sliverGrid widget and this trick worked. i don't know how and why but this gave me a big relief as i have explored all the possible solution.
this is code snippet i tried :-

`@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => _dashboardBloc,
child: BlocBuilder<DashboardBloc, DashboardState>(
bloc: _dashboardBloc,
builder: (context, state) {
if (state is DashboardLoadingState) {
return _loading();
} else if (state is DashboardErrorState) {
return _error();
} else if (state is StoresLoadedState) {
return _buildPopularRestaurant(state.storeModels);
} else {
return _error();
}
      }),
);

}
Widget _loading() {
return SliverToBoxAdapter(
child: Text("loading"),
);
}
Widget _error() {
return SliverToBoxAdapter(
child: Text("error"),
);
}
Widget _buildPopularRestaurant(List stores) {
double cardWidth = MediaQuery.of(context).size.width / 3.3;
double cardHeight = MediaQuery.of(context).size.height / 3.6;

return SliverGrid(
  gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent(
    maxCrossAxisExtent: 200.0,
    mainAxisSpacing: 10.0,
    crossAxisSpacing: 10.0,
    childAspectRatio: cardWidth / cardHeight,
  ),
  delegate: SliverChildBuilderDelegate(
    (BuildContext context, int index) {
      return Padding(
        padding: const EdgeInsets.all(10),
        child: Container(
          height: 200,
          alignment: Alignment.center,
          color: Colors.teal[100 * (index % 9)],
          child: Text(stores[index].name),
        ),
      );
    },
    childCount: stores.length,
  ),
);

}
CustomScrollView(
slivers: [
SliverList(
delegate: SliverChildListDelegate([ ])),
Stores(), // this is my statefullwidget class which renders list of data using blocBuilder
],
),`

Here is my minimum reproducible example. Tried on stable (v1.17.5) and master (1.21.0-6.0.pre.17)
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Test Sliver'),
      ),
      body: CustomScrollView(
        slivers: <Widget>[
          BodyContent(),
        ],
      ),
    );
  }
}

class BodyContent extends StatefulWidget {
  @override
  BodyContentState createState() => BodyContentState();
}

class BodyContentState extends State<BodyContent> {
  bool useList = false;

  @override
  Widget build(BuildContext context) {
    if (useList) {
      return SliverList(
        delegate: SliverChildListDelegate(
          <Widget>[
            ListTile(
              title: Text('Using SliverList'),
              subtitle: Text('Tap to use SliverToBoxAdapter'),
              onTap: () => setState(() => useList = false),
            ),
          ],
        ),
      );
    } else {
      return SliverToBoxAdapter(
        child: ListTile(
          title: Text('Using SliverToBoxAdapter'),
          subtitle: Text('Tap to use SliverList'),
          onTap: () => setState(() => useList = true),
        ),
      );
    }
  }
}

If the sliver being replaced is not the first, it seems working fine. E.g. if we add
SliverToBoxAdapter(
  child: ListTile(
    title: Text('Header'),
  ),
),

before BodyContent() in the code above. This can be used as workaround (replacing sliver's child with SizedBox.shrink())

Also if CustomScrollView is rebuilt, all works fine. E.g. if we lift up the state from BodyContent to MyHomePage and pass it to BodyContent through constructor.
But then, if we use some state management approach like redux or provider to optimize things and rebuild only the sliver instead of the whole CustomScrollView, the exception will be back. Example

Same on stable 1.20.0

Same issue but also got solved by @PiN73 s solution 😁

Reproducible on latest master channel.
Logs
Performing hot restart...
Syncing files to device iPhone 12 Pro...
Restarted application in 1,166ms.

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1693 pos 12: 'center!.parent == this': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderViewport.indexOfFirstChild (package:flutter/src/rendering/viewport.dart:1693:12)
#3      RenderViewportBase.debugDescribeChildren (package:flutter/src/rendering/viewport.dart:965:17)
#4      DiagnosticableTreeNode.getChildren (package:flutter/src/foundation/diagnostics.dart:2994:48)
#5      DiagnosticsNode.toJsonMap.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:1566:32)
#6      DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1607:6)
...
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1930 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
              (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderBox.size.<anonymous closure> (package:flutter/src/rendering/box.dart:1930:13)
#3      RenderBox.size (package:flutter/src/rendering/box.dart:1943:6)
#4      RenderBox.paintBounds (package:flutter/src/rendering/box.dart:2560:41)
#5      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:139:59)
#6      PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:100:5)
...
====================================================================================================

======== Exception caught by scheduler library =====================================================
Updated layout information required for RenderViewport#5d859 NEEDS-LAYOUT to calculate semantics.
'package:flutter/src/rendering/object.dart':
Failed assertion: line 2651 pos 12: '!_needsLayout'
====================================================================================================

flutter doctor
[✓] Flutter (Channel master, 1.26.0-2.0.pre.64, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.26.0-2.0.pre.64 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 9ff4326e1f (7 hours ago), 2020-12-17 06:19:05 +0000
    • Engine revision 6edb402ee4
    • Dart version 2.12.0 (build 2.12.0-157.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.5
    • Dart plugin version 203.5981.152

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 1EEFA5B2-DA95-49CC-AA0B-968BB248B8F3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
Process finished with exit code 0

Having the same issue when using SliverAppBar inside NestedScrollView  on a page which is popped by Navigator, when you try to change SliverAppBar's  floating property dynamically e.g. using Provider. The workaround is to not change SliverAppBar's  floating property dynamically. Not any easy thing to find the root cause when flutter exception doesn't guide you to the real cause
Here is the log

======== Exception caught by scheduler library
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1683 pos 12: 'center!.parent == this': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      RenderViewport.indexOfFirstChild (package:flutter/src/rendering/viewport.dart:1683:12)
#3      RenderViewportBase.debugDescribeChildren (package:flutter/src/rendering/viewport.dart:955:17)
#4      DiagnosticableTreeNode.getChildren (package:flutter/src/foundation/diagnostics.dart:2994:48)
#5      DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1565:32)
#6      DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1606:6)
...
======== Exception caught by scheduler library
The following assertion was thrown during a scheduler callback:
RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1792 pos 13: 'debugDoingThisResize || debugDoingThisLayout ||
(RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      RenderBox.size. (package:flutter/src/rendering/box.dart:1792:13)
#3      RenderBox.size (package:flutter/src/rendering/box.dart:1805:6)
#4      RenderBox.paintBounds (package:flutter/src/rendering/box.dart:2389:41)
#5      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:139:59)
#6      PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:100:5)
...
======== Exception caught by widgets library
'package:flutter/src/rendering/object.dart': Failed assertion: line 1530 pos 12: '_debugCanPerformMutations': is not true.
The relevant error-causing widget was:
ListView
======== Exception caught by widgets library
'package:flutter/src/widgets/sliver.dart': Failed assertion: line 1278 pos 12: '_currentlyUpdatingChildIndex == slot': is not true.
The relevant error-causing widget was:
ListView

Flutter doctor
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Android Studio (version 4.1.0)
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)

Having the same issue when using SliverAppBar inside NestedScrollView  on a page which is popped by Navigator, when you try to change SliverAppBar's  floating property dynamically e.g. using Provider. The workaround is to not change SliverAppBar's  floating property dynamically. Not any easy thing to find the root cause when flutter exception doesn't guide you to the real cause
Here is the log

======== Exception caught by scheduler library
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1683 pos 12: 'center!.parent == this': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      RenderViewport.indexOfFirstChild (package:flutter/src/rendering/viewport.dart:1683:12)
#3      RenderViewportBase.debugDescribeChildren (package:flutter/src/rendering/viewport.dart:955:17)
#4      DiagnosticableTreeNode.getChildren (package:flutter/src/foundation/diagnostics.dart:2994:48)
#5      DiagnosticsNode.toJsonMap. (package:flutter/src/foundation/diagnostics.dart:1565:32)
#6      DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1606:6)
...
======== Exception caught by scheduler library
The following assertion was thrown during a scheduler callback:
RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1792 pos 13: 'debugDoingThisResize || debugDoingThisLayout ||
(RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      RenderBox.size. (package:flutter/src/rendering/box.dart:1792:13)
#3      RenderBox.size (package:flutter/src/rendering/box.dart:1805:6)
#4      RenderBox.paintBounds (package:flutter/src/rendering/box.dart:2389:41)
#5      PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:139:59)
#6      PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:100:5)
...
======== Exception caught by widgets library
'package:flutter/src/rendering/object.dart': Failed assertion: line 1530 pos 12: '_debugCanPerformMutations': is not true.
The relevant error-causing widget was:
ListView
======== Exception caught by widgets library
'package:flutter/src/widgets/sliver.dart': Failed assertion: line 1278 pos 12: '_currentlyUpdatingChildIndex == slot': is not true.
The relevant error-causing widget was:
ListView

Flutter doctor
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Android Studio (version 4.1.0)
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)

If the sliver being replaced is not the first, it seems working fine. E.g. if we add
SliverToBoxAdapter(
  child: ListTile(
    title: Text('Header'),
  ),
),

before BodyContent() in the code above.
So possible workaround is to add empty SliverToBoxAdapter() as first sliver

This seems to be a great temporary fix. Spend few hours of time to read this comment.

If the sliver being replaced is not the first, it seems working fine. E.g. if we add
SliverToBoxAdapter(
  child: ListTile(
    title: Text('Header'),
  ),
),

before BodyContent() in the code above.
So possible workaround is to add empty SliverToBoxAdapter() as first sliver

This seems to be a great temporary fix. Spend few hours of time to read this comment.

Any update from flutter team?
In fact the workaround seems to fix the error
CustomScrollView(
  slivers: [
    SliverToBoxAdapter(), // Bug fix: https://github.com/flutter/flutter/issues/55170
    StreamBuilder<List<User>>([...])
  ]
)

flutter doctor
[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
• Flutter version 2.0.4 at C:\src\flutter
• Framework revision b1395592de (2 weeks ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2

Same issue here. It's really strange. When using a SliverToBoxAdapter as the first widget within the CustomScrollView, it's working. But when the first one is a BlocBuilder with Sliver within the builder it's not working.

Yes, @DFelten, adding Empty SliverToBoxAdapter() does the work, but I think as @ariefwijaya explained, the issue is in the comparison which results in a late response. Although if we do consider that as an issue, then why just adding the SliverToBoxAdapter() at the top does the work.

That's unfortunately not working when using SliverLists and SliverToBoxAdapter together (Loading and result). Then a SliverToBoxAdapter is not the correct top level widget.

Column(
        children: [
          Container(),
          Expanded(child: CustomScrollView(
            slivers: [
              SliverToBoxAdapter(),
              BlocConsumer(builder: builder, listener: listener)
            ],
          ))
        ],
      ),

This code seems to do the work. The BlocConsumer() is able to return SliverList without any error.

This bug will be fixed by 96377


Implement Series.pct_change() in a new style

Hello @Rubtsowa! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file hpat/datatypes/hpat_pandas_series_functions.py:

Line 2160:1: E302 expected 2 blank lines, found 1
Line 2161:80: E501 line too long (93 > 79 characters)
Line 2169:80: E501 line too long (93 > 79 characters)
Line 2170:80: E501 line too long (97 > 79 characters)
Line 2192:80: E501 line too long (93 > 79 characters)
Line 2196:80: E501 line too long (128 > 79 characters)
Line 2200:80: E501 line too long (111 > 79 characters)
Line 2202:80: E501 line too long (98 > 79 characters)
Line 2204:80: E501 line too long (122 > 79 characters)
Line 2206:80: E501 line too long (102 > 79 characters)
Line 2212:80: E501 line too long (86 > 79 characters)
Line 2221:80: E501 line too long (96 > 79 characters)
Line 2224:80: E501 line too long (85 > 79 characters)
Line 2226:80: E501 line too long (113 > 79 characters)
Line 2234:80: E501 line too long (137 > 79 characters)
Line 2242:1: W391 blank line at end of file

In the file hpat/tests/test_series.py:

Line 2616:5: E303 too many blank lines (2)
Line 2626:80: E501 line too long (82 > 79 characters)
Line 2635:80: E501 line too long (80 > 79 characters)
Line 2655:80: E501 line too long (92 > 79 characters)
Line 2657:33: E251 unexpected spaces around keyword / parameter equals
Line 2657:35: E251 unexpected spaces around keyword / parameter equals
Line 2664:80: E501 line too long (92 > 79 characters)
Line 2666:24: E231 missing whitespace after ','
Line 2666:32: E251 unexpected spaces around keyword / parameter equals
Line 2666:34: E251 unexpected spaces around keyword / parameter equals
Line 2666:49: E251 unexpected spaces around keyword / parameter equals
Line 2666:51: E251 unexpected spaces around keyword / parameter equals
Line 2673:80: E501 line too long (92 > 79 characters)
Line 2675:24: E231 missing whitespace after ','
Line 2675:32: E251 unexpected spaces around keyword / parameter equals
Line 2675:34: E251 unexpected spaces around keyword / parameter equals
Line 2675:49: E251 unexpected spaces around keyword / parameter equals
Line 2675:51: E251 unexpected spaces around keyword / parameter equals

@Rubtsowa could you please push each new change in new commit to be able to see difference between commits?

======================================================================
FAIL: test_series_pct_change_str (hpat.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda3/envs/sdc-test-env-py3.7-numpy1.16/conda-bld/hpat_1573397658623/_test_e/lib/python3.7/site-packages/hpat/tests/test_series.py", line 3834, in test_series_pct_change_str
    self.assertIn(msg, str(raises.exception))
AssertionError: 'Method pct_change(). The function only applies to elements that are all numeric. Given data type: unicode_type' not found in 'Failed in nopython mode pipeline

/AzurePipelines run


Early kernel boot debugging?

Hi, we would like to use a custom built kernel for our enclaves, however we're bumping into issues during boot, it seems init doesn't reach the enclave_ready() call, and the nitro-cli run-enclave doesn't return as it does for enclaves built with the official kernel. Consequently we cannot even attach the console to the enclave to look at kernel logs.
One of the reasons we'd like to use our own kernel is to strip down the kernel config, and most probably our kernel is too minimal at this point for nitro usage. We have tested our kernel+initrd with qemu and it works well, so there must be something nitro-specific that's failing (we have configured MMIO-based virtio as well).
We are unsure how to proceed with the debugging, aside from slowly enabling all kernel features that the official nitro kernel has (although we're using a 5.16 kernel, so there are some inherent differences). Is there any way we can attach to the serial without the nitro-cli console invocation so we can see kernel messages before the enclave_ready() heartbeat?
I have attached our kernel config just in case (this is not the fully stripped down version, contains debugging features): config.txt

For early boot debugging, we recently merged https://github.com/aws/aws-nitro-enclaves-cli/pull/340, although it's not released yet as part of the aws-nitro-enclaves-cli package.

For early boot debugging, we recently merged #340, although it's not released yet as part of the aws-nitro-enclaves-cli package.

Thank you, this seems useful in general, however this also requires the guest to ping CID 3 before the attach, the EnclaveRunInfo is not returned before that. The failure we're trying to debug happens before this call:
https://github.com/aws/aws-nitro-enclaves-sdk-bootstrap/blob/746ec5d2713e539b94e651601b5c24ec1247c955/init/init.c#L410

Ah, I misunderstood the issue slightly. Yes, it's currently possible to do early-boot debugging, but it requires an external program:
I use the following console.py program:
#!/usr/bin/env python3

import os
import socket
import sys

cid = int(os.environ['ENCLAVE_CID'])
s = socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM)
s.connect((0, 10000 + cid))

while True:
    cons_out = s.recv(256)
    if len(cons_out) == 0:
        break
    sys.stdout.buffer.write(cons_out)
    sys.stdout.buffer.flush()

s.close()

The I just run in one terminal:
nitro-cli run-enclave --eif-path /tmp/hello.eif --debug-mode --cpu-count 2 --memory 256 --enclave-cid 42

And in another:
ENCLAVE_CID=42 ./console.py

Thank you, this looks nice! However I'm getting a timeout on the vsock connection, I think the kernel is just crashing too early..
On the bright side, with make oldconfig I managed to make the VM work with a custom build kernel using the blobs/ bzImage.config options, so now it's just a matter of figuring out which options were missing for a correct boot. I'll post the config here when I figure it out in case someone needs it

The missing config option was CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES. So to fully enable nitro-compatible vsock virtio:
      ./scripts/config --enable CONFIG_VIRTIO_MMIO
      ./scripts/config --enable CONFIG_VIRTIO_MENU
      ./scripts/config --enable CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES
      ./scripts/config --enable CONFIG_NET
      ./scripts/config --enable CONFIG_VSOCKETS
      ./scripts/config --enable CONFIG_VIRTIO_VSOCKETS

We're still bumping into an issue with the initramfs (a mysterious compression error which doesn't appear in QEMU), but the console is now working! Here's the config.txt
Thank you!

How does the compression error manifest?

It's possible that there's not enough memory space to decompress the second initramfs image. The first one, containing just the init and configuration files is very tiny.

The custom build is actually smaller than the one using bzImage.config (the small one uses ~half of the kernel options, making the kernel several MB smaller), the initramfs is the same size (~260M), and the VM is started with 8G RAM. So I don't think it's a memory issue. But anyway, all this is speculation, I'll return to this when we have more time to debug. The original issue with the kernel logging is solved so I'll close the ticket, I'll open another one for the initramfs issue if it turns out to be related to nitro. Thank you for the help!


How to disable scrollbar in preferencescreen?

Seeing demo code on https://github.com/codepath/android_guides/wiki/Settings-with-PreferenceFragment
I wonder how to disable scrollbar when there are a lot of items in preference screen. There is vertical scrollbar appear and I want preference screen to be able to scroll but don't want to show the scrollbar.
Is there any property like android:scrollbars="none" or any programmatically code work for this? thank.

I solved the problem with following code:
   @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        this.view = view;

        //Disable scrollbar
        ListView listView = (ListView)view.findViewById(android.R.id.list);
        if (listView != null) listView.setVerticalScrollBarEnabled(false);
    }