Open zhongjohnson opened 1 year ago
Thanks for the report. Can you provide a repro sample to show the issue? You can attach it as a zip file to the issue.
I just upgraded to Uno.WinUI.Skia.Wpf 4.7.44, seems the issue has been fixed, there is no "freeze" anymore. this issue can be closed then.
Sorry, I got new findings. the issue is not fixed in new release. If I set the default font, the combobox will become freeze for first popup.
Application.Current.Resources["ContentControlThemeFontFamily"] = new FontFamily("Microsoft YaHei");
Sample code attached.
It should be a issue with Font loading, I tried other font, there is no such issue.
Application.Current.Resources["ContentControlThemeFontFamily"] = "SimSun";
Thanks for the repro. Unfortunately, I'm not able to reproduce the issue (I tried on my youtube stream today).
If the application is freezing, could you provide a VS CPU profiler trace that may show where the issue is?
@jeromelaban thank you so much for your time and patient for doing the test on the youtube stream, after watched your stream I doubt if is there any problem with my computer, so I tried on the other computer, I met the same issue. I will do more tests for the next step if there is any update information I will upload here.
I tested the same code on different machines, I found that it seems related to the performance of the machine, it happens with my 2 laptops, but it works well on my desktop pc (the performance of CPU and GPU is much better the laptops). hope there is any clue with it. it was strange that I didn't see much CPU or GPU occupation when the application freeze.
@zhongjohnson I'm still interested in any kind of performance profiling that you could provide with VS.
It looks like the CPU usage is abnormal, it's not too high, but really increase a lot. please check attached profiler data. Report20230301-0935.zip
Thanks for the update. This looks like some related WPF issue. You may want to enable "external code" in the settings (either in the profiler setting at the beginning, or in the "settings" menu on the right of your screenshot).
Current behavior
When the ComboBox shows the items popup (dropdown) for the first time, it will freeze around 5s before clickable, after 5s, there will be scrollbar display then the items panel become clickable, user can select one of the item.
Expected behavior
There should be no "freeze" when items popup.
How to reproduce it (as minimally and precisely as possible)
...
snoozeColumn.ItemsSource = new List { "1", "2", "3"};
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
Uno.WinUI.Skia.Wpf 4.6.19
Affected platforms
Skia (WPF)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response