Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky Test] System.Windows.Forms.Tests.Text.FontMetrics.Font_MeasureText #8612

Open
Tracked by #8607
dreddy-work opened this issue Feb 9, 2023 · 0 comments
Open
Tracked by #8607
Labels
test-bug Problem in test source code (most likely)
Milestone

Comments

@dreddy-work
Copy link
Member

dreddy-work commented Feb 9, 2023

Test

System.Windows.Forms.Tests.Text.FontMetrics.Font_MeasureText

Issue description

System.Windows.Forms.Tests.Text.FontMetrics.Font_MeasureText test fails with following exception and call stack in debug mode. Need to be investigated further before enabling it back. It seems runtime has assertion check on refcount that is bailing out in debug builds.

We observed this specifically on arm64 build but might have been happening on X86/64 as well.

Process terminated. Assertion Failed
   at System.Windows.Forms.RefCountedCache`3.<GetEntry>g__Clean|8_2() in /_/src/System.Windows.Forms.Primitives/src/System/Windows/Forms/RefCountedCache.cs:line 176
   at System.Windows.Forms.RefCountedCache`3.<GetEntry>g__Add|8_1(TKey key) in /_/src/System.Windows.Forms.Primitives/src/System/Windows/Forms/RefCountedCache.cs:line 128
   at System.Windows.Forms.RefCountedCache`3.GetEntry(TKey key) in /_/src/System.Windows.Forms.Primitives/src/System/Windows/Forms/RefCountedCache.cs:line 82
   at System.Windows.Forms.FontCache.GetEntry(ValueTuple`2 key) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Internal/Gdi/FontCache.cs:line 40
   at System.Windows.Forms.FontCache.GetEntry(Font font, FONT_QUALITY quality) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Internal/Gdi/FontCache.cs:line 34
   at System.Windows.Forms.GdiCache.GetHFONT(Font font, FONT_QUALITY quality) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Internal/Gdi/GdiCache.cs:line 87
   at System.Windows.Forms.Tests.Text.FontMetrics.Font_MeasureText(String family, Single size, Size proposedSize, UInt32 dt, Size expected) in /_/src/System.Windows.Forms/tests/UnitTests/Text/FontMetrics.cs:line 86
   at InvokeStub_FontMetrics.Font_MeasureText(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
@dreddy-work dreddy-work added the untriaged The team needs to look at this issue in the next triage label Feb 9, 2023
@dreddy-work dreddy-work removed the untriaged The team needs to look at this issue in the next triage label Feb 10, 2023
@ghost ghost added 🚧 work in progress Work that is current in progress and removed 🚧 work in progress Work that is current in progress labels Mar 14, 2023
@elachlan elachlan added the test-bug Problem in test source code (most likely) label Nov 3, 2023
@JeremyKuhne JeremyKuhne added this to the Future milestone Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test-bug Problem in test source code (most likely)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants