You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android][MAUI-8.0.7] CPU usage consistently remains above 10%, even without any operation #20684
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewperf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/androidpotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/needs-attentionIssue has more information and needs another lookt/bugSomething isn't working
When there is a 'CollectionView' with property set to ItemsLayout="HorizontalList", the interface responds very slowly.CPU is always occupied, maintaining around 20%
@moljac
I noticed that my project seems to have been modified, please make sure to use <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" /> instead of <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
Or,
Can you directly deploy my project? I am certain that the issue introduced in the new version(8.0.7) occurred in Android 7.1, while the old version did not have this issue
I noticed that my project seems to have been modified,
yes. I have template for multi TFM tests. I tried your sample. There was some processor %, but not 20%.
I will paste logs today.
please make sure to use <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" /> instead of <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
I will add those references to my projects.
Or, Can I directly deploy my project?
Can you? I guess you can. I did. Yes there was some % but not 20%.
The reason I use my template is to find possible regressions if any.
I am certain that the issue introduced in the new version(8.0.7) occurred in Android 7.1, while the old version did not have this issue
Thank you very much. These data are sufficient to illustrate the issue, as other versions are close to 0%.
PS:
20% was the initial test, with a lot of interface elements to demonstrate slow interface response.
Later, I found that the CPU was sufficient to explain the problem, so I will modify the title.
changed the title [-][Android][MAUI-8.0.7] The CPU always maintains around 20%, even without any operation[/-][+][Android][MAUI-8.0.7] CPU usage consistently remains above 10%, even without any operation[/+]on Feb 29, 2024
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewperf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/androidpotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/needs-attentionIssue has more information and needs another lookt/bugSomething isn't working
Activity
moljac commentedon Feb 26, 2024
could not repro
all tests - 0%-3%
manual too
TODO: tests on another dev box (Mac x86) with net7.0, net8.0, net9.0
1000 samples - approx 1 sec each
tested
2 macs
M2
x86 i9
on
emulators
pixel5 device
I was not able
emulator-mac-m2-net8.0.top.processor.log.txt
emulator-mac-m2-net7.0.top.processor.log.txt
repro sample
AppRepro.zip
Mac M2 pixel5 net8.0
crash during start (needs investigation)
Could not redirect output to file. Redirecting hangs.
Does not even list tested app
shows around 3% (constant)
Mac M2 emulator net8.0 - OK
Mac M2 emulator net7.0 - OK
BaY1251 commentedon Feb 27, 2024
@moljac
I noticed that my project seems to have been modified, please make sure to use
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />instead of<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />Or,
Can you directly deploy my project? I am certain that the issue introduced in the new version(8.0.7) occurred in Android 7.1, while the old version did not have this issue
BaY1251 commentedon Feb 27, 2024
moljac commentedon Feb 27, 2024
yes. I have template for multi TFM tests. I tried your sample. There was some processor %, but not 20%.
I will paste logs today.
I will add those references to my projects.
Can you? I guess you can. I did. Yes there was some % but not 20%.
The reason I use my template is to find possible regressions if any.
OK. Good to know. I will test more today.
moljac commentedon Feb 28, 2024
OK. I was able to repro
with
it is not 20%, but 10% original sample and 12% for my sample.
BaY1251 commentedon Feb 29, 2024
Thank you very much. These data are sufficient to illustrate the issue, as other versions are close to 0%.
PS:
20% was the initial test, with a lot of interface elements to demonstrate slow interface response.
Later, I found that the CPU was sufficient to explain the problem, so I will modify the title.
[-][Android][MAUI-8.0.7] The CPU always maintains around 20%, even without any operation[/-][+][Android][MAUI-8.0.7] CPU usage consistently remains above 10%, even without any operation[/+]BaY1251 commentedon Apr 3, 2024
can repro in Net9 pre 2?
BaY1251 commentedon Apr 10, 2024
can repro in MAUI-8.0.20
BaY1251 commentedon Apr 26, 2024
This may not be just a problem with CollectionView. I tried using ScrollView+HorizontalStackLayout instead, but the problem still occurred.
Revoke dotnet#19349. Fixes dotnet#20684
PureWeen commentedon May 22, 2024
Can you test with the latest nightly build?
https://github.com/dotnet/maui/wiki/Nightly-Builds
PureWeen commentedon May 22, 2024
I tested the repro here and I no longer see any ping ponging with the latest nightly
BaY1251 commentedon May 23, 2024
Yes, fixed by PR #22347