Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Xamarin Forms application deployed on android - UI showing unusual behavior and crashing #15632

Closed
MANIKANTAABBURI opened this issue Dec 14, 2022 · 2 comments
Labels
p/Android s/unverified New report that has yet to be verified t/bug 🐛

Comments

@MANIKANTAABBURI
Copy link

MANIKANTAABBURI commented Dec 14, 2022

Description

Premise:
Around Dec1st I had reset my pc. Consequently reinstalled visual studio and resumed working on my Xamarin Forms project. Out of no where my application deployed on android device/emulator showing unusual behavior such as elements disappearing and layouts like stack layout not resizing properly and eventually crashing. This started happening after reinstallation of visual studio. Before to that everything was fine. This is something related to UI libraries or rendering I assume. Sometimes debug is giving some global object was missing thus terminating the thread kind of debug log and some times just runtime aborting.
Note : No code changes were made. from my side during this period.

Steps to Reproduce

  1. Install maui option along with xamarin and intellisense in the visual studio community edition
  2. Open project by clicking on project .sln file.
  3. Deploy to android in debug mode.
  4. Go to a page and play with it by updating a value etc.

Expected Behavior

UI responds properly and smoothly without any crashes.

Actual Behavior

UI like stack layout and frame not resizing properly, on navigating to previous page that holds list view, empty space at top and bottom of the page and crashing suddenly.

Basic Information

  • Version with issue: Xamarin 5.0.0.2545

  • Last known good version: Xamarin 5.0.0.2545

  • Platform Target Frameworks: Android 13, 12, 11, 10, 9, 8, 7

  • Android: API 25 - API 33

  • NuGet Packages: Microsoft.AspNetCore.SignalR.Client Version="7.0.0" />
    Newtonsoft.Json Version="13.0.2" />
    PCLStorage Version="1.0.2" />
    Plugin.Badge Version="2.3.1" />
    Polly Version="7.2.3" />
    Refractored.MvvmHelpers Version="1.6.2" />
    Sharpnado.Shadows Version="1.2.1" />
    sqlite-net-pcl Version="1.8.116" />
    System.Runtime Version="4.3.1" />
    TouchView Version="4.1.100" />
    Xamarin.CommunityToolkit Version="2.0.5" />
    Xamarin.FFImageLoading.Forms Version="2.4.11.982" />
    Xamarin.Forms Version="5.0.0.2545" />
    Xamarin.Essentials Version="1.7.4"

  • Affected Devices:
    All android versions from API 25 - API 33

Environment

Show/Hide Visual Studio info

Build Logs

Below two are two separate situations where application crashed when a ui element like a label wrapped in a frame was updated with new data.
Build log.txt
Build Log 2.txt

Screenshots

When working normal
Screenshot_1670999603

Parent page to the above page - A list view page
Screenshot_1671000113

Issue mentioned causing this, which didn't happen previously(Note no changes to my code were made during this period)
Screenshot_1671000233

parent page has empty space at top and bottom, when navigated from the child page(above one) to the parent list view page.
Screenshot_1671000240

on clicking an item in the above list, below page appears with empty view. It was supposed to be like the first screen shot
Screenshot_1671000245

From above empty page navigated to the parent page
Screenshot_1671000240

Now turned off screen and turned on again. Parent page appears normal again. Of course, before crash happens, which can happen at any time.
Screenshot_1671000255

When navigated to child page and perform some actions again ui showing same issues and crashing.

Reproduction Link

Workaround

@MANIKANTAABBURI MANIKANTAABBURI added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 14, 2022
@MANIKANTAABBURI
Copy link
Author

Please post any questions related to this. I will elaborate.

@MANIKANTAABBURI
Copy link
Author

Issue not longer exists

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p/Android s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants
@jsuarezruiz @MANIKANTAABBURI and others