question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MAUI App UI Elements disappear on iOS when Instabug is initialized

See original GitHub issue

Description

Hi team,

This is David, a Cross-Platform Mobile Engineer at Instabug.

We’re considering adding .NET MAUI support to our SDK but are encountering an issue that’s a blocker. Whenever Instabug SDK is initialized, all UI elements (e.g. icon, button) of the app disappear except for the top navigation bar. This was observed only on iOS and works well on Android. Screen recordings from both platforms are attached below:

https://user-images.githubusercontent.com/36373152/205485677-5f3babd6-6c85-4755-9736-979e7bae9d38.mp4

https://user-images.githubusercontent.com/36373152/205485684-28437540-6a69-4e45-b8d2-456064bfa282.MOV

A few points that may help narrow down the root cause:

  1. This behaviour happens regardless of the invocation event(s) used to initialize Instabug (e.g. FloatingButton, Shake or even None).
  2. It’s not related to where the SDK gets initialized in the app lifecycle; if it’s done after InitializeComponent is called in App.xaml.cs or inside AppDelegate’s FinishedLaunching method, the app starts without the UI elements right from the beginning. If the initialization code is moved to be executed on a button click, the UI elements first appear normally, and once the button is clicked, they disappear (like the screen recording shared earlier).

Kindly check the following screenshots as well that illustrate the app view hierarchy before and after Instabug gets initialized:

before initialization after initialization

Another issue is that we’re not able to run the app on the simulator; it crashes with the following error: error HE0042: Could not launch the app 'com.companyname.InstabugMAUIExample' on the device 'iOS 15.5 (19F70) - iPhone 13 Pro': Application launch for 'com.companyname.InstabugMAUIExample' did not return a valid pid nor a launch error.

It runs, however, on a physical device (with the UI issue of course).

Your assistance is appreciated!

Steps to Reproduce

  1. Clone the project from the public repo below
  2. Build Instabug.iOS.Binding and Instabug.MAUI projects
  3. Run Instabug.MAUI.Example project on iOS
  4. Click “Click me” button

Expected outcome: Instabug floating button appears and the app UI elements stay. Actual outcome: Instabug floating button appears and the app UI elements disappear.

Link to public reproduction project repository

https://github.com/DavidMina96/IBG-Maui

Version with bug

6.0.312

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

Tried on iOS 15 (could be the same on other versions too)

Did you find any workaround?

No

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidMina96commented, Dec 20, 2022

Any updates on this issue please? I’m not sure why it’s closed even though it’s occurring on net7.0 as well. Please let us know if we shall reach out to a different support channel - or even join a debug call - to expedite things.

1reaction
rmarinhocommented, Dec 5, 2022

Can you please open a new bug related with the simulator issue on VS Feedback

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS UI elements disappearing
A new bug was being reported in a few of my Native iOS and React Native apps. On some user's devices, some of...
Read more >
Troubleshoot known issues - .NET MAUI
In this article​​ This article describes some of the known issues with . NET Multi-platform App UI (. NET MAUI), and how you...
Read more >
App lifecycle - .NET MAUI
NET MAUI raises cross-platform lifecycle events when an app transitions between its different execution states.
Read more >
How to fix disappearing UI elements in iOS app development
When I was running the app, I noticed that sometimes, texts would disappear from buttons, labels and TableView cells. The Search for answers....
Read more >
towards_left duff_s mdbg holt_winters gai incl_tax ...
gui happends gun vnode denycurrentbranch ondeserializing ... application z_smt_lib ... instabug webgl_earth registerjs works_everywhere_else enginering.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found