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.

Custom handler freezes VS

See original GitHub issue

Description

Creating a custom ViewHandler freezes VS when running the app.

Steps to Reproduce

Branch ViewHandler - https://github.com/IeuanWalker/Maui.CustomSwitch/tree/ViewHandler

If you run the app on the above branch the app launch screen appears and VS goes into debug mode, but the app never fully launches and VS freezes, and you have to use task manager to kill VS.

If you comment out the an handler registration, the app and VS behaves as normal -

builder.ConfigureMauiHandlers(h => h.AddHandler<SwitchView, SwitchViewHandler>());

https://github.com/IeuanWalker/Maui.CustomSwitch/blob/ViewHandler/Scr/CustomSwitch/AppBuilderExtensions.cs

Link to public reproduction project repository

https://github.com/IeuanWalker/Maui.CustomSwitch/tree/ViewHandler

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13

VS Version

17.5.3

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
IeuanWalkercommented, Apr 3, 2023

All sorted now, did the above approach and all works as expected

0reactions
IeuanWalkercommented, Mar 31, 2023

@mattleibow I’ve started looking into a different approach, you can see what I have done on the ExtentContentViewHandler branch

Saw in the MAUI src code you build another handler on top of the ContentViewHandler, you do this for PageHandler.

Going to be taking a few days off now, but just want to make sure that this would be a good approach, and something the MAUI team expects people to do?


Doesn’t feel like there is a lot of documentation around this sort of stuff

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQLAlchemy logging with custom handler freezes
I am trying to write my own Python logging handler which would write log records into a database using SQLAlchemy, which would also...
Read more >
Causes and Fix for Frozen Inside Air Handler Coils ...
There are two common causes for freeze-up, and one is less expensive to fix than the other. The first cause is a freon...
Read more >
Air handler freezing up
I have a Carrier central heat and air system, model # FX4ANF036. ... I'm having issues with the air handler freezing up.
Read more >
Frozen Air Conditioner? Here's How to Fix it…
Make sure it's actually set to ON and not to AUTO. Automatic settings cause the fan to cycle—starting and stopping over and over...
Read more >
9 Common Causes Why Does My AC Freezing Up
The Common Causes of AC Freeze Up are: 1Dirty Air Handler or Furnace Filter; 2Closed or blocked air vents; 3Thermostat set too low;...
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