Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17682

Fix/Workaround IntRequestFontSize() ASSERT(FALSE), triggered by submitted GDI32_APITEST

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • Win32SS

    Description

      This blocks GDI32_APITEST PR3817.

      Possible solutions:

      • Test: Fix test font file(s)?
      • Core: Remove this ASSERT()?
      • Core: Fix logic to not trigger this case/assertion?
      • ...

      On ReactOS (Debug), this extended test fails as it already does,
      and hits a {{cont}}able assertion:

      (/win32ss/gdi/ntgdi/freetype.c:3541) 2ProngTree: Failed to request font size.
       
      *** Assertion failed: FALSE
      ***   Source File: /win32ss/gdi/ntgdi/freetype.c, line 3542
       
      Break repeatedly, break Once, Ignore, terminate Process or terminate Thread (boipt)?
      kdb:> o
      Execute '.cxr FBB8970C' to dump context
      ←[7h♣
      Entered debugger on embedded INT3 at 0x0008:0x805853BD.
      kdb:> bt
      Eip:
      <ntoskrnl.exe:1853be (:0 (DbgUserBreakPoint))>
      Frames:
      <win32k.sys:b907c (win32ss/gdi/ntgdi/freetype.c:3541 (IntRequestFontSize))>
      <win32k.sys:baa56 (win32ss/gdi/ntgdi/freetype.c:1353 (IntGdiLoadFontsFromMemory))>
      <win32k.sys:bb8d4 (win32ss/gdi/ntgdi/freetype.c:1578 (IntGdiAddFontResourceEx))>
      <win32k.sys:bc145 (win32ss/gdi/ntgdi/freetype.c:1681 (IntGdiAddFontResource))>
      <win32k.sys:b68f1 (win32ss/gdi/ntgdi/font.c:490 (NtGdiAddFontResourceW))>
      <ntoskrnl.exe:3fe5 (:0 (KiSystemCallTrampoline))>
      <ntoskrnl.exe:14834a (ntoskrnl/ke/i386/traphdlr.c:1844 (KiSystemServiceHandler))>
      <ntoskrnl.exe:3e2f (:0 (KiFastCallEntry))>
      <ntdll.dll:1027d>
      <gdi32.dll:10fc6>
      <gdi32_apitest.exe:277d>
      <gdi32_apitest.exe:2d7a>
      <gdi32_apitest.exe:4a793>
      <gdi32_apitest.exe:4dcad>
      <gdi32_apitest.exe:4dd24>
      <kernel32.dll:11a3d>
      kdb:> cont
      

      from
      https://git.reactos.org/?p=reactos.git;a=blob;f=win32ss/gdi/ntgdi/freetype.c;hb=5a9c77b3be66780ba09a16cdf273f46f3d59a399#l3503

      3505 IntRequestFontSize(PDC dc, PFONTGDI FontGDI, LONG lfWidth, LONG lfHeight)
      ...
      3541             DPRINT1("%s: Failed to request font size.\n", face->family_name);
      3542             ASSERT(FALSE);
      3543             return error;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Serge Gautherie Serge Gautherie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: