Closed ZhangAngus closed 2 years ago
Is this reproducible?
The problem still exists. Now I delete font by font, and try to figure out whether the key lies in font files.
I tested font files on another WIN 10 pc, and all worked fine. The error only exists on my new WIN 11 laptop. I try to use WinDbg to find something.
Microsoft (R) Windows Debugger Version 10.0.17763.132 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: "C:\Program Files\R\R-4.1.2\bin\x64\R.exe"
************* Path validation summary **************
Response Time (ms) Location
OK C:\Windows\symbols
Deferred SRV*
Symbol search path is: C:\Windows\symbols;SRV*
Executable search path is:
ModLoad: 00000000`00400000 00000000`00421000 image00000000`00400000
ModLoad: 00007ff9`26c40000 00007ff9`26e49000 ntdll.dll
ModLoad: 00007ff9`25980000 00007ff9`25a3d000 C:\Windows\System32\KERNEL32.DLL
ModLoad: 00007ff9`246f0000 00007ff9`24a64000 C:\Windows\System32\KERNELBASE.dll
ModLoad: 00007ff9`250e0000 00007ff9`2518e000 C:\Windows\System32\ADVAPI32.dll
ModLoad: 00007ff9`25b20000 00007ff9`25bc3000 C:\Windows\System32\msvcrt.dll
ModLoad: 00007ff9`25a80000 00007ff9`25b1e000 C:\Windows\System32\sechost.dll
ModLoad: 00007ff9`25380000 00007ff9`254a0000 C:\Windows\System32\RPCRT4.dll
ModLoad: 00007ff9`261d0000 00007ff9`2697e000 C:\Windows\System32\SHELL32.dll
ModLoad: 00007ff9`24130000 00007ff9`241cd000 C:\Windows\System32\msvcp_win.dll
ModLoad: 00007ff9`24340000 00007ff9`24451000 C:\Windows\System32\ucrtbase.dll
ModLoad: 00007ff9`25660000 00007ff9`2580c000 C:\Windows\System32\USER32.dll
ModLoad: 00007ff9`24290000 00007ff9`242b6000 C:\Windows\System32\win32u.dll
ModLoad: 00007ff9`261a0000 00007ff9`261c9000 C:\Windows\System32\GDI32.dll
ModLoad: 00007ff9`24460000 00007ff9`24572000 C:\Windows\System32\gdi32full.dll
(1cc0.3588): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007ff9`26d1cc74 cc int 3
0:000> g
ModLoad: 00007ff9`25a40000 00007ff9`25a71000 C:\Windows\System32\IMM32.DLL
ntdll!NtTerminateProcess+0x14:
00007ff9`26ce3cd4 c3 ret
0:000> kb
# RetAddr : Args to Child : Call Site
00 00007ff9`26c94108 : 00000000`c0000005 00000000`001e3b50 00000000`001e3b48 00000000`00000000 : ntdll!NtTerminateProcess+0x14
01 00007ff9`2599c66b : 00000000`c0000005 00000000`001e3b50 00007ff9`25b99350 00000000`001e3b48 : ntdll!RtlExitUserProcess+0xb8
02 00007ff9`25b5d14d : 00000000`00000000 00000000`00000000 ffffffff`fffffffe 00007ff9`50000061 : KERNEL32!ExitProcessImplementation+0xb
03 00007ff9`25b5d7cb : 00000000`00000000 00000000`00000008 00000000`001e3b50 00000000`001e3b50 : msvcrt!_crtExitProcess+0x15
*** ERROR: Module load completed but symbols could not be loaded for C:\Program Files\R\R-4.1.2\bin\x64\R.exe
04 00000000`004064e3 : 00000000`00000000 00000000`00000029 00000000`00000000 00000000`00000000 : msvcrt!doexit+0x17b
05 00000000`004013c5 : 00000000`00000000 00000000`00000029 00000000`00000000 00000000`00000000 : R+0x64e3
06 00000000`0040152b : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : R+0x13c5
07 00007ff9`259954e0 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : R+0x152b
08 00007ff9`26c4485b : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x10
09 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x2b
Then I open Call stack
.
# Child-SP RetAddr Call Site
00 00000000`0062fcb8 00007ff9`26c94108 ntdll!NtTerminateProcess+0x14
01 00000000`0062fcc0 00007ff9`2599c66b ntdll!RtlExitUserProcess+0xb8
02 00000000`0062fcf0 00007ff9`25b5d14d KERNEL32!ExitProcessImplementation+0xb
03 00000000`0062fd20 00007ff9`25b5d7cb msvcrt!_crtExitProcess+0x15
04 00000000`0062fd50 00000000`004064e3 msvcrt!doexit+0x17b
05 00000000`0062fdc0 00000000`004013c5 R+0x64e3
06 00000000`0062fe30 00000000`0040152b R+0x13c5
07 00000000`0062ff00 00007ff9`259954e0 R+0x152b
08 00000000`0062ff30 00007ff9`26c4485b KERNEL32!BaseThreadInitThunk+0x10
09 00000000`0062ff60 00000000`00000000 ntdll!RtlUserThreadStart+0x2b
Is there any clue for you?
A series of further tests on other commands from package's examples . Error reproduced.
clear_registry()
# pass
font_fallback("\U0001f604")
# fail
font_feature(letters = "stylistic", numbers = c("lining", "tabular"))
# pass
font_info('serif')
# fail
match_font('sans', italic = TRUE)
# fail
# reset_font_cache()
# pass
string <- "This is a long string\nLook; It spans multiple lines\nand all"
shape_string(string)
# fail
string_metrics_dev(c('some text', 'a string with descenders'))
# pass
strings <- c('A short string', 'A very very looong string')
string_width(strings)
# fail
string_widths_dev(c('a string', 'an even longer string'))
# pass
emoji_string <- "This is a joke\U0001f642. It should be obvious from the smiley"
str_split_emoji(emoji_string)
# fail
Error fixed. Just uninstall system hotfix and all done.
When execute
fonts <- system_fonts()
, Rgui.exe crashed and exited.So I open system application logs.
Then I have no clue what happened.