Update Poland holidays: fix Ascension Day

Proposed change

Update Poland holidays: fix Ascension Day (40th day after Easter, not +40 days).
Type of change

[ ] New country/market holidays support (thank you!)
[x] Supported country/market holidays update (calendar discrepancy fix, localization)
[ ] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency update (version deprecation/upgrade)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] I've run make pre-commit, it didn't generate any changes
[x] I've run make test, all tests passed locally

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
10967

Relevant Lines:
10967

💛  - Coveralls


Wiki page for Expression-2 is a mess

I set out to make a very small change in the formatting of the section for #include (since it wasn't clear that the # is part of it), which led to the page taking too long to render "in production" (despite having rendered in the preview) and my account being flagged (I think this has been cleared up with staff, but I do know it was a result of editing the page).
Given that the servers can't render the page now, despite the change both being small and only utilizing source elements that were already present (# and  tags), and being valid Wiki markup (as evidenced by the local preview, albeit the preview has render issues of its own), I believe there's probably some greater issue in the page itself.

Servers caught up, and I've concluded that MediaWiki makes little to no sense here on Github, looking at the page render of the examples. I might try a recode of the current page in Markdown, but I'd want other opinions on it first.

We've been talking about splitting it up into multiple smaller pages, but no one has taken the time to do it

Might this be helpful; mediawiki-to-markdown.

Can we pretty please use reStructuredText instead of Markdown? (The tool @CaptainPRICE links does support it.)
http://zverovich.net/2016/06/16/rst-vs-markdown.html
http://ericholscher.com/blog/2016/mar/15/dont-use-markdown-for-technical-docs/
http://eli.thegreenplace.net/2017/restructuredtext-vs-markdown-for-technical-documentation/

Keep in mind that the more "exotic" the language used, the less likely someone is to edit the page.

Markdown works just fine.  It does not really have to do any really complicated stuff. I have been touching it a bit on the wiki to make it better.

For expression2 we at least have the e2helper, could we not do what expadv has done and have a function that outputs formatted markdown automatically from the helper data?

The problems start when you want things that GitHub Markdown does not support, such as sortable tables and color. But for the most part, I think the new page is all right.

There is e2doc, maybe that could be updated to output github markup instead of what it did before

I think e2doc is broken.. or maybe it wasn't. Maybe it's just that it tries to get the descriptions from comments, but very few of the functions in E2 actually have comments above them. Either way, I don't think it works properly.

This can be closed since E2 Docs are autogenerated and stuff is in separate pages


Fail to run test with message: "The given version [19] is not supported, only version 1 to 10 is supported in this build."

Describe the bug
follow instructions at
https://onnxruntime.ai/docs/genai/howto/build-from-source.html
the build fails to run unit tests
To Reproduce
Steps to reproduce the behavior:
1.
git clone https://github.com/microsoft/onnxruntime-genai
cd onnxruntime-genai

curl -L https://github.com/microsoft/onnxruntime/releases/download/v1.19.2/onnxruntime-win-x64-1.19.2.zip -o onnxruntime-win-x64-1.19.2.zip
tar xvf onnxruntime-win-x64-1.19.2.zip
move onnxruntime-win-x64-1.19.2 ort

python build.py --config Release

open Generator.sln with vs studio, set unit_tests as the startup program and run.
got "The given version [19] is not supported, only version 1 to 10 is supported in this build."

Expected behavior
The test shall run and pass
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@liqunfu could you try copying the onnxruntime dll to the same directory as the sln file or the unit_test.exe file?

Thanks @baijumeswani, it works if I copy over onnxruntime.dll to the exe's folder. The issues is caused by having a onnxruntime.dll at "C:\Windows\WinSxS\wow64_microsoft-windows-ai-machinelearning_31bf3856ad364e35_10.0.22621.1_none_7056cab181ea1d5c\onnxruntime.dll". it must be a very old version. It blocks use and develop ort-genai on windows machines. This need to be fixed.
I see it is also confusing work with ort-genai's python api. It used to having a onnxruntime.dll at the genai install location. Now it also uses onnxruntime.dll at onnxrutime's install location. It is hard to know which one is being used.

Ideally, the python build script will try to add the onnxruntime dlls to the same path as the exe: https://github.com/microsoft/onnxruntime-genai/blob/53e3ac93c5e49e751308bcbe558c535555304349/build.py#L565-L567
But I think on windows, we need another  folder at the end. If you have bandwidth, would you consider submitting a PR for this? If not, I can get to it.
For python, we load onnxruntime from inside onnxruntime's python package. Two reasons for this:

Minimize the onnxruntime-genai package size
Avoid problems where users want to use both ort and ort-genai together (since only one dll can be loaded at any given time).

Fixed in https://github.com/microsoft/onnxruntime-genai/pull/963


Mempool Tweaks To Fix Backend CI

Current dependencies on/for this PR:

feature/proof-of-stake

PR #1019   👈

This stack of pull requests is managed by Graphite.


feat: add markdown keyboard toolbar

Description
Adds a keyboard toolbar to support easy insertion of markdown syntax.
Supported buttons:

Headings: H1, H2, and H3
Bold text
Italicized text
Unordered lists
Ordered lists
Blockquotes
Links
Code blocks

Changes:

Create MarkdownKeyboardToolbar - SwiftDownEditor extension to attach a keyboard toolbar to the UITextView
Add hasKeyboardToolbar modifier to SwiftDownEditor. The keyboard is enabled by default but can be disabled with the .hasKeyboardToolbar(false) modifier.
Initialize keyboard toolbar within SwiftDown if hasKeyboardToolbar is enabled.

Example
Screenshot:

Screencast:

Good catch... I added a scroll view to the UIToolbar. One weird thing I noticed is that the backgrounds of the UIToolbar and the ScrollView do not match (noticeable in dark mode on larger screens). I tried a bunch of color/transparency/etc combinations but I could not get them to be the same. Do you have any suggestions to reconcile this? I will admit that I am not very experienced with UIKit :)

@qeude Nice! That works great! Thanks for the help. I tested and committed the suggestion.


docs: Fix flowschemas link in documentation

Fixes #N/A
Description
This updates the docs to correctly link out to the FlowSchemas documentation.
How was this change tested?
Does this change impact docs?

[x] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[ ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.61%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5007

Relevant Lines:
6061

💛  - Coveralls


Typo (lack of a right parenthesis) on the API docstring

https://github.com/anhaidgroup/py_entitymatching/blob/4fa644cc61f39288a69724b09ff5a6ec4f685b27/py_entitymatching/blocker/rule_based_blocker.py#L653
Dear them,
I found that there exists a simple typo on the code API docstring.
The right sentence should be D = rb.block_tuples(A.loc[0], B.loc[1])

Fixed in accd158; thanks @ciuji!


Mastodon API node mixin

I factored out the Mastodon API-related code into a "mixin" class. I used the mixin to create a manually-provisioned Mastodon node and I also added it to the UBOS-based node. For now, the account parameters for UBOS should be configured explicitly. If you implement dynamic actor creation that can be supported too. See the example test plan in the feditest-tests-fediverse repo for more details about configuration.

Cursory review ... merged.


Powershell under vs code

I install the vs code from Anaconda Navigator. And I also add the Anaconda, Anaconda\Scripts and Anaconda\library\bin to both exvironment and system environment.
However, when I open the vs code, these two red lines displays in the powershell. Is this normal? Thanks for your kind help!

I'm no expert, but perhaps this would help?
Set-ExecutionPolicy RemoteSigned
*run in PowerShell as admin.

It is normal and due to the fact that you are using PowerShell. Its default security policy is strict enough to not work with activation. You can either follow the guidance that @level42ca provided or you can change your shell to e.g. cmd.

It is normal and due to the fact that you are using PowerShell. Its default security policy is strict enough to not work with activation. You can either follow the guidance that @level42ca provided or you can change your shell to e.g.

The way of changing the shell works. Thanks for both of your help!


[BUG] process exits with return code=-6 during training with bf16 optimizer

Describe the bug
We are training a llama2-70b model on 16 A800 GPU servers, and using the following features:

bf16
activation checkpoint
flash attentiion
zero1

We has successfully run about 800 steps, loss decline normally. And then suddenly processes in one node exits with code = -6.
After about half an hour, all the processes in other nodes exit.
** What exactly causes the error code=-6 ? **
here is the final exit log:
<IP_ADDRESS>: [2023-10-13 11:31:28,593] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 249
<IP_ADDRESS>: [2023-10-13 11:31:58,630] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 250
<IP_ADDRESS>: [2023-10-13 11:31:58,641] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 251
<IP_ADDRESS>: [2023-10-13 11:32:28,663] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 252
<IP_ADDRESS>: [2023-10-13 11:32:28,663] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 253
<IP_ADDRESS>: [2023-10-13 11:32:58,685] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 254
<IP_ADDRESS>: [2023-10-13 11:33:28,706] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 255
<IP_ADDRESS>: [2023-10-13 11:33:58,758] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 256
<IP_ADDRESS>: [2023-10-13 11:34:28,773] [ERROR] [launch.py:321:sigkill_handler] ['/usr/bin/python3.10', '-u', '/mnt/tenant-home_speed/shanghai/gpt/train/main.py', '--local_rank=7', '--micro-batch-size', '1', '--pipeline-model-parallel-size', '16', '--tensor-model-parallel-size', '1', '--num-layers', '80', '--hidden-size', '8192', '--num-attention-heads', '64', '--max-position-embeddings', '4096', '--seq-length', '4096', '--distributed-backend', 'nccl', '--deepspeed', '--tokenizer-type', 'NullTokenizer', '--vocab-size', '32024', '--bf16', '--clip-grad', '1.0', '--checkpoint-activations', '--checkpoint-num-layers', '1', '--use-flash-attn', '--config_file', 'run_bf16_with_job.json'] exits with return code = -6

Expected behavior
we expect training process will continue normally.
System info (please complete the following information):

OS: Ubuntu 20.04.6 LTS
CUDA-VERSION: 11.8
DeepSpeed version: 0.10.2
GPU count and types: 16 machines with x8 A800s each
Interconnects (if applicable) : machines connected with 100 Gbps IB
Python version: 3.10

Launcher context
we launching the experiment with the deepspeed launcher.

hi same issue at start，have u solved the problem

@kewenwang-ai

hi same issue at start，have u solved the problem

sorry, not yet.
but we have found one node's hardware is error（1 GPU is missing in nvidia-smi）.  After we remove this node and restart training, then this error haven't appeared yet.


NATIVE-161: Rename extras to offers

Are there no other locales containing the term extras?

@maxammann are there other locales which should be changed? or is this good to go?

Alright, not quite sure what to do here: With this changes we have the keys offers and extras mixed. Since the locales have already been updated by @maxammann prior to this task with the correct terms Offer, I'd reject this and rename all the keys in a different task (or don't rename at all).

This is only a small part of the change. This is required right now such that the locales.json is compatible with the current source code. The other stuff will be done in: https://issues.integreat-app.de/browse/WEBAPP-497


Fixed typo

"Lister" should be "Listener"

@scottrcaldwell : Thanks for your contribution! The author, @MashaMSFT, has been notified to review your proposed change.

Merging typo fix.
@scottrcaldwell Thanks!


Chat command utilizes caches + use timer for cache cleanup

Closes #11

Increases default cache TTL from 1 hour to 3 hours.
Uses timer to cleanup caches, frequency is TTL so by default every 3 hours.
Stores player names with cached geoip results.
Chat command /geoip playername checks cached results if player is not online anymore.

I've not tested anything.
Chat command returns only first result from caches for single player.
Multiple cached results for single player name are very much possible, better behavior would be to return all results sorted by timestamp.

LGTM :+1:


Fix devtools page bullet points format

@laurentluce Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@laurentluce Thank you for signing the Contributor License Agreement!


Why not to contribute this to prestodb/presto?

That way it will be easier to maintain this project and larger community could contribute to this.

I'm very open to contributing this project to Prestodb. It was never the idea to keep this plugin separate forever.
There are a fews things to be done first:

the packages must be renamed (easy)
the souce code must be reformatted to conform the codestyle of presto (some work)
a solution for running the tests in the Presto build environment (unclear to me)

Initially the main reason to keep this plugin separate was to be independent of the Prestodb release cycle. The code base is quite complete now, so this is not important anymore.
It would be very helpful, if somebody could help me with the integration of the tests into the Presto build environment. At the moment, I have also some helper projects for building Kudu and providing a docker container with Kudu master & tserver. I don't know how to migrate or substitute that stuff.

Of course I can help you :)
Having docker to provide Kudu server sounds ok to me. You might want to provide some script which could make it a bit easier to run, something like we have for hive: https://github.com/prestodb/presto/blob/master/presto-hive-hadoop2/bin/run_hive_tests.sh
Having this it would be much easier to setup test automation (CI).
Notice you should be using variables for things like server or port, these should not be hardcoded (https://github.com/MartinWeindel/presto-kudu/blob/master/src/test/java/ml/littlebulb/presto/kudu/TpchKuduQueryRunner.java#L57)
Please post a PR and we will try to fix the remaining issues as we go with the review.
Thank you!

Notice that we are using https://github.com/prestodb/docker-images/ to store the docker images we are using in automation. This might be needed if you are using custom Kudu docker image.

Thanks for your comments!
I just posted a PR, but this does not yet include changes according to your comments.

Contributing to Prestodb takes much more time than expected.
Currently I'm blocked by the outstanding review & merge of a depending pull request Add column properties to SQL parser.

You are doing very well. It is typical to Presto community that things are being merged slowly, it takes time to fully review the code and a lot of things are happening at the same time. All the people involved in the project need to respect priorities in their companies (business driven). We see a value in having Kudu connector merged in, but most of handling community contribution is a volunteer work.
Please be patient and keep pinging people ;)


Exception while scrolling through TabBar navigation

Performing hot reload...
 Sequentially clicking has no issues. But if I click 3rd tab after clicking 6th, it gives an exception. I hope the screenshot's message is helpful.

Please add your flutter doctor -v output, the code of this page fenced in  ```Dart above and ``` below the code and the output of the debug view when this exception occurs, Thanks

Launching lib/main.dart on LG D802 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Warning: Missing asset in fonts for BadScript
Warning: Missing asset in fonts for Roboto
Warning: Missing asset in fonts for Roboto
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
I/FlutterActivityDelegate( 5478): onResume setting current activity to this
Warning: Missing asset in fonts for BadScript
Warning: Missing asset in fonts for Roboto
Warning: Missing asset in fonts for Roboto
Syncing files to device LG D802...
W/ResourcesManager( 5478): Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 5478): Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
V/NativeCrypto( 5478): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 280 native methods...
I/art     ( 5478): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.org.conscrypt.Java7ExtendedSSLSession>
I/art     ( 5478): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.org.conscrypt.Java7ExtendedSSLSession>
I/art     ( 5478): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.org.conscrypt.Java8ExtendedSSLSession>
I/art     ( 5478): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.org.conscrypt.Java8ExtendedSSLSession>
W/System  ( 5478): Could not create com.google.android.gms.org.conscrypt.OpenSSLSocketFactoryImpl with ClassLoader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/chat.gabhub.GabHub-2/base.apk"],nativeLibraryDirectories=[/data/app/chat.gabhub.GabHub-2/lib/arm, /vendor/lib, /system/lib]]]: com.google.android.gms.org.conscrypt.OpenSSLSocketFactoryImpl
I/ProviderInstaller( 5478): Installed default security provider GmsCore_OpenSSL
D/libc-netbsd( 5478): [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
D/libc-netbsd( 5478): [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
D/libc-netbsd( 5478): [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
D/libc-netbsd( 5478): [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
I/System.out( 5478): propertyValue:false
D/libc-netbsd( 5478): [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
D/libc-netbsd( 5478): [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 5478): The following assertion was thrown while finalizing the widget tree:
I/flutter ( 5478): 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels !=
I/flutter ( 5478): null': is not true.
I/flutter ( 5478): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 5478): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 5478): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 5478):   https://github.com/flutter/flutter/issues/new
I/flutter ( 5478): When the exception was thrown, this was the stack:
I/flutter ( 5478): #2      ScrollPosition.dispose (package:flutter/src/widgets/scroll_position.dart)
I/flutter ( 5478): #3      ScrollPositionWithSingleContext.dispose (package:flutter/src/widgets/scroll_position_with_single_context.dart:255:11)
I/flutter ( 5478): #4      ScrollableState.dispose (package:flutter/src/widgets/scrollable.dart:324:14)
I/flutter ( 5478): #5      StatefulElement.unmount (package:flutter/src/widgets/framework.dart:3821:12)
I/flutter ( 5478): #6      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1697:13)
I/flutter ( 5478): #7      _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #8      ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #9      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #10     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #11     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #12     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #13     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #14     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #15     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #16     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #17     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #18     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #19     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #20     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #21     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #22     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #23     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #24     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #25     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #26     MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16)
I/flutter ( 5478): #27     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #28     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #29     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #30     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #31     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #32     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #33     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #34     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #35     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #36     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #37     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #38     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14)
I/flutter ( 5478): #39     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #40     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #41     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #42     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #43     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #44     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14)
I/flutter ( 5478): #45     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #46     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #47     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #48     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #49     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #50     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #51     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #52     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #53     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #54     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #55     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #56     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #57     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #58     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #59     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #60     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #61     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #62     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #63     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #64     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #65     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #66     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #67     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #68     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #69     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #70     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #71     MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16)
I/flutter ( 5478): #72     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #73     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #74     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #75     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #76     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #77     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #78     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #79     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #80     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #81     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #82     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #83     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14)
I/flutter ( 5478): #84     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #85     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #86     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #87     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #88     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #89     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14)
I/flutter ( 5478): #90     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #91     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #92     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #93     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #94     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #95     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #96     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #97     _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #98     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #99     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #100    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #101    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #102    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #103    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #104    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #105    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #106    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #107    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #108    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #109    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #110    SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14)
I/flutter ( 5478): #111    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #112    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #113    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #114    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #115    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #116    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #117    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #118    _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1695:7)
I/flutter ( 5478): #119    ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14)
I/flutter ( 5478): #120    _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13)
I/flutter ( 5478): #121    ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter ( 5478): #122    _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1706:25)
I/flutter ( 5478): #123    BuildOwner.finalizeTree. (package:flutter/src/widgets/framework.dart:2328:27)
I/flutter ( 5478): #124    BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2160:15)
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): #125    BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2327:7)
I/flutter ( 5478): #126    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:628:18)
I/flutter ( 5478): #127    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 5478): #128    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 5478): #129    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 5478): #130    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 5478): #131    _invoke (dart:ui/hooks.dart:120:13)
I/flutter ( 5478): #132    _drawFrame (dart:ui/hooks.dart:109:3)
I/flutter ( 5478): (elided 2 frames from class _AssertionError)
I/flutter ( 5478): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels != null': is not true.
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels != null': is not true.
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels != null': is not true.
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl( 5478): ViewRoot's KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=250143550, downTime=250143550, deviceId=-1, source=0x101 } to com.android.internal.policy.impl.PhoneWindow$DecorView{25d05e4b V.E..... R.....I. 0,0-1080,1920}
I/ViewRootImpl( 5478): ViewRoot's KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=250143627, downTime=250143550, deviceId=-1, source=0x101 } to com.android.internal.policy.impl.PhoneWindow$DecorView{25d05e4b V.E..... R.....I. 0,0-1080,1920}
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl( 5478): ViewRoot's Touch Event : ACTION_UP
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 5478): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:

/Users/sahil/flutterDevelopment/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.0-rc1)
✗ Android license status unknown.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
[✓] VS Code (version 1.23.1)
[✓] Connected devices (1 available)
! Doctor found issues in 1 category.

import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'bottom_navigation.dart';
import 'theme.dart';
import 'register.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
title: 'GabHub',
theme: defaultTargetPlatform == TargetPlatform.android ? tealTheme
: iOSTheme,
home: new BottomNavBar(),
);
}
}
import 'package:flutter/material.dart';
import 'live_chat_tab_base.dart';
import 'posts_tab_base.dart';
import 'events_tab_base.dart';
import 'universities_tab_base.dart';
import 'notifications_tab_base.dart';
import 'profile_tab_base.dart';
class BottomNavBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new BottomNav(),
);
}
}
class BottomNav extends StatefulWidget {
@override
_State createState() => _State();
}
class _State extends State with SingleTickerProviderStateMixin {
TabController bottomNavTabController;
@override
void initState() {
super.initState();
bottomNavTabController = new TabController(length: 6, vsync: this);
}
@override
void dispose() {
bottomNavTabController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return new Scaffold(
bottomNavigationBar: new Material(
color: Theme.of(context).platform == TargetPlatform.android
? Theme.of(context).primaryColor
: Theme.of(context).primaryColor.withOpacity(0.7),
child: new TabBar(
indicatorColor: Theme.of(context).accentColor,
controller: bottomNavTabController,
tabs: [
new Tab(
icon: new Icon(Icons.edit, color: Theme.of(context).splashColor),
),
new Tab(
icon: new Icon(Icons.question_answer,
color: Theme.of(context).splashColor),
),
new Tab(
icon: new Icon(Icons.event_note,
color: Theme.of(context).splashColor),
),
new Tab(
icon: new Icon(Icons.account_balance,
color: Theme.of(context).splashColor),
),
new Tab(
icon: new Icon(Icons.notifications_active,
color: Theme.of(context).splashColor),
),
new Tab(
icon:
new Icon(Icons.person, color: Theme.of(context).splashColor),
),
],
),
),
body: new TabBarView(
children: [
new LiveChatTabBase(),
new PostsTabBase(),
new EventsTabBase("Events"),
new UniversitiesTabBase("Universities"),
new NotificationsTabBase("Notifications"),
new ProfileTabBase("Profile"),
],
controller: bottomNavTabController,
),
);
}
}
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'dart:math';
import 'package:cloud_firestore/cloud_firestore.dart';
const jsonCodec = const JsonCodec();
class LiveChatTabBase extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new ChatScreen(),
);
}
}
class ChatScreen extends StatefulWidget {
@override
State createState() => new ChatScreenState();
}
class ChatScreenState extends State with TickerProviderStateMixin {
final List _messages = [];
final TextEditingController _textController = new TextEditingController();
bool _isComposing = false;
@override
void dispose() {
for (ChatMessage message in _messages)
message.animationController.dispose();
super.dispose();
}
Widget _buildTextComposer() {
return new IconTheme(
data: new IconThemeData(
color: Theme.of(context).accentColor,
),
child: new Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.end,
children: [
new Row(
children: [
new Container(
margin: new EdgeInsets.only(
left: 5.0,
),
child: new IconButton(
icon: new Icon(
Icons.add_circle,
color: Colors.black87,
size: 28.0,
),
onPressed: () => _handleAddContent(),
),
),
new Flexible(
child: Padding(
padding: new EdgeInsets.only(
left: 5.0,
),
child: new TextField(
controller: _textController,
maxLines: null,
//                    maxLength: 2000,
onChanged: (String text) {
setState(() {
_isComposing = text.replaceAll(" ", "").length > 0;
});
},
decoration: new InputDecoration.collapsed(
hintText: "Write a message",
hintStyle: new TextStyle(
color: Colors.black87,
),
),
style: new TextStyle(
color: Colors.black87,
fontSize: 17.0,
),
//                    onChanged: () => _valueChanged(_textController.text),
),
),
),
new Container(
margin: new EdgeInsets.only(
right: 5.0,
),
child: _isComposing
? Theme.of(context).platform == TargetPlatform.android
? new IconButton(
icon: new Icon(
Icons.send,
color: Colors.black87,
size: 28.0,
),
onPressed: () =>
_handleSubmitted(_textController.text),
)
: new CupertinoButton(
child: new Text('Send'),
onPressed: () =>
_handleSubmitted(_textController.text),
)
: new IconButton(
icon: new Icon(
Icons.keyboard_voice,
color: Colors.black87,
size: 28.0,
),
onPressed: () => _handleVoiceInput(),
),
),
],
),
],
),
);
}
@override
Widget build(BuildContext context) {
return new Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
appBar: new AppBar(
backgroundColor: Theme.of(context).primaryColor,
title: new Text(
'Live chat',
style: new TextStyle(color: Theme.of(context).hintColor),
),
elevation:
Theme.of(context).platform == TargetPlatform.android ? 4.0 : 0.0,
),
body: new Container(
child: new Column(
children: [
new Flexible(
child:
//                new ListView.builder(
//                  padding: new EdgeInsets.all(8.0),
//                  reverse: true,
//                  itemBuilder: (_, int index) => _messages[index],
//                  itemCount: _messages.length,
//                ),
                new StreamBuilder(
              stream:
                  Firestore.instance.collection('live_chat').snapshots(),
              builder: (context, snapshot) {
                if (!snapshot.hasData) return const Text('Loading...');

                return new ListView.builder(
                  itemCount: snapshot.data.documents.length,
                  padding: const EdgeInsets.all(8.0),
                  reverse: true,
                  itemExtent: 55.0,
                  itemBuilder: (context, index) {
                    DocumentSnapshot ds = snapshot.data.documents[index];
                    return new Text(
                      " ${ds['message']}",
                      style: TextStyle(color: Colors.white70),
                    );
                  },
                );
              },
            ),
          ),
          new Divider(
            height: 1.0,
          ),
          new Container(
            decoration: new BoxDecoration(
              color: Theme.of(context).cardColor, //Colors.white70,
            ),
            child: _buildTextComposer(),
          ),
        ],
      ),
      decoration: Theme.of(context).platform == TargetPlatform.iOS
          ? new BoxDecoration(
              border: new Border(
                top: new BorderSide(color: Colors.grey[200]),
              ),
            )
          : null),
);

}
void _handleSubmitted(String text) {
_textController.clear();
setState(() {
_isComposing = false;
});
// TODO: Change color to a color based on email id so that every person's color remains constant
final String username = "sahilwad";
List<int> ints = username.codeUnits;
var range = new Random();

ChatMessage message = new ChatMessage(
  text,
  ints[5] + ints[6],
  ints[2],
  ints[1] + ints[0],
  ints[3] + ints[4],
  new AnimationController(
    duration: new Duration(milliseconds: 400),
    vsync: this,
  ),
);
setState(() {
  _messages.insert(0, message);
});
message.animationController.forward();

}
_handleVoiceInput() {
print('Voice input method');
}
_handleAddContent() {
print('Add content clicked');
}
}
class ChatMessage extends StatelessWidget {
final String text;
final int colorA;
final int colorR;
final int colorG;
final int colorB;
final AnimationController animationController;
ChatMessage(this.text, this.colorA, this.colorR, this.colorG, this.colorB,
this.animationController);
@override
Widget build(BuildContext context) {
return new SizeTransition(
sizeFactor: new CurvedAnimation(
parent: animationController,
curve: Curves.easeOut,
),
axisAlignment: 0.0,
child: new Container(
margin: const EdgeInsets.symmetric(vertical: 7.0),
child: new Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
new Container(
margin: const EdgeInsets.only(
right: 10.0,
),
child: new Padding(
padding: new EdgeInsets.only(top: 12.0),
child: new CircleAvatar(
maxRadius: 13.0,
backgroundColor:
Color.fromARGB(colorA, colorR, colorG, colorB),
),
),
),
new Expanded(
child: new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
new Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
new Padding(
padding: new EdgeInsets.only(
bottom: 4.0,
right: 35.0,
),
child: new Text(
'25 June 2018, 4:11 am',
style: new TextStyle(
color: Theme.of(context).platform ==
TargetPlatform.android
? Colors.white70
: Colors.black54,
fontSize: 12.0,
letterSpacing: 0.6,
),
),
),
],
),
new Container(
width: 300.0,
child: new Text(
text,
style: new TextStyle(
color:
Theme.of(context).platform == TargetPlatform.android
? Colors.white
: Colors.black87,
letterSpacing: 0.4,
),
),
),
],
),
),
],
),
),
);
}
}
import 'package:flutter/material.dart';
class NotificationsTabBase extends StatelessWidget {
final String title;
NotificationsTabBase(this.title);
@override
Widget build(BuildContext context) {
return new Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
appBar: new AppBar(
title: new Text(
title,
style: new TextStyle(
color: Theme.of(context).hintColor,
),
),
elevation:
Theme.of(context).platform == TargetPlatform.android ? 4.0 : 0.0,
backgroundColor: Theme.of(context).primaryColor,
),
body: new Container(
child: new Center(
child: new Text(title),
),
decoration: Theme.of(context).platform == TargetPlatform.iOS
? new BoxDecoration(
border: new Border(
top: new BorderSide(color: Colors.grey[200]),
),
)
: null),
);
}
}

`import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'bottom_navigation.dart';
import 'theme.dart';
import 'register.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
title: 'GabHub',
theme: defaultTargetPlatform == TargetPlatform.android ? tealTheme
: iOSTheme,
home: new BottomNavBar(),
);
}
}`

import 'package:flutter/foundation.dart';
import 'bottom_navigation.dart';
import 'theme.dart';
import 'register.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'GabHub',
      theme: defaultTargetPlatform == TargetPlatform.android ? tealTheme
          : iOSTheme,
      home: new BottomNavBar(),
    );
  }
}

import 'live_chat_tab_base.dart';
import 'posts_tab_base.dart';
import 'events_tab_base.dart';
import 'universities_tab_base.dart';
import 'notifications_tab_base.dart';
import 'profile_tab_base.dart';

class BottomNavBar extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new BottomNav(),
    );
  }
}

class BottomNav extends StatefulWidget {
  @override
  _State createState() => _State();
}

class _State extends State<BottomNav> with SingleTickerProviderStateMixin {
  TabController bottomNavTabController;

  @override
  void initState() {
    super.initState();
    bottomNavTabController = new TabController(length: 6, vsync: this);
  }

  @override
  void dispose() {
    bottomNavTabController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      bottomNavigationBar: new Material(
        color: Theme.of(context).platform == TargetPlatform.android
            ? Theme.of(context).primaryColor
            : Theme.of(context).primaryColor.withOpacity(0.7),
        child: new TabBar(
          indicatorColor: Theme.of(context).accentColor,
          controller: bottomNavTabController,
          tabs: <Widget>[
            new Tab(
              icon: new Icon(Icons.edit, color: Theme.of(context).splashColor),
            ),
            new Tab(
              icon: new Icon(Icons.question_answer,
                  color: Theme.of(context).splashColor),
            ),
            new Tab(
              icon: new Icon(Icons.event_note,
                  color: Theme.of(context).splashColor),
            ),
            new Tab(
              icon: new Icon(Icons.account_balance,
                  color: Theme.of(context).splashColor),
            ),
            new Tab(
              icon: new Icon(Icons.notifications_active,
                  color: Theme.of(context).splashColor),
            ),
            new Tab(
              icon:
                  new Icon(Icons.person, color: Theme.of(context).splashColor),
            ),
          ],
        ),
      ),
      body: new TabBarView(
        children: <Widget>[
          new LiveChatTabBase(),
          new PostsTabBase(),
          new EventsTabBase("Events"),
          new UniversitiesTabBase("Universities"),
          new NotificationsTabBase("Notifications"),
          new ProfileTabBase("Profile"),
        ],
        controller: bottomNavTabController,
      ),
    );
  }
}

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'dart:math';
import 'package:cloud_firestore/cloud_firestore.dart';

const jsonCodec = const JsonCodec();

class LiveChatTabBase extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new ChatScreen(),
    );
  }
}

class ChatScreen extends StatefulWidget {
  @override
  State createState() => new ChatScreenState();
}

class ChatScreenState extends State<ChatScreen> with TickerProviderStateMixin {
  final List<ChatMessage> _messages = <ChatMessage>[];
  final TextEditingController _textController = new TextEditingController();
  bool _isComposing = false;

  @override
  void dispose() {
    for (ChatMessage message in _messages)
      message.animationController.dispose();
    super.dispose();
  }

  Widget _buildTextComposer() {
    return new IconTheme(
      data: new IconThemeData(
        color: Theme.of(context).accentColor,
      ),
      child: new Column(
        mainAxisSize: MainAxisSize.max,
        mainAxisAlignment: MainAxisAlignment.end,
        children: <Widget>[
          new Row(
            children: <Widget>[
              new Container(
                margin: new EdgeInsets.only(
                  left: 5.0,
                ),
                child: new IconButton(
                  icon: new Icon(
                    Icons.add_circle,
                    color: Colors.black87,
                    size: 28.0,
                  ),
                  onPressed: () => _handleAddContent(),
                ),
              ),
              new Flexible(
                child: Padding(
                  padding: new EdgeInsets.only(
                    left: 5.0,
                  ),
                  child: new TextField(
                    controller: _textController,
                    maxLines: null,
//                    maxLength: 2000,
                    onChanged: (String text) {
                      setState(() {
                        _isComposing = text.replaceAll(" ", "").length > 0;
                      });
                    },
                    decoration: new InputDecoration.collapsed(
                      hintText: "Write a message",
                      hintStyle: new TextStyle(
                        color: Colors.black87,
                      ),
                    ),
                    style: new TextStyle(
                      color: Colors.black87,
                      fontSize: 17.0,
                    ),
//                    onChanged: () => _valueChanged(_textController.text),
                  ),
                ),
              ),
              new Container(
                margin: new EdgeInsets.only(
                  right: 5.0,
                ),
                child: _isComposing
                    ? Theme.of(context).platform == TargetPlatform.android
                        ? new IconButton(
                            icon: new Icon(
                              Icons.send,
                              color: Colors.black87,
                              size: 28.0,
                            ),
                            onPressed: () =>
                                _handleSubmitted(_textController.text),
                          )
                        : new CupertinoButton(
                            child: new Text('Send'),
                            onPressed: () =>
                                _handleSubmitted(_textController.text),
                          )
                    : new IconButton(
                        icon: new Icon(
                          Icons.keyboard_voice,
                          color: Colors.black87,
                          size: 28.0,
                        ),
                        onPressed: () => _handleVoiceInput(),
                      ),
              ),
            ],
          ),
        ],
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      backgroundColor: Theme.of(context).backgroundColor,
      appBar: new AppBar(
        backgroundColor: Theme.of(context).primaryColor,
        title: new Text(
          'Live chat',
          style: new TextStyle(color: Theme.of(context).hintColor),
        ),
        elevation:
            Theme.of(context).platform == TargetPlatform.android ? 4.0 : 0.0,
      ),
      body: new Container(
          child: new Column(
            children: <Widget>[
              new Flexible(
                child:
//                new ListView.builder(
//                  padding: new EdgeInsets.all(8.0),
//                  reverse: true,
//                  itemBuilder: (_, int index) => _messages[index],
//                  itemCount: _messages.length,
//                ),

                    new StreamBuilder(
                  stream:
                      Firestore.instance.collection('live_chat').snapshots(),
                  builder: (context, snapshot) {
                    if (!snapshot.hasData) return const Text('Loading...');

                    return new ListView.builder(
                      itemCount: snapshot.data.documents.length,
                      padding: const EdgeInsets.all(8.0),
                      reverse: true,
                      itemExtent: 55.0,
                      itemBuilder: (context, index) {
                        DocumentSnapshot ds = snapshot.data.documents[index];
                        return new Text(
                          " ${ds['message']}",
                          style: TextStyle(color: Colors.white70),
                        );
                      },
                    );
                  },
                ),
              ),
              new Divider(
                height: 1.0,
              ),
              new Container(
                decoration: new BoxDecoration(
                  color: Theme.of(context).cardColor, //Colors.white70,
                ),
                child: _buildTextComposer(),
              ),
            ],
          ),
          decoration: Theme.of(context).platform == TargetPlatform.iOS
              ? new BoxDecoration(
                  border: new Border(
                    top: new BorderSide(color: Colors.grey[200]),
                  ),
                )
              : null),
    );
  }

  void _handleSubmitted(String text) {
    _textController.clear();
    setState(() {
      _isComposing = false;
    });

    // TODO: Change color to a color based on email id so that every person's color remains constant
    final String username = "sahilwad";
    List<int> ints = username.codeUnits;
    var range = new Random();

    ChatMessage message = new ChatMessage(
      text,
      ints[5] + ints[6],
      ints[2],
      ints[1] + ints[0],
      ints[3] + ints[4],
      new AnimationController(
        duration: new Duration(milliseconds: 400),
        vsync: this,
      ),
    );
    setState(() {
      _messages.insert(0, message);
    });
    message.animationController.forward();
  }

  _handleVoiceInput() {
    print('Voice input method');
  }

  _handleAddContent() {
    print('Add content clicked');
  }
}

class ChatMessage extends StatelessWidget {
  final String text;
  final int colorA;
  final int colorR;
  final int colorG;
  final int colorB;
  final AnimationController animationController;

  ChatMessage(this.text, this.colorA, this.colorR, this.colorG, this.colorB,
      this.animationController);

  @override
  Widget build(BuildContext context) {
    return new SizeTransition(
      sizeFactor: new CurvedAnimation(
        parent: animationController,
        curve: Curves.easeOut,
      ),
      axisAlignment: 0.0,
      child: new Container(
        margin: const EdgeInsets.symmetric(vertical: 7.0),
        child: new Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            new Container(
              margin: const EdgeInsets.only(
                right: 10.0,
              ),
              child: new Padding(
                padding: new EdgeInsets.only(top: 12.0),
                child: new CircleAvatar(
                  maxRadius: 13.0,
                  backgroundColor:
                      Color.fromARGB(colorA, colorR, colorG, colorB),
                ),
              ),
            ),
            new Expanded(
              child: new Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  new Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      new Padding(
                        padding: new EdgeInsets.only(
                          bottom: 4.0,
                          right: 35.0,
                        ),
                        child: new Text(
                          '25 June 2018, 4:11 am',
                          style: new TextStyle(
                            color: Theme.of(context).platform ==
                                    TargetPlatform.android
                                ? Colors.white70
                                : Colors.black54,
                            fontSize: 12.0,
                            letterSpacing: 0.6,
                          ),
                        ),
                      ),
                    ],
                  ),
                  new Container(
                    width: 300.0,
                    child: new Text(
                      text,
                      style: new TextStyle(
                        color:
                            Theme.of(context).platform == TargetPlatform.android
                                ? Colors.white
                                : Colors.black87,
                        letterSpacing: 0.4,
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}

class NotificationsTabBase extends StatelessWidget {
  final String title;

  NotificationsTabBase(this.title);

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      backgroundColor: Theme.of(context).backgroundColor,
      appBar: new AppBar(
        title: new Text(
          title,
          style: new TextStyle(
            color: Theme.of(context).hintColor,
          ),
        ),
        elevation:
            Theme.of(context).platform == TargetPlatform.android ? 4.0 : 0.0,
        backgroundColor: Theme.of(context).primaryColor,
      ),
      body: new Container(
          child: new Center(
            child: new Text(title),
          ),
          decoration: Theme.of(context).platform == TargetPlatform.iOS
              ? new BoxDecoration(
                  border: new Border(
                    top: new BorderSide(color: Colors.grey[200]),
                  ),
                )
              : null),
    );
  }
}

I'm now using BottomNavigationBar instead of TabBar for bottom navigation. That fixed one of the issues. The app doesn't crash while switching between tabs.

@sahil311289 I hope it's fine with you if I close this as dup of #11895.
Please add a comment if you think differently.

Is #11895 really duplicate? I see exceptions are raised at different places. For me this issue is important as well so I am afraid that it could be lost and never fixed :)

@s-limo no prob. I'll leave it open then.

@sahil311289 I created https://github.com/timsneath/tabbar_exception to try and produce a repro based off your files. On the latest Flutter master builds, I get the following exception when I type in the live tab and then select the notifications tab:
I/flutter ( 6084): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 6084): The following assertion was thrown building NotificationListener<KeepAliveNotification>:
I/flutter ( 6084): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2805 pos 14:
I/flutter ( 6084): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.

Different error to yours, so could you confirm that this is the issue you're hitting, or help me adapt to a more accurate repro?

@timsneath, I will summarise two issues related to TabBarView we have experienced. One happens when you have a nested TabBarView and second is when you have a TextField in focus in one of the tab pages. In the app we are building we have both scenarios. @sahil311289 had the TextField issue. I believe he fixed the issue by using Stack instead of TabBarView along with the BottomNavigation as implemented in the Gallery app.
Stack-BottomNavigation combo is fine for simple child widgets. But if the tab pages have more heavy widgets then it might consume more memory because Stack is rendering all children. On the other hand I believe TabBarView has some optimization which removes the pages that is not displayed in the view port. I guess this optimization is the reason for these exceptions as it conflicts with the focus keep alive of the text field and scroll position of nested tab.
I have posted gists to reproduce the issue below. I have also added the complete stack trace in the gist.
This gist reproduces nested TabBarView issue. There is a TabBarView for the bottom navigation with 4 children. And there is another TabBarView inside the second tab page. If you navigate from 1st to 3rd or 4th without visiting the second page it gives the following exception.
flutter: The following assertion was thrown while finalizing the widget tree:
flutter: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 658 pos 12: 'pixels !=
flutter: null': is not true.

This gist reproduces the focused TextField issue. There is a TabBarView for the bottom navigation with 4 children. In the first page, I have added a TextField. If you focus the text field and move to the 4th page below exception happens.
flutter: The following assertion was thrown building NotificationListener<KeepAliveNotification>:
flutter: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2811 pos 14:
flutter: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.

I was getting same issue, but have a temp fix (really not idea fix) which is to just take focus off during build.
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while finalizing the widget tree:
flutter: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels !=
flutter: null': is not true.

Temp fix:

create focus not in state, one for each input field:

final FocusNode urlFocus = FocusNode();
final FocusNode apiFocus = FocusNode();

create function to clear all focus nodes:

void unFocusAll() {
    urlFocus.unfocus();
    apiFocus.unfocus();
  }

during build, call function:

  ....
  @override
  Widget build(BuildContext context) {
    unFocusAll();
    return Scaffold(
  .....

put focus node on each textformfield:

new TextFormField(
                 .....
                  focusNode: urlFocus,
                ),
....

In ScrollPosition.dispose(), there is an assert(pixels != null) — which is the immediate cause of the crash I'm seeing when using nested TabBarViews.
It's not clear to my why it's important that pixels not be null when disposing a ScrollPosition. And unfortunately, the assert doesn't have a message to explain the rationale.
  @override
  void dispose() {
    assert(pixels != null);
    activity?.dispose(); // it will be null if it got absorbed by another ScrollPosition
    _activity = null;
    super.dispose();
  }

If I remove the assert, and use my app, I don't see any issues arising.
Is this assert necessary and correct? Is a fix (at least to the nested TabBarView aspect of this issue) to simply remove this assert?

Got the exactly same error. But only appear when i have more than 4 tabs...

@apat183 if I try your fix then the textField wont let me input text

@andrescr94 you might need to use TextEditingControllers but i wouldn't use my temp solution anymore. I ended up moving to a move permanent solution of navigating to form in new page rather then in tab page and everything working fine now.

Any updates on this issue, it is also occuring on my app, do you need code examples or something else?

This happens to me when I use an ExpandedTile widget and have gridview inside each tile. Both grid and tile are growable. Each grid view taps to open a dialog with a text field.
I/flutter (11555): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (11555): The following assertion was thrown while finalizing the widget tree:
I/flutter (11555): 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 683 pos 12: 'pixels !=
I/flutter (11555): null': is not true.
I/flutter (11555):
I/flutter (11555): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (11555): more information in this error message to help you determine and fix the underlying cause.
I/flutter (11555): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (11555):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (11555):
I/flutter (11555): When the exception was thrown, this was the stack:
I/flutter (11555): #2      ScrollPosition.dispose (package:flutter/src/widgets/scroll_position.dart:683:12)
I/flutter (11555): #3      ScrollPositionWithSingleContext.dispose (package:flutter/src/widgets/scroll_position_with_single_context.dart:255:11)
I/flutter (11555): #4      ScrollableState.dispose (package:flutter/src/widgets/scrollable.dart:343:14)
I/flutter (11555): #5      StatefulElement.unmount (package:flutter/src/widgets/framework.dart:3900:12)
I/flutter (11555): #6      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1709:13)
I/flutter (11555): #7      _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #8      ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #9      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #10     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #11     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #12     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #13     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #14     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #15     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #16     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #17     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #18     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #19     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #20     MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4948:16)
I/flutter (11555): #21     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #22     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #23     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #24     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #25     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #26     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #27     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #28     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #29     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #30     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #31     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #32     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4848:14)
I/flutter (11555): #33     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #34     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #35     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #36     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #37     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #38     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4848:14)
I/flutter (11555): #39     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #40     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #41     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #42     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #43     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #44     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #45     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #46     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #47     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #48     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #49     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #50     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #51     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #52     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #53     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #54     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #55     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #56     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #57     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #58     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1707:7)
I/flutter (11555): #59     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3755:14)
I/flutter (11555): #60     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1705:13)
I/flutter (11555): #61     ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter (11555): #62     _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1718:25)
I/flutter (11555): #63     BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2372:27)
I/flutter (11555): #64     BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2204:15)
I/flutter (11555): #65     BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2371:7)
I/flutter (11555): #66     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:678:18)
I/flutter (11555): #67     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (11555): #68     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (11555): #69     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (11555): #70     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
I/flutter (11555): #72     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (11555): #73     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (11555): #74     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (11555): (elided 3 frames from class _AssertionError and package dart:async)
I/flutter (11555): ════════════════════════════════════════════════════════════════════════════════════════════════════
D/libGLESv2(11555): STS_GLApi : DTS, ODTC are not allowed for Package : com.xx.xx.xx

I'm having the same issue and the fix of removing the assert solved it for me, but I'm not using TabBars and the issue happens when either using Navigator.of(context).pop() or the automatically generated BackButton for the AppBar. The error doesn't happen when in release mode, only when in debug.

Hi all I could resolve this issue by removing a parent scrollview inside which I had a listview. The parent is a column and the child listview in wrapped inside an expanded widget
Get Outlook for iOShttps://aka.ms/o0ukef

From: Gildásio Filho<EMAIL_ADDRESS>Sent: Friday, March 22, 2019 7:14:42 PM
To: flutter/flutter
Cc: vijaykanta; Comment
Subject: Re: [flutter/flutter] Exception while scrolling through TabBar navigation (#18756)
I'm having the same issue and the fix of removing the assert solved it for me, but I'm not using TabBars and the issue happens when either using Navigator.of(context).pop() or the automatically generated BackButton for the AppBar. The error doesn't happen when in release mode, only when in debug.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/flutter/flutter/issues/18756#issuecomment-475625621, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB5YVdI3nobMgWPlhMo1yotXvjdntbBSks5vZN5KgaJpZM4U020J.

Hi! The solution is just not to forget to dispose TabContoller:
@override   void dispose() {     _tabController.dispose();     super.dispose();   }
Check, please, if it is the right solution and tag people who faced this trouble in this issue
I think you know how to do it, @escamoteur

Hi @MichaelDark, I'm currently working through a different issue, but I'm planning to get to this this after I'm done. That could definitely be a solution for some, if they forget to dispose their TabControllers. I'll provide an update once I've had an opportunity to dive deeper into the issue.

I looked at @ajinasokan's first gist and noticed that TabController was paired with BottomNavigationBar, and I'm not sure if they were meant to be used like that. I was able to get a running sample using BottomNavigationBar, while nesting the TabBarView.
However, I did create a reproducible sample that throws the exception with two TabBar/TabBarView/TabController combinations, and will be looking into it.

I think it would be useful.
I did not use BottomNavigationBar and I think this issue is related with
deeper level of flutter/material. I had a TabView/TabBar/TabController in
of tabs of the another TabView/TabBar/TabController, and it throws the
exception that you have mentioned before
On Fri, Apr 5, 2019, 11:51 PM Shi-Hao Hong<EMAIL_ADDRESS>wrote:

I looked at @ajinasokan https://github.com/ajinasokan's first gist
https://gist.github.com/ajinasokan/e9fc78e5eaad5b60bff22411b3d084a1 and
noticed that TabController was paired with BottomNavigationBar, and I'm
not sure if they were meant to be used like that. I was able to get a running
sample
https://gist.github.com/shihaohong/ba4512652c2bf1b638821afe68c5729d
using BottomNavigationBar, while nesting the TabBarView.
However, I did create a reproducible sample
https://gist.github.com/shihaohong/1909464287ce2f23b74088cf95ce02a6
that throws the exception with two TabBar/TabBarView/TabController
combinations, and will be looking into it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/18756#issuecomment-480417622,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbPPYeSDsv5MnxTpeb2puDbyT7v1zGlzks5vd7dOgaJpZM4U020J
.

I resolved it during debug by commenting out assert(pixels != null);, but that's not very kewl. I'm not using TabView or TabBar or TabController. I'm rendering conditional widgets with BottomAppBar and InkWell tabs.


Review line length on search results

Miro board: https://miro.com/app/board/o9J_lVbXZk8=/

Use #6084


🚀 Feature: Documentation as reference

🔖 Feature description
Have multiple components point to the same documentations without adding the different systems to the docs catalog page duplicated
🎤 Context
Hi we have some items where we want multiple items in the catalogue for example we might from the same folder structure want to have

server
frontend
api
system
domain
In the mono repo we would like the documentation to be a single documentation as its all one system with different components. However if we put the documentation stub on all the components in the tech docs pages we get multiple duplicates of the docs one for each page.

✌ Possible Implementation
either a dedupe of the documents, or better being able to reference another projects docs one, where one would be the owner but if I reference the owner project in the techdocs annotation it references it shows the techdocs in all the links but doesn't add a new one to the docs catalog
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No response

Could be related to this last proposal discussion? https://github.com/backstage/backstage/issues/5913


Support run jobs on HPC cluster

It would be nice to be able to run jobs on conventional HPC, maybe create a runner that can launch jobs.

I think the best way to support this would be through dask (dsitributed) which can handle spawning parallel jobs locally or on a cluster
https://jobqueue.dask.org/en/latest/generated/dask_jobqueue.SLURMCluster.html


Crashing when opening manga that hasn't been "loaded up"

Steps to reproduce

I have Orange in my Default library that I added a few days ago. Keyholder is a newly added series that is not in my library. With either...
I tap on it to look at the chapters.
After 2 seconds of seeing the page (still unpopulated with chapters) and the loading icon, Neko crashes immediately.

Expected behavior
Should open to allow browsing per chapter.
Actual behavior
Crashes the application.
Crash logs
neko_crash_logs.txt
Neko version
2.13.5
Android version
8
Device
Galaxy Tab S3 (SM-T820)
Other details
It seems like this happens with most manga I haven't read before, that's not in my library.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to the newest version Latest.
[X] I have filled out all of the requested information in this form.

Do you have webview installed?

I'm not exactly sure how to check that for Neko. But if you mean, can I go to a series, tap Link, and tap the Mangadex button to open up the series in a browser viewer within Neko, yes. I can do that.

Any updates? The issue is still existing.

No update yet

I'm not exactly sure how to check that for Neko. But if you mean, can I go to a series, tap Link, and tap the Mangadex button to open up the series in a browser viewer within Neko, yes. I can do that.

You should have this installed as
https://play.google.com/store/apps/details?id=com.google.android.webview&hl=en_US&gl=US
Did you disable it or uninstall?


[bug] Trust Wallet and WalletConenct not connecting

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
0.3.0
wagmi Version
0.4.12
Current Behavior
Scanning Trust Wallet or WalletConnect QR code opens Trust Wallet application, but no connection is made. No any errors is shown.
Navigating to dApp with Trust Wallet in-app browser opens Trust Wallet, but no connection is made. No any errors is shown.
Expected Behavior
Scanning QR code or opening dApp  in Trust Wallet app would promt request to connect wallet to dApp.
Steps To Reproduce
Basic example, add Trust and WalletConnect connectors, and try connecting.
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

I have the same issue. But it throws exception immediately after scanning QR
browser.ts:44 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'importKey')     at browser.ts:44:11     at f (regeneratorRuntime.js:86:17)     at Generator._invoke (regeneratorRuntime.js:66:24)     at Generator.next (regeneratorRuntime.js:117:21)     at n (asyncToGenerator.js:3:20)     at s (asyncToGenerator.js:25:9)     at asyncToGenerator.js:32:7     at new Promise (<anonymous>)     at asyncToGenerator.js:21:12     at Jt (163.356e3128.chunk.js:1:51456)

Also It seem that it is broken only im prod build. When I start locally everything is ok

I haven't been able to reproduce this on desktop (via QR code), in mobile Safari via WalletConnect, and in Trust's in-app browser. Are you still experiencing this issue? If so, are you able to share a minimal repro?

Also It seem that it is broken only im prod build. When I start locally everything is ok

I can also confirm this. @markdalgleish did you try build version?

Well, I tried to connect via WalletConnect (1inch wallet) to https://www.rainbowkit.com/ and it is broken sometimes.
On my app with "@rainbow-me/rainbowkit": "latest", it is still broken on prod build with the same error in logs:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'importKey')
    at browser.ts:44:11
    at f (main.76f83b50.js:sourcemap:2:1762807)
    at Generator._invoke (main.76f83b50.js:sourcemap:2:1762560)
    at Generator.next (main.76f83b50.js:sourcemap:2:1763170)
    at n (main.76f83b50.js:sourcemap:2:1758076)
    at s (main.76f83b50.js:sourcemap:2:1758279)
    at main.76f83b50.js:sourcemap:2:1758338
    at new Promise (<anonymous>)
    at main.76f83b50.js:sourcemap:2:1758219
    at Ft (browser.ts:40:8)

@cattingcat You said WalletConnect on https://rainbowkit.com is broken sometimes — is the same error message you've shared here, or unrelated?

@miekassu I can connect scanning the Trust Wallet QR code on https://rainbowkit.com and https://rainbowkit-example.vercel.app which are both prod builds.

@cattingcat You said WalletConnect on https://rainbowkit.com is broken sometimes — is it the same error message you've shared here, or unrelated?

I think it is unrelated, because it just didn't work few times, but without errors in console

I also cannot reproduce this. If you can provide more details or provide steps to reliably reproduce this issue, feel free to drop a comment and we can reopen!


[SCB-527] Reorganization All Archetype For Enable Auto Publish

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Current archetype is organize for using mvn archetype:create-from-project to publish,it is not so good for auto build and publish to maven center repo.
We need reorganization all of them using normal maven install to generate xxxx-archetype.jar and auto publish.some examples can be found here .
Also update README.md
Use snapshot archetypes (business-service-jaxrs-archetype as example) :
mvn archetype:generate -DarchetypeGroupId=org.apache.servicecomb.archetypes -DarchetypeArtifactId=business-service-jaxrs-archetype -DarchetypeVersion=${archetype-version} -DarchetypeRepository=https://repository.apache.org/content/groups/snapshots-group

Coverage remained the same at 87.411% when pulling 303a84a36c8ccabe47c71dbaadf004a34f1c8b16 on zhengyangyong:SCB-527 into d5d1788fa8af733dc308c51548e03d1c81abd896 on apache:master.


Fixes error in get losses functions

[ ] Closes #xxxx (Replace xxxx with the GitHub issue number)
[X] Tests added and passed if fixing a bug or adding a new feature
[X] All code checks passed
[x] Added type annotations to new arguments/methods/functions
[x] Added an entry in the latest docs/release_notes/index.md file if fixing a bug or adding a new feature
[x] If the changes are patches for a version, I have added the on-merge: backport to x.x.x label

Yes but we only use it for DE genes where it's called with n_samples_per_mc of 100 (?). ScANVI wasn't supporting importance weighting beforehand. It doesn't work with multiple samples and this might be an issue for multi-GPU support (see bug report).

I'll get this in by today @canergen

#2429 needs to be addressed before this

@ori-kron-wis We can merge this one after fixing the n_samples issue.


Don't set ssh key for e2e test and use updated cluster.yaml for upgrade

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mrajashree: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

eks-anywhere-cluster-controller-tooling-presubmit
b355e6036696a9e817f378a7a04c3b6f62ad6749
link
/test eks-anywhere-cluster-controller-tooling-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

What's going on with this one?


CIV-7377 mediation successful

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/CIV-7377
Change description
new event and mediation successful page
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

reopen for testing


Wrong aspect ratio when in portrait mode and app is in background

Describe the bug
While streaming from a service with the device in portrait mode, minimizing the app causes the stream's aspect ratio to be incorrect. Bringing the app back to the foreground fixes the aspect ratio. The problem does not occur when streaming from a service in landscape mode. See the attached screenshots.
To Reproduce
Steps to reproduce the behavior:

Stream from a service while holding the device in portrait mode
Start viewing the stream
Minimize the app
See the incorrect aspect ratio in the stream

Expected behavior
Aspect ratio should not change
Screenshots
Correct aspect ratio when app is in foreground

Incorrect aspect ratio when app is minimized

Smartphone (please complete the following information):

Library version: 2.4.0
Device: Pixel 4a 5G, Galaxy S21, Pixel 6 Pro
OS: Tested on Android 11, 13, and 14
Media server: MediaMTX 1.6.0
Class used: RtspCamera2, RtmpCamera2, and UdpCamera2

Additional context
I'm having this problem in my app OpenTAK ICU. You can download the APK from my repo if you'd like to test it.

Hello,
Fixed here:
https://github.com/pedroSG94/RootEncoder/commit/9f2178dea0d4fc830f4a73e437b4918f3bfb18d4
You can compile this using this gradle:
  implementation 'com.github.pedroSG94.RootEncoder:library:9f2178dea0'

I will upload this fix in the next version soon

Thank you for your quick response! Unfortunately when I use that gradle the preview works for about 1 second and then freezes. Then I cannot start streaming as usual. I'm looking at logcat and I see these messages but I'm not sure if they're related to the problem.
2024-03-13 15:25:22.515  7477-7565  pentakicu.debu          io.opentakserver.opentakicu.debug    W  Core platform API violation: Ljava/nio/Buffer;->position:I from Landroid/opengl/GLES20; using JNI
2024-03-13 15:25:22.515  7477-7565  pentakicu.debu          io.opentakserver.opentakicu.debug    W  Core platform API violation: Ljava/nio/Buffer;->limit:I from Landroid/opengl/GLES20; using JNI
2024-03-13 15:25:22.515  7477-7565  pentakicu.debu          io.opentakserver.opentakicu.debug    W  Core platform API violation: Ljava/nio/Buffer;->_elementSizeShift:I from Landroid/opengl/GLES20; using JNI

Hello,
That logcat is not related with your case.
Can you explain me more? What do you mean with the preview freeze?
The stream result freeze or the preview in the android app?

I downloaded the app but I don't understand it. How can I test to reproduce it?

When I use this gradle implementation 'com.github.pedroSG94.RootEncoder:library:9f2178dea0' the preview in my app freezes about 1 second after I open it. Then I cannot start streaming. When I use version 2.4.0 there is no freezing. Here  is a debug build of my app using the 9f2178dea0 gradle so you can see the problem.

Fixed here:
  implementation 'com.github.pedroSG94.RootEncoder:library:82cf9217b9'

Thank you, that fixed the freezing and the aspect ratio problems.