Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expander crashes the app. #107

Open
Xiaoy312 opened this issue Aug 14, 2020 · 1 comment
Open

Expander crashes the app. #107

Xiaoy312 opened this issue Aug 14, 2020 · 1 comment
Labels
project/input Categorizes an issue or PR as relevant to input (Button, CheckBox, ...)

Comments

@Xiaoy312
Copy link

Describe the bug

Expander crashes with measure -inf, -inf

Steps to Reproduce

  • Add Expander to the page
  • Launch the app and navigate to that page

Expected behavior

No crash.

Screenshots

Uncaught Error: System.InvalidOperationException: [LayoutTransformControl-42322"PART_LayoutTransformer"/PART_LayoutTransformer: Invalid measured size -Infinity,-Infinity. NaN or Infinity are invalid desired size.
  at Windows.UI.Xaml.FrameworkElement.InnerMeasureCore (:56086/Windows.Foundation.Size availableSize) [0x000e2] in C:\agent\_work\1\s\src\Uno.UI\UI\Xaml\FrameworkElement.Layout.netstd.cs:97

Environment

NuGet Package(s): 6.1.0-build.186.g928c99f74d

Package Version(s): 

Device form factor:
- [x] macOS
- [x] WASM
- [ ] ios (?: not tested)
- [ ] android (?: not tested)
- [ ] uwp

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

Known workaround: Replacing controls:LayoutTransformControl with a Border with same x:Name. And removing the RotateTransform and any visual state setters affecting the RotateLayoutTransform.

@Xiaoy312 Xiaoy312 changed the title [wasm] Expander crashes the app. Expander crashes the app. Aug 14, 2020
@eiadxp
Copy link

eiadxp commented Sep 23, 2020

I can confirm this issue with Android also:

Java.Lang.IllegalStateException Message=View with id -1: crc64a5a37c43dff01024.Grid#onMeasure() did not set the measured dimension by calling setMeasuredDimension()

@carldebilly carldebilly added the project/input Categorizes an issue or PR as relevant to input (Button, CheckBox, ...) label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project/input Categorizes an issue or PR as relevant to input (Button, CheckBox, ...)
Projects
None yet
Development

No branches or pull requests

3 participants