Open snufffgit opened 3 weeks ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@snufffgit
Does your app also throw this exception in sr6 8.0.40?
Do you have a repro by chance?
If it's hard to repro can you paste your xaml that uses RoundRectangle
Hello,
I really don’t remember to see that event on the previous version of Microsoft.Maui.Controls, and I’m aware of the application log.
I don’t have any repro, but if you want I’m glad to show you on screen sharing.
I did not mention but the event occurs without an application crash.
Best regards,
João Eduardo Martins
On 15 Jun 2024, at 00:28, Shane Neuville @.***> wrote:
@snufffgit https://github.com/snufffgit Does your app also throw this exception in sr6 8.0.40?
Do you have a repro by chance?
If it's hard to repro can you paste your xaml that uses RoundRectangle
— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/23050#issuecomment-2168880024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4GL5TDQY4VNJLOWUBWV5LZHN4CRAVCNFSM6AAAAABJJMAZU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYHA4DAMBSGQ. You are receiving this because you were mentioned.
repro can you paste your xaml that uses RoundRectangle
I'm using sr6, and this is reported in Sentry multiple times for multiple UI controls, since I switched to sr6.
I have multiple logs. I'm posting one:
Occurred in non-app: void Logger.<Log>g__LoggerLog|14_0<FormattedLogValues>(?)+LoggerLog(LogLevel, EventId, ILogger, Exception, Func<FormattedLogValues, Exception, string>, ref List<Exception>, in FormattedLogValues)
Hide 12 more frames
void Logger.Log<FormattedLogValues>(LogLevel, EventId, FormattedLogValues, Exception, Func<FormattedLogValues, Exception, string>)
void Logger<Element>.Microsoft.Extensions.Logging.ILogger.Log<FormattedLogValues>(LogLevel, EventId, FormattedLogValues, Exception, Func<FormattedLogValues, Exception, string>)
void LoggerExtensions.Log(ILogger, LogLevel, EventId, Exception, string, params object[]) x 2
void LoggerExtensions.LogWarning(ILogger, string, params object[])
Element Element.get_RealParent()
void Element.SetParent(Element value)
void ImageElement.ImageSourceChanged(BindableObject bindable, ImageSource newSource)
void ImageElement.OnImageSourceChanged(BindableObject bindable, object oldValue, object newValue)
void BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, bool silent)
void BindableObject.SetValueCore(BindableProperty property, object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)
void BindableObject.SetValue(BindableProperty property, object value)
void Image.set_Source(ImageSource value)
object <InitializeComponent>_anonXamlCDataTemplate_5.LoadDataTemplate()
In App
Assembly:
Wz
Version:
2.0.0.0
Called from: object ElementTemplate.CreateContent()
Show 24 more frames
void StateContainerController.SwitchToState(string state)
In App
void StateContainer.ChangeState(BindableObject bindable, string state)
In App
void StateContainer.OnCurrentStateChanging(BindableObject bindable, object oldValue, object newValue)
In App
Called from: void BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, bool silent)
Show 7 more frames
void BaseViewModel.OnPropertyChanged(PropertyChangedEventArgs eventArgs)
In App
void BaseViewModel.set_CurrentState(LayoutState value)
In App
async Task HomeViewModel.SetSelectedTabIndex(int tabIndex)
In App
Called from: void AsyncMethodBuilderCore.Start<<SetSelectedTabIndex>d__79>(ref <SetSelectedTabIndex>d__79)
Task HomeViewModel.SetSelectedTabIndex(int tabIndex)
In App
void HomeTabsPhoneView.HomePhoneView_OnCurrentPageChanged(object sender, EventArgs e)
In App
Called from: void MultiPage<Page>.OnCurrentPageChanged()
Show 6 more frames
void Program.Main(string[] args)
Related #23139
I really don’t remember to see that event on the previous version of Microsoft.Maui.Controls, and I’m aware of the application log.
I confirm that it is only since SR6 that does happen.
@snufffgit do you have any code examples you can include here where you are using RoundRectangle
?
@snufffgit do you have any code examples you can include here where you are using
RoundRectangle
?
I have examples of this issue report in sentry where the UI control involved change everytime.
I would conclude that it is not related to the UI control used.
I'm also getting this warning from time to time:
The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen...
And also:
The RealParent on File: xxxx has been Garbage Collected. This should never happen...
MAUI 8.0.60 SR6
Had the same debug massage after update to maui 8.0.61 on Windows, combined with bad ui performance. Back to 8.0.40 - messages gone and performance is normal. Only part where RoundRectangle is used, but lots of borders are loaded in Collectionviews and Flexlayouts: `
Description
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Steps to Reproduce
I'm reporting the bug as instructed by the Application Output
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output