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
It seems that it is only happening in the R session that summons the file selector by file.choose() and has 'textshaping' loaded.
I tested simultaneously with another R session that didn't have 'textshaping' loaded. There all letters were shown. Similarly I had no issues with the file selector in Edge, Firefox and Acrobat Reader.
I suspect the R package textshaping.dll conflicts with a Windows system dll C:\Windows\System32\TextShaping.dll because windows file paths are case insensitive.
Windows needs C:\Windows\System32\TextShaping.dll to render text in the dialog box. In the graphical WinGUI this dll is loaded at the start, but in Rterm this dll gets lazy loaded when calling file.choose().
However, if the R package textshaping.dll is loaded first, Windows might think this DLL is already loaded, and not load it again. So it fails to find the procedures to render text.
You can confirm in Rterm that the problem disappears by manually loading the system TextShaping.dll first:
I suspect the R package textshaping.dll conflicts with a Windows system dll C:\Windows\System32\TextShaping.dll because windows file paths are case insensitive.
Windows needs C:\Windows\System32\TextShaping.dll to render text in the dialog box. In the graphical WinGUI this dll is loaded at the start, but in Rterm this dll gets lazy loaded when calling file.choose().
However, if the R package textshaping.dll is loaded first, Windows might think this DLL is already loaded, and not load it again. So it fails to find the procedures to render text.
You can confirm in Rterm that the problem disappears by manually loading the system TextShaping.dll first:
Activity
thomasp85 commentedon Oct 4, 2023
ragg does not interface in any way with base/utils file API so I'm a bit at a loss here...
Can the issue be reproduced with loading either systemfonts or textshaping?
torden81 commentedon Oct 4, 2023
It is indeed caused by 'textshaping'. If I substitute 'ragg' for 'textshaping' in my description above, the exact same issue is triggered.
thomasp85 commentedon Oct 4, 2023
Thanks for confirming - does loading systemfonts trigger it as well?
torden81 commentedon Oct 4, 2023
No, systemfonts is fine.
thomasp85 commentedon Oct 4, 2023
Thanks. Can you provide a screenshot of the behaviour as I don't fully understand the description in the first post🙂
torden81 commentedon Oct 4, 2023
Here we go. :)
All letters within the file dialog have disappeared.
thomasp85 commentedon Oct 4, 2023
Thanks - and this only happens with the file selector summoned by file.choose(), not anything outside of R in the general windows UI?
torden81 commentedon Oct 5, 2023
It seems that it is only happening in the R session that summons the file selector by file.choose() and has 'textshaping' loaded.
I tested simultaneously with another R session that didn't have 'textshaping' loaded. There all letters were shown. Similarly I had no issues with the file selector in Edge, Firefox and Acrobat Reader.
Let me know if I can test something else.
thomasp85 commentedon Oct 6, 2023
This issue seems to be connected with #35
jeroen commentedon Oct 6, 2023
Can you try installing the latest dev versions and test if the problem still exists?
torden81 commentedon Oct 6, 2023
This installed the dev version '0.3.6.9000' and the problem persists.
torden81 commentedon Dec 18, 2023
It seems that the issue is also connected to rstudio/rstudio#13078
jeroen commentedon Jan 8, 2025
I suspect the R package
textshaping.dllconflicts with a Windows system dllC:\Windows\System32\TextShaping.dllbecause windows file paths are case insensitive.Windows needs
C:\Windows\System32\TextShaping.dllto render text in the dialog box. In the graphical WinGUI this dll is loaded at the start, but in Rterm this dll gets lazy loaded when callingfile.choose().However, if the R package
textshaping.dllis loaded first, Windows might think this DLL is already loaded, and not load it again. So it fails to find the procedures to render text.You can confirm in Rterm that the problem disappears by manually loading the system
TextShaping.dllfirst:torden81 commentedon Jan 9, 2025
This is a great workaround! It will save my coworkers and me some headaches.
Thank you so much.
Add workaround for textshaping naming conflict