Uploaded image for project: 'Swift'
  1. Swift
  2. SR-14976

Swift Package Manager (SPM) on Windows: BUFFER OVERFLOW on PreferredUILanguages/MachinePreferredUILanguages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Component/s: Package Manager
    • Labels:
    • Environment:

      Windows 10 Home in a Parallels 16 VM under macOS 11.5 on Intel using swift-5.4.2-RELEASE

      Description

      I had a Windows where German was the only installed language, and SPM got stuck after displaying the first "Fetching ..." (see my comment from July 25 and 26 on https://forums.swift.org/t/stochastic-errors-resolving-dependencies-and-or-building-with-feb-18-2021-snapshot/44929). Using Process monitor, I found:

      swift.exe: RegQueryValue: BUFFER OVERFLOW: HKCU\Control Panel\Desktop\PreferredUILanguages
      swift.exe: RegQueryValue: BUFFER OVERFLOW: HKCU\Control Panel\Desktop\MuiCached\MachinePreferredUILanguages

      After adding dding "English (United States)"" as additional language and then setting the system language to English, the SPM then first went further (and displayed another error message about false package version which is also not OK as a message, but maybe that is another issue), but on another ty it again got stuck with the above errors.

      An error that was always displayed in the process monitor was:

      swift.exe: RegQueryValue: BUFFER TOO SMALL: HKLM\System\CurrentControlSet\Control\Notifications\418A073AA3BC8075

      (The Swift package was https://github.com/stefanspringer1/SwiftXMLParserDemo.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Stefan Springer Stefan Springer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: